#!/usr/bin/env bash # Sync the 40250 game files into the Android app's private files/ (SDL_GetPrefPath), where src/host looks # for files/Client/pack/Index. Only files changed since the last sync are sent (android/sync_client.py). # Needs the debug APK installed (run-as). # ./android/push-client.sh [--locale XX] [--full] [--dry-run] [CLIENT_DIR] # --locale XX writes the pushed locale.cfg from CLIENT_DIR/locale_XX.cfg. --locale zh defaults CLIENT_DIR # to build/zh-locale/Client (scripts/build_zh_locale.py, rebuilt first when its inputs changed). # --full deletes the synced resources on the device and pushes everything again. # Symbolic links in CLIENT_DIR (the zh client links the original packs) are copied as their targets. set -euo pipefail cd "$(dirname "$0")/.." . android/adb_env.sh adb_device exec python3 android/sync_client.py "$@"