원클릭으로
deploy-miyoo
Deploy ChaiLove games to the Miyoo Mini Plus, kill RetroArch, upload, relaunch
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Deploy ChaiLove games to the Miyoo Mini Plus, kill RetroArch, upload, relaunch
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Build Miyoo Rust/Zig ports (native or cross-compile for ARM)
Build .tic cartridges and deploy to Miyoo Mini Plus via SCP
Port a web game to ChaiLove (ChaiScript) for Miyoo Mini Plus
Port a web game to TIC-80 (Lua) for Miyoo Mini Plus
Package and test a ChaiLove game on the Miyoo Mini Plus via RetroArch
Test Miyoo ARM binaries in a Docker container that simulates the parasyte runtime
| name | deploy-miyoo |
| description | Deploy ChaiLove games to the Miyoo Mini Plus, kill RetroArch, upload, relaunch |
| user_invocable | true |
| args | <game-name> [--run] |
Deploy a ChaiLove game to the Miyoo Mini Plus via SCP. Optionally launch it immediately.
/mnt/SDCARD/Roms/CHAILOVE/<game>/--run flag is present, kill MainUI and launch via RetroArchMIYOO="onion@192.168.0.63"
GAME="$ARGUMENTS"
RUN=false
# Parse args
for arg in $ARGUMENTS; do
if [ "$arg" = "--run" ]; then
RUN=true
else
GAME="$arg"
fi
done
GAME_DIR="/home/mo/data/Documents/git/retrogames/chailove/$GAME"
REMOTE_DIR="/mnt/SDCARD/Roms/CHAILOVE/$GAME"
if [ ! -d "$GAME_DIR" ]; then
echo "Game not found: $GAME_DIR"
exit 1
fi
# Kill existing RetroArch
sshpass -p onion ssh -o StrictHostKeyChecking=no "$MIYOO" "killall -9 retroarch 2>/dev/null" 2>&1 | grep -v "WARNING\|post-quantum"
# Upload
sshpass -p onion ssh -o StrictHostKeyChecking=no "$MIYOO" "mkdir -p $REMOTE_DIR" 2>&1 | grep -v "WARNING\|post-quantum"
sshpass -p onion scp -r -o StrictHostKeyChecking=no "$GAME_DIR"/* "$MIYOO:$REMOTE_DIR/" 2>&1 | grep -v "WARNING\|post-quantum"
echo "Uploaded $GAME to Miyoo"
if [ "$RUN" = true ]; then
sshpass -p onion ssh -o StrictHostKeyChecking=no "$MIYOO" "
killall MainUI 2>/dev/null
sleep 1
export HOME=/mnt/SDCARD/RetroArch
/mnt/SDCARD/RetroArch/retroarch -v -L /mnt/SDCARD/RetroArch/.retroarch/cores/chailove_libretro.so $REMOTE_DIR/main.chai > /tmp/ra.log 2>&1 &
echo 'Launched PID:' \$!
" 2>&1 | grep -v "WARNING\|post-quantum\|store now\|upgraded\|pq.html"
fi
After deploying, check for errors:
sshpass -p onion ssh -o StrictHostKeyChecking=no onion@192.168.0.63 "grep -i 'Failed to call\|Error' /tmp/ra.log | grep -v 'reset\|joystick\|mouse\|key\|state\|cheat\|save\|exit\|load\|audio' | head -10"
To kill and restore MainUI:
sshpass -p onion ssh -o StrictHostKeyChecking=no onion@192.168.0.63 "killall -9 retroarch 2>/dev/null; cd /mnt/SDCARD/.tmp_update && ./runtime.sh &"
test, micro (more coming after micro is validated)