Files
breeze/scripts/copy-android-assets.sh
T
waoziandClaude Opus 5.5 d1a6db792a Fix the Android release build and use Kryon's Android CMake helpers
The Android release step called a Kryon embed script that no longer
exists, so 2.0.x Android builds (and F-Droid's prebuild) failed. The
prepare script now fetches the locked packages the CMake build needs.

The native build uses Kryon's kryon_android_raylib and kryon_android_app
instead of its own copy of those settings, and no longer embeds the
unused banner.png copies of banner-light.png (~0.5 MB per ABI).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 15:36:31 -03:00

16 lines
542 B
Bash
Executable File

#!/bin/sh
# Prepare the source tree for a Gradle Android build. Used by the release
# workflow and by F-Droid's prebuild step, from any working directory.
#
# Runtime assets are compiled into libmain.so by the CMake build
# (scripts/embed-app-assets.py), so the APK assets directory stays empty.
# The CMake build needs the locked Ziran packages under build/packages.
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$root"
rm -rf droid/app/src/main/assets
mkdir -p droid/app/src/main/assets
sh scripts/packages.sh --locked