mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-05 00:45:01 -05:00
31 lines
752 B
Bash
Executable File
31 lines
752 B
Bash
Executable File
####
|
|
# Build a new release
|
|
#
|
|
# - Modify build.conf as needed
|
|
# - Usage: ./build_release.sh <version>
|
|
|
|
if [ ! -f build.conf ]; then
|
|
echo "Config file missing: build.conf"
|
|
echo "Modify the build.conf.sample file and save it as build.conf"
|
|
exit 1
|
|
fi
|
|
|
|
. build.conf
|
|
|
|
if [ -z $1 ]; then
|
|
echo "Release version is missing."
|
|
echo "Usage: ./build_release.sh <version>"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Building yaaic $1"
|
|
echo ""
|
|
cd application
|
|
ant release
|
|
cd ..
|
|
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"
|