travis release tweaks
This commit is contained in:
parent
2135b47e0d
commit
8343cc2c1c
2 changed files with 3 additions and 4 deletions
|
@ -43,9 +43,7 @@ install:
|
|||
- mkdir -p ~/.buildozer/android/platform/android-sdk-23/licenses
|
||||
- echo $'\nd56f5187479451eabf01fb78af6dfcb131a6481e' > ~/.buildozer/android/platform/android-sdk-23/licenses/android-sdk-license
|
||||
script:
|
||||
- "./release.sh | grep -Fv -e 'working:' -e 'copy' --line-buffered"
|
||||
- export BUILD_VERSION=$(cat src/main/python/main.py | grep --color=never -oP '([0-9]+\.?)+')
|
||||
after_script:
|
||||
- "source ./release.sh | grep -Fv -e 'working:' -e 'copy' --line-buffered"
|
||||
- "echo Build Version: $BUILD_VERSION"
|
||||
deploy:
|
||||
provider: releases
|
||||
|
|
|
@ -3,6 +3,7 @@ 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]+\.?)+')
|
||||
export BUILD_VERSION=$version
|
||||
buildozer android release
|
||||
jarsigner -verbose -sigalg SHA1withRSA \
|
||||
-digestalg SHA1 \
|
||||
|
@ -10,7 +11,7 @@ jarsigner -verbose -sigalg SHA1withRSA \
|
|||
-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 \
|
||||
~/.buildozer/platform//SDKs/android/build-tools/26.0.1/zipalign -v 4 \
|
||||
bin/browser-$version-release-signed.apk bin/browser-$version-release.apk \
|
||||
&& rm bin/browser-$version-release-signed.apk
|
||||
|
||||
|
|
Loading…
Reference in a new issue