- 共享引擎(app/src/main):GestureEngine 6 手势识别、AudioEngine 三层音频 (ExoPlayer BGM 交叉淡入 / 对白 ducking / SoundPool 低延迟)、Game/GameEngine 状态机接口、MainActivity 全屏封面 + TalkBack - 《声命线》storyline:末世互动广播剧,3 幕 8 抉择点 4 结局 - 《声东击西》reflex:听声辨位反应,12 波战斗 + BGM 三档 BPM 变速 - 《暗室》escape:3x3 网格密室逃脱,钥匙→铁柜→保险丝→电箱→大门谜题链 - 文档:setup(从零搭建)/ architecture(架构)/ engine-api(引擎 API)/ asset-pipeline(资产流水线)/ games/*(三款游戏设计文档) - 资产管线:Qwen3-TTS 对白 + 程序合成音效/BGM + Mureka BGM 的 gen 脚本与台账, 全部 ogg 资产入库可复现 - env.d 环境脚本:android/tts 入库;sfx/mureka 含密钥不入库,仅提交 .example.sh 模板
44 lines
1.6 KiB
Batchfile
44 lines
1.6 KiB
Batchfile
@echo off
|
|
rem SA3 TFLite installer for Windows — the .bat twin of install.sh.
|
|
rem
|
|
rem Mirrors install.sh's steps with plain stdlib tooling (no uv required):
|
|
rem 1. create a project-local .venv\ (python -m venv)
|
|
rem 2. pip install -r requirements.txt into it
|
|
rem 3. hand off to scripts\install.py for the weight-download prompt
|
|
rem
|
|
rem Extra args are forwarded to install.py, e.g.:
|
|
rem install.bat --download sm-music
|
|
rem
|
|
rem Note: ai-edge-litert ships win_amd64 wheels for Python 3.10-3.13 —
|
|
rem use a Python in that range (3.11 recommended).
|
|
setlocal
|
|
set "SCRIPT_DIR=%~dp0"
|
|
|
|
where python >nul 2>nul
|
|
if errorlevel 1 (
|
|
echo error: python not found on PATH. 1>&2
|
|
echo Install Python 3.10-3.13 from https://www.python.org/downloads/ 1>&2
|
|
echo ^(check "Add python.exe to PATH" in the installer^) and re-run install.bat. 1>&2
|
|
exit /b 1
|
|
)
|
|
|
|
if exist "%SCRIPT_DIR%.venv\Scripts\python.exe" (
|
|
echo Reusing existing .venv\
|
|
) else (
|
|
echo Creating virtual environment at .venv\ ...
|
|
python -m venv "%SCRIPT_DIR%.venv"
|
|
if errorlevel 1 exit /b 1
|
|
)
|
|
|
|
echo Installing dependencies ^(pip install -r requirements.txt^) ...
|
|
"%SCRIPT_DIR%.venv\Scripts\python.exe" -m pip install --upgrade pip
|
|
if errorlevel 1 exit /b 1
|
|
"%SCRIPT_DIR%.venv\Scripts\python.exe" -m pip install -r "%SCRIPT_DIR%requirements.txt"
|
|
if errorlevel 1 exit /b 1
|
|
|
|
rem install.py's pip step is skipped — deps were just installed above
|
|
rem (same contract install.sh uses).
|
|
set "INSTALL_SKIP_PIP=1"
|
|
"%SCRIPT_DIR%.venv\Scripts\python.exe" "%SCRIPT_DIR%scripts\install.py" %*
|
|
exit /b %ERRORLEVEL%
|