SDL: switched build system from Ant to Gradle, because Google forced this piece of shit on me with SDK update
If you are getting build errors, delete the directory project/app/build
This commit is contained in:
14
sign.sh
14
sign.sh
@@ -6,11 +6,11 @@
|
||||
APPNAME=`grep AppName AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | tr " '/" '---'`
|
||||
APPVER=`grep AppVersionName AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | tr " '/" '---'`
|
||||
|
||||
cd project/bin
|
||||
cd project/app/build/outputs/apk/
|
||||
|
||||
# Remove old certificate
|
||||
rm -f Signed.apk
|
||||
cp -f MainActivity-debug.apk Signed.apk
|
||||
cp -f app-release.apk Signed.apk
|
||||
zip -d Signed.apk "META-INF/*"
|
||||
# Sign with the new certificate
|
||||
echo Using keystore $ANDROID_KEYSTORE_FILE and alias $ANDROID_KEYSTORE_ALIAS
|
||||
@@ -18,10 +18,10 @@ stty -echo
|
||||
jarsigner -verbose -tsa http://timestamp.digicert.com -keystore $ANDROID_KEYSTORE_FILE -sigalg MD5withRSA -digestalg SHA1 Signed.apk $ANDROID_KEYSTORE_ALIAS || exit 1
|
||||
stty echo
|
||||
echo
|
||||
rm -f MainActivity-debug.apk
|
||||
zipalign 4 Signed.apk MainActivity-debug.apk
|
||||
rm -f app-release.apk
|
||||
zipalign 4 Signed.apk app-release.apk
|
||||
rm -f Signed.apk
|
||||
cp -f MainActivity-debug.apk ../../$APPNAME-$APPVER.apk
|
||||
cp -f app-release.apk ../../../../../$APPNAME-$APPVER.apk
|
||||
|
||||
if false; then
|
||||
#DEBUGINFODIR=`aapt dump badging App.apk | grep "package:" | sed "s/.*name=[']\([^']*\)['].*versionCode=[']\([^']*\)['].*/\1-\2/" | tr " '/" '---'`
|
||||
@@ -30,12 +30,12 @@ echo Copying debug info to project/debuginfo/$DEBUGINFODIR
|
||||
mkdir -p ../debuginfo/$DEBUGINFODIR/x86 ../debuginfo/$DEBUGINFODIR/armeabi-v7a
|
||||
cp -f ../obj/local/x86/*.so ../debuginfo/$DEBUGINFODIR/x86
|
||||
cp -f ../obj/local/armeabi-v7a/*.so ../debuginfo/$DEBUGINFODIR/armeabi-v7a
|
||||
cp -f MainActivity-debug.apk ../debuginfo/$DEBUGINFODIR/$APPNAME-$APPVER.apk
|
||||
cp -f app-release.apk ../debuginfo/$DEBUGINFODIR/$APPNAME-$APPVER.apk
|
||||
fi
|
||||
|
||||
if false; then
|
||||
if [ -n "$ANDROID_UPLOAD_KEYSTORE_FILE" ]; then
|
||||
cd ../..
|
||||
cd ../../../../../
|
||||
cp -f $APPNAME-$APPVER.apk $APPNAME-$APPVER-upload1.apk
|
||||
# Sign with the upload certificate
|
||||
echo Using keystore $ANDROID_UPLOAD_KEYSTORE_FILE and alias $ANDROID_UPLOAD_KEYSTORE_ALIAS
|
||||
|
||||
Reference in New Issue
Block a user