diff options
Diffstat (limited to 'ci/build.sh')
| -rwxr-xr-x | ci/build.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ci/build.sh b/ci/build.sh index c99ec5f..24cd8fc 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -3,10 +3,15 @@ # Requires the pinned toolchain (see versions): Android SDK + NDK, a JDK, Go. set -eu -root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) +root=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd) make -C "$root" app -git -C "$root" rev-parse HEAD > "$root/app/build/outputs/apk/release/.source-commit" -echo "ci: APK at app/build/outputs/apk/release/" -ls -l "$root"/app/build/outputs/apk/release/*.apk +if [ -f "$root/keystore.properties" ]; then + apk="$root/app/build/outputs/apk/release/app-release.apk" +else + apk="$root/app/build/outputs/apk/release/app-release-unsigned.apk" +fi +echo "ci: APK at $apk" +ls -l "$apk" +"$root/ci/verify-apk.sh" "$apk" |