Skip to content

Commit

Permalink
Fixed syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Peal committed Aug 5, 2018
1 parent b71221e commit 80ce2a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

if [ -z "$TRAVIS_TAG" ]; then
# Only sign and deploy tags
echo "Not signing build. There is no git tag."
exit 0
fi

echo "----------Signing APK"
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore lottie-upload-key.jks -storepass $LOTTIE_UPLOAD_CERT_KEY_STORE_PASSWORD LottieSample/build/outputs/apk/release/LottieSample-release-unsigned.apk upload -keypass $LOTTIE_UPLOAD_CERT_KEY_PASSWORD -signedjar LottieSample/build/outputs/apk/release/LottieSample-release-signed.apk

if [ $? -ne 0 ]; then exit $? fi
if [ $? -ne 0 ]; then
exit $?
fi

echo "----------Zipaligning APK"
${ANDROID_HOME}/build-tools/27.0.3/zipalign 4 LottieSample/build/outputs/apk/release/LottieSample-release-unsigned.apk LottieSample/build/outputs/apk/release/LottieSample-release-aligned.apk
${ANDROID_HOME}/build-tools/27.0.3/zipalign 4 LottieSample/build/outputs/apk/release/LottieSample-release-unsigned.apk LottieSample/build/outputs/apk/release/LottieSample-release-aligned.apk

0 comments on commit 80ce2a6

Please sign in to comment.