#!/bin/sh # Build the signed release APK for Kepr Builds. # # Signing comes from local.properties (koh-ignored); without it the release APK # is unsigned and Android refuses to install it, so fail loudly here rather than # publish something nobody can install. set -eu JAVA_HOME="${JAVA_HOME:-/Applications/Android Studio.app/Contents/jbr/Contents/Home}" export JAVA_HOME ./gradlew --no-configuration-cache :app:assembleRelease mkdir -p build/kepr cp app/build/outputs/apk/release/app-release.apk build/kepr/peach-android.apk if ! grep -q '^peachStoreFile=' local.properties 2>/dev/null; then echo "refusing to publish: no signing key configured in local.properties" >&2 exit 1 fi