diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-10 09:23:16 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-10 09:23:23 +0100 |
| commit | 1c5ba71b7c696c2e0479326b6ec3bcc8e4bd23a1 (patch) | |
| tree | beea6e13b3aa1577ebb796b3c39b4671f65a9149 /gipfel-droid/build.sh | |
| parent | 45a4b80a3d44f054a471cd417c7c2698f4770599 (diff) | |
gipfel-droid: rename from wipfel-droid
Directory, Kotlin package (org.flpsed.gipfel), applicationId/namespace,
app label and gradle project name — the wipfel working name is gone
from anything that ships.
Diffstat (limited to 'gipfel-droid/build.sh')
| -rwxr-xr-x | gipfel-droid/build.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gipfel-droid/build.sh b/gipfel-droid/build.sh new file mode 100755 index 0000000..5f466ef --- /dev/null +++ b/gipfel-droid/build.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# Build the gipfel Android wrapper: wasm site -> assets -> debug APK. +# Requires: wasm32 target + wasm-bindgen (cargo), Android SDK, JDK 17+. +set -euo pipefail +here="$(cd "$(dirname "$0")" && pwd)" +repo="$(cd "$here/.." && pwd)" + +export ANDROID_HOME="${ANDROID_HOME:-$HOME/android-sdk}" +export PATH="$PATH:$HOME/.cargo/bin" + +echo "==> building gipfel release site" +( cd "$repo/crates/gipfel" && ./build-release.sh >/dev/null ) + +echo "==> staging assets" +mkdir -p "$here/app/src/main/assets/www" +rm -f "$here/app/src/main/assets/www/"* +cp "$repo/dist/gipfel/"* "$here/app/src/main/assets/www/" + +echo "==> gradle assembleDebug" +( cd "$here" && ./gradlew assembleDebug --no-daemon -q ) + +apk="$here/app/build/outputs/apk/debug/app-debug.apk" +echo "==> done: $apk ($(stat -c%s "$apk") bytes)" +echo " install: adb install -r $apk" |
