build.sh 423 B

123456789
  1. #!/bin/bash
  2. ./gradlew clean assembleStandardRelease
  3. TOOLS="$(ls -d ${ANDROID_HOME}/build-tools/* | tail -1)"
  4. export ARTIFACT="tachiyomi-${TRAVIS_TAG}.apk"
  5. ${TOOLS}/zipalign -v -p 4 app/build/outputs/apk/standard/release/app-standard-release-unsigned.apk app-aligned.apk
  6. ${TOOLS}/apksigner sign --ks $STORE_PATH --ks-key-alias $STORE_ALIAS --ks-pass env:STORE_PASS --key-pass env:KEY_PASS --out $ARTIFACT app-aligned.apk