Native macOS App (first version): dm/tools/mac_app.sh, docs/MAC.md

The Mac host can now be packaged as a double-click macOS App with keyboard, mouse and gamepad input, saves under Application Support, a first-launch resource-folder picker and save-before-quit. dm/tools/mac_app.sh builds it after ./setup.sh; by default the package carries no derived content and points at this machine's build outputs, so it runs only on the Mac that built it and needs only a local ad-hoc signature.

Nobody has played this version by hand yet; what was verified was run unattended. See docs/MAC.md.
This commit is contained in:
jhaizhou
2026-10-13 16:49:19 +08:00
parent e0f3bba1da
commit 6a2474d917
18 changed files with 548 additions and 23 deletions
+1
View File
@@ -181,3 +181,4 @@ echo " source $DM_ROOT/build/cache/dm/venv/bin/activate"
echo " 然后出 App:cd dm/ios && ./run.sh build(先在 dm/ios/local.env 里填 DM_TEAM_ID 与 DM_BUNDLE_ID;缺省同时面向 iPhone 与 iPad,只要 iPhone 加 DM_DEVICE_FAMILY=1)"
echo " Next, enter the Python environment setup prepared (the build and test scripts need the packages in it): source $DM_ROOT/build/cache/dm/venv/bin/activate"
echo " Then build the app: cd dm/ios && ./run.sh build (fill DM_TEAM_ID and DM_BUNDLE_ID in dm/ios/local.env first; it targets both iPhone and iPad by default, add DM_DEVICE_FAMILY=1 for iPhone only)"
echo " $(m "想在这台 Mac 上直接玩:dm/tools/mac_app.sh 出一个 macOS App(见 docs/MAC.zh-CN.md)" "To play on this Mac directly: dm/tools/mac_app.sh builds a macOS App (see docs/MAC.md)")"