kepr-build-apk.sh

693 B · raw

1#!/bin/sh2# Build the signed release APK for Kepr Builds.3#4# Signing comes from local.properties (koh-ignored); without it the release APK5# is unsigned and Android refuses to install it, so fail loudly here rather than6# publish something nobody can install.7set -eu89JAVA_HOME="${JAVA_HOME:-/Applications/Android Studio.app/Contents/jbr/Contents/Home}"10export JAVA_HOME1112./gradlew --no-configuration-cache :app:assembleRelease1314mkdir -p build/kepr15cp app/build/outputs/apk/release/app-release.apk build/kepr/peach-android.apk1617if ! grep -q '^peachStoreFile=' local.properties 2>/dev/null; then18    echo "refusing to publish: no signing key configured in local.properties" >&219    exit 120fi