mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 13:35:35 -04:00
building for android impl
currently builds a "Metaforce" apk, will need to change name of course. Running the apk using Android Studio's emulator can get in game, however running on a samsung phone does not seem to work.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/../../.." && pwd)"
|
||||
SRC_DEFAULT="$ROOT_DIR/build/android-arm64/_deps/sdl-src/android-project/app/src/main/java/org/libsdl/app"
|
||||
SRC_DIR="${1:-$SRC_DEFAULT}"
|
||||
DST_DIR="$ROOT_DIR/platforms/android/app/src/main/java/org/libsdl/app"
|
||||
|
||||
if [[ ! -d "$SRC_DIR" ]]; then
|
||||
echo "SDL Java source directory not found: $SRC_DIR" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$DST_DIR"
|
||||
cp -f "$SRC_DIR"/*.java "$DST_DIR"/
|
||||
echo "Synced SDL Java sources from $SRC_DIR to $DST_DIR"
|
||||
Reference in New Issue
Block a user