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
+16
View File
@@ -302,4 +302,20 @@ static const struct { const char *k, *zh, *en; } k_dm_i18n[] = {
{ "dmPadDiffLine", "游戏难度:%d", "Game Difficulty: %d" },
{ "dmRiftGamAfterEn", "通关本层后", "After This Level" },
{ "dmRiftMsNEn", "每档另得 符文 · 赦免之证 · 打孔", "+ Rune, Token of Absolution, Sockets" },
{ "dmAppQuit", "退出 D2R Mobile", "Quit D2R Mobile" },
{ "dmAppOK", "好", "OK" },
{ "dmAppPickUse", "用这个文件夹", "Use This Folder" },
{ "dmAppPickMsg", "请选择游戏资源文件夹(里面有 data 文件夹)。只需要选这一次。", "Choose the game data folder (the one that contains a “data” folder). You only need to do this once." },
{ "dmAppPickAgain", "%s\n\n请重新选择游戏资源文件夹。", "%s\n\nPlease choose the game data folder again." },
{ "dmAppNotRomfsTitle", "这不是游戏资源文件夹", "This is not the game data folder" },
{ "dmAppNotRomfs", "「%s」里没有 data/build_manifest.psv。\n要选的是游戏资源文件夹:里面有一个 data 文件夹,data 里有 build_manifest.psv 和若干很大的数据文件。", "“%s” has no data/build_manifest.psv.\nChoose the game data folder: it contains a “data” folder with build_manifest.psv and several very large data files." },
{ "dmAppNoRead", "找到了资源清单,但没有读取权限。", "The data manifest was found but cannot be read." },
{ "dmAppRomfsGone", "上次选的资源文件夹用不了了:\n%s", "The data folder chosen last time can no longer be used:\n%s" },
{ "dmAppBrokenTitle", "这个 App 不完整", "This app is incomplete" },
{ "dmAppBroken", "包里没有程序文件(Contents/Resources/product)。请重新构建或重新下载。", "The app bundle has no program files (Contents/Resources/product). Rebuild it or download it again." },
{ "dmAppMenuView", "显示", "View" },
{ "dmAppFullscreen", "全屏", "Toggle Full Screen" },
{ "dmAppMenuHelp", "帮助", "Help" },
{ "dmAppKeysTitle", "键盘与手柄按键对照", "Keyboard and Controller Buttons" },
{ "dmAppKeysText", "界面上的按键提示是手柄字母,键盘这样对应:\n\n移动:W A S D(左摇杆)\n十字键:方向键\nA 确认:J  B 返回:K  X:U  Y:I\nL:Q  R:E  ZL:Z  ZR:C\n按左摇杆:F  按右摇杆:G\n+(菜单):回车  −(地图):Tab\n\n鼠标:左键点目标或界面,右键 = B,滚轮滚列表。\n接上手柄可以直接用。这一页以后在「帮助」菜单里。", "On-screen button hints use controller letters. Keyboard mapping:\n\nMove: W A S D (left stick)\nD-pad: arrow keys\nA confirm: J B back: K X: U Y: I\nL: Q R: E ZL: Z ZR: C\nPress left stick: F Press right stick: G\n+ (menu): Return − (map): Tab\n\nMouse: left click a target or the interface, right click = B, wheel scrolls lists.\nA connected controller works right away. This page stays in the Help menu." },
};