2018-04-24 22:01:11 +02:00
|
|
|
#!/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 \
|
2018-05-09 20:26:57 +02:00
|
|
|
-keystore lbry-android.keystore \
|
2018-04-24 22:01:11 +02:00
|
|
|
-storepass $KEYSTORE_PASSWORD \
|
|
|
|
bin/browser-$version-release-unsigned.apk lbry-android \
|
|
|
|
&& mv bin/browser-$version-release-unsigned.apk bin/browser-$version-release-signed.apk
|
2018-05-09 20:26:57 +02:00
|
|
|
~/.buildozer/android/platform/android-sdk-23/build-tools/26.0.1/zipalign -v 4 \
|
2018-04-24 22:01:11 +02:00
|
|
|
bin/browser-$version-release-signed.apk bin/browser-$version-release.apk \
|
|
|
|
&& rm bin/browser-$version-release-signed.apk
|
|
|
|
|
|
|
|
|