Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Fix APK signing
Browse files Browse the repository at this point in the history
  • Loading branch information
Amab committed Dec 15, 2020
1 parent 598923d commit c988f0b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ script:
after_failure: cat $TRAVIS_BUILD_DIR/SWADroid/build/reports/lint-results.xml
before_deploy:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./.travis/run_on_before_deploy.sh; fi'
- cd $TRAVIS_BUILD_DIR/SWADroid/build/outputs/apk/prod
- jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore ${TRAVIS_BUILD_DIR}/keystore.jks
-storepass $storepass -keypass $keypass SWADroid-prod-unsigned.apk amab
- jarsigner -verify SWADroid-prod-unsigned.apk
- "${ANDROID_HOME}/build-tools/${ANDROID_BUILD_TOOLS}/zipalign -p 4 SWADroid-prod-unsigned.apk
SWADroid-release.apk"
- "cd $TRAVIS_BUILD_DIR/SWADroid/build/outputs/apk/prod"
- "${ANDROID_HOME}/build-tools/${ANDROID_BUILD_TOOLS}/zipalign -p 4 SWADroid-prod-unsigned.apk SWADroid-prod-zipaligned.apk"
- "apksigner sign --ks ${TRAVIS_BUILD_DIR}/keystore.jks --ks-pass pass:$storepass --key-pass pass:$keypass --out SWADroid-release.apk SWADroid-prod-zipaligned.apk"
- "apksigner verify SWADroid-release.apk"
deploy:
provider: releases
token:
Expand Down

0 comments on commit c988f0b

Please sign in to comment.