mirror of
https://github.com/rommapp/grout.git
synced 2026-04-23 06:54:36 +00:00
Ship both grout32 and grout64 in a single MinUI zip. The launch script detects arch via uname and picks the right binary and libs. Device detection (Miyoo/Anbernic/TrimUI) uses runtime.GOARCH and /proc/bus/input/devices, following the same pattern as muOS. Adds Anbernic joystick mapping reused from muOS.
33 lines
705 B
Bash
33 lines
705 B
Bash
#!/bin/sh
|
|
CUR_DIR="$(dirname "$0")"
|
|
cd "$CUR_DIR" || exit 1
|
|
|
|
# Apply pending update
|
|
if [ -d "../.update" ]; then
|
|
cp -rf ../.update/* ..
|
|
rm -rf ../.update
|
|
fi
|
|
|
|
export CFW=MinUI
|
|
|
|
ARCH=$(uname -m)
|
|
case "$ARCH" in
|
|
aarch64|arm64)
|
|
export LD_LIBRARY_PATH=$CUR_DIR/lib64:$LD_LIBRARY_PATH
|
|
./grout64
|
|
;;
|
|
armv7*|armhf)
|
|
export IS_MIYOO=1
|
|
export SDL_VIDEODRIVER=mmiyoo
|
|
export SDL_AUDIODRIVER=mmiyoo
|
|
export EGL_VIDEODRIVER=mmiyoo
|
|
export SDL_MMIYOO_DOUBLE_BUFFER=1
|
|
export LD_LIBRARY_PATH=$CUR_DIR/lib32:$LD_LIBRARY_PATH
|
|
./grout32
|
|
;;
|
|
*)
|
|
echo "Unsupported architecture: $ARCH"
|
|
exit 1
|
|
;;
|
|
esac
|