From a7264e506a68817191ba7d03b425e4d07bfd3020 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Tue, 24 Apr 2018 21:01:11 +0100 Subject: [PATCH] created a release script --- release.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 release.sh diff --git a/release.sh b/release.sh new file mode 100755 index 00000000..f5962c27 --- /dev/null +++ b/release.sh @@ -0,0 +1,17 @@ +#!/bin/sh +cd app +react-native bundle --platform android --dev false --entry-file src/index.js --bundle-output ../src/main/assets/index.android.bundle --assets-dest ../src/main/res/ +cd .. +version=$(cat src/main/python/main.py | grep --color=never -oP '([0-9]+\.?)+') +buildozer android release +jarsigner -verbose -sigalg SHA1withRSA \ + -digestalg SHA1 \ + -keystore ~/.keystores/lbry-android.keystore \ + -storepass $KEYSTORE_PASSWORD \ + bin/browser-$version-release-unsigned.apk lbry-android \ + && mv bin/browser-$version-release-unsigned.apk bin/browser-$version-release-signed.apk +~/Dev/SDKs/android/build-tools/26.0.2/zipalign -v 4 \ + bin/browser-$version-release-signed.apk bin/browser-$version-release.apk \ + && rm bin/browser-$version-release-signed.apk + +