Skip to content

Commit d138cda

Browse files
Update android build to make a versioned .aab. Target 35, quit if errors
1 parent 8e6e70c commit d138cda

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build_android.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
SDK_VERSION='34.0.3'
2+
SDK_VERSION='35.0.0'
33

44

55
build_debug() {
@@ -46,9 +46,10 @@ build_release() {
4646
cordova build android --release -- --versionCode=${ver}
4747

4848
# copy build to release folder and sign
49-
cp platforms/android/app/build/outputs/bundle/release/app-release.aab release_files/zmNinja.aab
50-
echo "Signing bundle"
51-
jarsigner -sigalg SHA256withRSA -digestalg SHA-256 -keystore platforms/android/zmNinja.keystore release_files/zmNinja.aab zmNinja
49+
cp platforms/android/app/build/outputs/bundle/release/app-release.aab release_files/zmNinja_${ver}.aab
50+
echo "Signing bundle with: jarsigner -sigalg SHA256withRSA -digestalg SHA-256 -keystore platforms/android/zmNinja.keystore release_files/zmNinja_${ver}.aab zmNinja"
51+
52+
jarsigner -sigalg SHA256withRSA -digestalg SHA-256 -keystore platforms/android/zmNinja.keystore release_files/zmNinja_${ver}.aab zmNinja
5253
echo "Signed aab in release_files"
5354

5455
# Build apk from bundle for verification if bundletool is available
@@ -126,6 +127,8 @@ cordova plugin remove cordova-plugin-ionic-webview > /dev/null 2>&1
126127
echo "Adding cordova-plugin-certificates-pp-fork..."
127128
cordova plugin add cordova-plugin-certificates-pp-fork > /dev/null 2>&1
128129

130+
set -e
131+
129132

130133
if [ "${MODE}" = "debug" ]; then
131134
build_debug

0 commit comments

Comments
 (0)