Ability to sign with new Google Play upload key

This commit is contained in:
Sergii Pylypenko
2017-05-22 23:50:34 +03:00
parent b42a8623df
commit 39b5b5efb5
3 changed files with 16 additions and 3 deletions

View File

@@ -7,10 +7,10 @@ AppName="Ninslash"
AppFullName=ninslash.com
# Application version code (integer)
AppVersionCode=02627
AppVersionCode=02727
# Application user-visible version name (string)
AppVersionName="0.2.6.27"
AppVersionName="0.2.7.27"
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
# If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu

13
sign.sh
View File

@@ -32,3 +32,16 @@ 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
fi
if [ -n "$ANDROID_UPLOAD_KEYSTORE_FILE" ]; then
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
stty -echo
jarsigner -verbose -tsa http://timestamp.digicert.com -keystore $ANDROID_UPLOAD_KEYSTORE_FILE -sigalg MD5withRSA -digestalg SHA1 $APPNAME-$APPVER-upload1.apk $ANDROID_UPLOAD_KEYSTORE_ALIAS || exit 1
stty echo
echo
zipalign 4 $APPNAME-$APPVER-upload1.apk $APPNAME-$APPVER-upload.apk
rm -f $APPNAME-$APPVER-upload1.apk
fi