2010-11-03 11:31:17 -04:00
|
|
|
####
|
|
|
|
# Build a new release
|
|
|
|
#
|
|
|
|
# - Modify build.conf as needed
|
|
|
|
# - Usage: ./build_release.sh <version>
|
|
|
|
|
2010-11-03 11:34:17 -04:00
|
|
|
if [ ! -f build.conf ]; then
|
2010-11-03 11:31:17 -04:00
|
|
|
echo "Config file missing: build.conf"
|
|
|
|
echo "Modify the build.conf.sample file and save it as build.conf"
|
2010-11-03 11:34:17 -04:00
|
|
|
exit 1
|
2010-11-03 11:31:17 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
. build.conf
|
2010-11-03 09:31:26 -04:00
|
|
|
|
|
|
|
if [ -z $1 ]; then
|
|
|
|
echo "Release version is missing."
|
|
|
|
echo "Usage: ./build_release.sh <version>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Building yaaic $1"
|
|
|
|
echo ""
|
2010-11-07 02:43:58 -05:00
|
|
|
cd application
|
2010-11-03 09:31:26 -04:00
|
|
|
ant release
|
2010-11-07 02:43:58 -05:00
|
|
|
cd ..
|
2010-11-03 09:31:26 -04:00
|
|
|
jarsigner -verbose -keystore $KEYSTORE "$BUILD_DIRECTORY/Yaaic-unsigned.apk" release
|
|
|
|
jarsigner -verify "$BUILD_DIRECTORY/Yaaic-unsigned.apk"
|
|
|
|
"$ANDROID_SDK/tools/zipalign" -v 4 "$BUILD_DIRECTORY/Yaaic-unsigned.apk" "$BUILD_DIRECTORY/yaaic-$1.apk"
|
|
|
|
echo ""
|
|
|
|
echo "Build ready: $BUILD_DIRECTORY/yaaic-$1.apk"
|