From 952a1c67826108926ab63c2ea46c6138a4b1f576 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 3 Nov 2010 14:31:26 +0100 Subject: [PATCH] Build script for buildung releases (apk) --- build_release.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 build_release.sh diff --git a/build_release.sh b/build_release.sh new file mode 100755 index 0000000..b5a9221 --- /dev/null +++ b/build_release.sh @@ -0,0 +1,19 @@ +KEYSTORE= +BUILD_DIRECTORY=builds/ant +RELEASE_KEY= +ANDROID_SDK= + +if [ -z $1 ]; then + echo "Release version is missing." + echo "Usage: ./build_release.sh " + exit 1 +fi + +echo "Building yaaic $1" +echo "" +ant release +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"