mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-25 10:22:16 -05:00
Build script for buildung releases (apk)
This commit is contained in:
parent
9e91c6b2b9
commit
952a1c6782
19
build_release.sh
Executable file
19
build_release.sh
Executable file
@ -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 <version>"
|
||||
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"
|
Loading…
Reference in New Issue
Block a user