cryptomator-android/buildapk.sh

10 lines
440 B
Bash
Raw Normal View History

2022-08-05 20:31:18 +03:00
#!/usr/bin/env bash
KEY_STORE=$HOME/.config/upload-keystore.jks
KEY_ALIAS=upload
rm -rf presentation/build
./gradlew clean assembleApkstoreRelease
cd presentation/build/outputs/apk/apkstore/release/
zipalign -p -f -v 4 presentation-apkstore-release-unsigned.apk cryptomator.apk
apksigner sign --ks $KEY_STORE --ks-key-alias $KEY_ALIAS -v cryptomator.apk
cp presentation/build/outputs/apk/apkstore/release/cryptomator.apk ../../../../../../