Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Docs: release notes for v0.3.0 (app icon, 46 games)

LNPANDYe1cb57f4f11e
diff --git a/docs/RELEASE_NOTES.md b/docs/RELEASE_NOTES.md
index a3081d87..7f5ad3a8 100644
--- a/docs/RELEASE_NOTES.md
+++ b/docs/RELEASE_NOTES.md
@@ -1,8 +1,8 @@
-# NS Port Builder v0.2.1 — release notes
+# NS Port Builder v0.3.0 — release notes
-This is the text of the [v0.2.1 release](https://github.com/LNPANDY/nxnative-romfs-archive/releases/tag/v0.2.1); v0.2.0 (bilingual interface) and v0.1.0 are in the git history. 中文说明在英文下方。
+This is the text of the [v0.3.0 release](https://github.com/LNPANDY/nxnative-romfs-archive/releases/tag/v0.3.0); v0.2.1, v0.2.0 and v0.1.0 are in the git history. 中文说明在英文下方。
-Bilingual interface: the app now speaks English, and Chinese only when your device does.
+**The app now has an icon, and the repository follows upstream through 296 commits — 46 games instead of 19.**
<details>
<summary>Screenshot (click to expand)</summary>
@@ -11,147 +11,135 @@ Bilingual interface: the app now speaks English, and Chinese only when your devi
</details>
-## What's new in v0.2.0
+## What's new in v0.3.0
-**The interface is bilingual.** Before this release it was Chinese-only, which shut out anyone who
-does not read Chinese.
+**An app icon.** A green badge with a controller, in the same green as the app's header. The app is
+no longer a blank square in the Dock and the Finder.
-- **It follows your device.** On first launch, any Chinese variant (Simplified, Traditional, Hong
- Kong, Taiwan) gets Chinese; **every other language gets English.**
-- **`中文` / `EN` in the title bar** switches at any time. The button shows the language you would
- switch *to*, and the choice is remembered across launches.
-- All 78 user-visible strings live in one table as `key: (Chinese, English)` pairs. A missing
- translation renders as the key itself rather than a blank button, and a self-check reports any
- empty side at launch.
-- Values that carry data — a missing package's path, exit codes, the archive destination — are
- translated as whole sentences with placeholders, so word order stays right in both languages.
-- Switching language re-renders the dependency rows and game-data slots immediately; it does not
- disturb a running build.
+**46 game profiles, up from 19.** The repository was 296 upstream commits behind. Syncing brought
+27 new titles, and the host and graphics work they need:
-Also in this release: the label column no longer wraps ("Add-on content (DLC)" broke onto two lines
-at the old width), and the download now includes English and Chinese screenshots.
+Hollow Knight: Silksong, Celeste, DARK SOULS: REMASTERED, Animal Crossing: New Horizons,
+Paper Mario: The Thousand-Year Door, Pokémon Legends: Z-A, Luigi's Mansion 3, Super Mario Galaxy 2,
+AI: THE SOMNIUM FILES, Cuphead, Catherine: Full Body, DRAGON QUEST XI S, DRAGON QUEST VII Reimagined,
+FINAL FANTASY TACTICS, FINAL FANTASY RESONANCE, Monster Train 2, ANIMAL WELL, Raging Loop,
+Digimon Story Cyber Sleuth, The Great Ace Attorney Chronicles, STEINS;GATE RE:BOOT,
+Captain Toad: Treasure Tracker, Big Brain Academy, Patrick's Parabox, Absolum,
+Brain Memory Training Academy, AI: nirvanA Initiative
-Everything else is unchanged from v0.1.0: four inputs picked separately, dependency detection with
-one-click install, progress parsed from the script's own stage lines, and automatic RomFS archive
-shards.
+That is the profile count, not a promise that every title boots. A profile carries a game's build
+IDs, memory layout and shader tables; the host changes a game needs are part of the same upstream
+work and came along with it. See the games table in the README for what is verified where.
-### Fixed in v0.2.1
+**The fork's own features still work**, re-applied on top of the rewritten host:
-**A build could fail with a Python syntax error.** If the app picked
-`/usr/bin/python3` (the 3.9 that ships with the Xcode command line tools), the
-build stopped with `SyntaxError: f-string: unmatched '['` in
-`build_ipa_from_nsp.py`. Nested same-quote strings inside an f-string need Python
-3.12; the script now avoids that construct and parses on 3.9.
+- The RomFS archive layer, re-ported into the rewritten `hle_fs.c`. The host builds and the archive
+ reader passes its test against a real two-shard archive.
+- Slim IPA by default (`DM_FULL_ROMFS=1` for upstream's full package) and the placeholder ad-hoc
+ signature that carries the Increased Memory Limit entitlement into a sideloader. Upstream now only
+ sets that entitlement in its `--prepare-xcode` mode, so an IPA built from upstream alone would have
+ lost it.
+- `romfs.idx` recognition, `--work-dir`, and the `DOTNET_ROOT` derivation.
-The dependency check is also stricter: an interpreter older than 3.9 is skipped
-instead of chosen, and the row now says whether the problem is **too old** or
-**missing packages** — the two need different fixes. Every `.py` in the
-repository is checked against 3.9.
-
-**Requirement: Python 3.9 or newer, with `lz4`, `capstone`, `fonttools` and
-`backports.zstd`.** The app's dependency panel installs the packages into the
-interpreter it picked; if no suitable Python exists, install one (python.org or
-`brew install python`) and press Check again.
+**The Python 3.9 fix from v0.2.1 is still in place**, and the new upstream code had three more of
+the same problem (f-strings only Python 3.12 can parse). All fixed; every `.py` in the repository
+parses under 3.9.
## What this build is
-[`NS-Port-Builder-macOS-arm64.zip`](https://github.com/LNPANDY/nxnative-romfs-archive/releases/download/v0.2.1/NS-Port-Builder-macOS-arm64.zip)
+[`NS-Port-Builder-macOS-arm64.zip`](https://github.com/LNPANDY/nxnative-romfs-archive/releases/download/v0.3.0/NS-Port-Builder-macOS-arm64.zip)
— the app itself, ad-hoc signed, Apple Silicon, macOS 13+. Unzip it anywhere and double-click.
Because the signature is ad-hoc, the first launch needs right-click → Open, or
`xattr -dr com.apple.quarantine "NS Port Builder.app"`.
**This is a front end only.** It drives the scripts of
[nxnative-romfs-archive](https://github.com/LNPANDY/nxnative-romfs-archive), so you also need a
-clone of that repository on the same Mac. The app finds it automatically when it sits next to the
-checkout, and otherwise you pick it once with Choose repository… (the row turns green when the
-folder is a real checkout — it contains `dm/tools/nx_extract/Program.cs`).
+clone of that repository on the same Mac — and this release needs the current `main`, which carries
+the 46 profiles. The app finds the checkout automatically when it sits next to it, and otherwise you
+pick it once with Choose repository….
## Verified games
| Game | Status |
|---|---|
-| **The Legend of Zelda: Tears of the Kingdom** (0100F2C0115B6000, v1.0.0 + update 1.4.3) | Verified — builds, installs and runs on an iPhone; 304,243 files packed into 127 archive shards, every file byte-verified against the source |
-| **Hades II** (0100A00019DE0000, base + update) | Verified — builds, installs and runs on an iPhone; 33-file archive |
+| **The Legend of Zelda: Tears of the Kingdom** (0100F2C0115B6000) | Verified — builds, installs and runs on an iPhone; 304,243 files into 127 archive shards, every file byte-verified |
+| **Hades II** (0100A00019DE0000) | Verified — builds, installs and runs on an iPhone; 33-file archive |
-**Every other game is unverified.** nxnative needs a per-game profile (`dm/games/<title ID>/`) and,
-for a game without one, the build falls back to a survey plus a provisional profile whose values
-are guessed — it may not boot. If you try another title, expect to bring it up yourself, and please
-report what you find.
+**Every other game is unverified by this fork.** 20 of the 46 are reported playable on an iPhone by
+upstream; the rest have a profile only. If you try another title, expect to bring it up yourself,
+and please report what you find.
## Requirements
-- An Apple Silicon Mac (the app is arm64 only; the build scripts themselves also run on Intel)
+- An Apple Silicon Mac (the app is arm64 only; the build scripts also run on Intel)
- macOS 13 or later
-- ~6 GB free beyond the NSPs for the extraction; the shader compile is the long step (~50 minutes
- for Tears of the Kingdom)
+- **Python 3.9 or newer** with `lz4`, `capstone`, `fonttools` and `backports.zstd`
+- ~6 GB free beyond the NSPs for the extraction; the shader compile is the long step
- Your own game files and `prod.keys` — nothing is bundled
## Notes
- No game data, keys or firmware are included. Bring your own dumped NSPs.
-- The app is a convenience wrapper; the command line remains the reference. Every option and
- limitation documented in the repository applies here too.
+- The command line remains the reference; every option and limitation documented in the repository
+ applies here too.
- Sideloading to the phone (AltStore, Sideloadly, Xcode) is outside this app's scope — see
- `dm/ios/ENTITLEMENTS.md` for the memory-limit entitlement that a large game needs.
+ `dm/ios/ENTITLEMENTS.md` for the memory-limit entitlement a large game needs.
---
# 中文说明
-界面双语化:现在支持英文,只有设备是中文时才显示中文。
-
-## v0.2.0 新增
+**App 有图标了,仓库同步了上游 296 个提交——游戏从 19 个增加到 46 个。**
-**界面支持中英双语。** 在此之前只有中文,把不看中文的人挡在了外面。
+## v0.3.0 新增
-- **跟随设备语言。** 首次启动时,任何中文变体(简体、繁体、香港、台湾)都用中文,**其他所有语言一律英文**。
-- **标题栏的 `中文` / `EN` 按钮**随时切换。按钮显示的是你**将要切换到的**语言,选择会被记住。
-- 全部 78 条界面文案集中在同一张表里,每条都是 `key: (中文, 英文)` 配对。缺少翻译时会直接显示 key 本身而不是空白按钮,启动时还会自检并报告哪一边为空。
-- 带数据的文案——缺失的包路径、退出码、归档目标目录——整句翻译并用占位符替换,保证两种语言的语序都正确。
-- 切换语言会立即重新渲染依赖列表和游戏数据槽位,不会干扰正在运行的构建。
+**App 图标。** 绿色圆角底 + 手柄图形,和 App 标题栏同一个绿色。Dock 和访达里不再是空白方块。
-本次还包括:标签列不再折行(`Add-on content (DLC)` 在原来的宽度下会断成两行),下载包内附中英文两版截图。
+**46 个游戏 profile,原来 19 个。** 仓库落后上游 296 个提交,同步后新增 27 个游戏,以及它们需要的宿主和图形层改动:
-其余功能与 v0.1.0 相同:四项输入分开选、依赖检测与一键安装、从脚本自身阶段行解析的进度、自动生成 RomFS 归档分片。
+Hollow Knight: Silksong, Celeste, DARK SOULS: REMASTERED, Animal Crossing: New Horizons,
+Paper Mario: The Thousand-Year Door, Pokémon Legends: Z-A, Luigi's Mansion 3, Super Mario Galaxy 2,
+AI: THE SOMNIUM FILES, Cuphead, Catherine: Full Body, DRAGON QUEST XI S, DRAGON QUEST VII Reimagined,
+FINAL FANTASY TACTICS, FINAL FANTASY RESONANCE, Monster Train 2, ANIMAL WELL, Raging Loop,
+Digimon Story Cyber Sleuth, The Great Ace Attorney Chronicles, STEINS;GATE RE:BOOT,
+Captain Toad: Treasure Tracker, Big Brain Academy, Patrick's Parabox, Absolum,
+Brain Memory Training Academy, AI: nirvanA Initiative
-### v0.2.1 修复
+这是 profile 数量,不代表每个游戏都能跑起来。profile 提供 build ID、内存布局和 shader 表;游戏所需的宿主改动属于同一批上游工作,一并同步过来了。哪些验证到哪一步,见 README 的游戏表。
-**构建可能因 Python 语法错误失败。** 如果 App 选中了 `/usr/bin/python3`(Xcode 命令行工具
-自带的 3.9),构建会在 `build_ipa_from_nsp.py` 报
-`SyntaxError: f-string: unmatched '['`。f-string 里嵌套同种引号是 Python 3.12 的特性,
-脚本现在改用 `str.format`,3.9 也能正常解析。
+**本 fork 自己的功能都还在**,在重写后的宿主上重新落地:
-依赖检测也收紧了:低于 3.9 的解释器会被跳过而不是选中,面板会区分**版本太旧**和**缺包**两种
-情况——两者的解决办法不同。仓库里所有 `.py` 都通过了 3.9 语法检查。
+- RomFS 归档层,重新移植进重写后的 `hle_fs.c`。宿主编译通过,归档读取器用真实的双分片归档跑通了测试。
+- 默认瘦身 IPA(`DM_FULL_ROMFS=1` 才是上游的完整包),以及把「增加内存上限」entitlement 带进侧载工具的 ad-hoc 占位签名。上游现在只在 `--prepare-xcode` 模式下设这个 entitlement,直接用上游打出的 IPA 会丢掉它。
+- `romfs.idx` 识别、`--work-dir`、`DOTNET_ROOT` 自动推导。
-**要求:Python 3.9 或更新,并装有 `lz4`、`capstone`、`fonttools`、`backports.zstd`。**
-App 的依赖面板会把包装到它选中的那个解释器里;如果找不到合适的 Python,请自行安装
-(python.org 或 `brew install python`)后点「Check again」。
+**v0.2.1 的 Python 3.9 修复仍在**,而且新同步的上游代码里又出现了三处同样的问题(只有 Python 3.12 能解析的 f-string),已全部修掉。仓库里每个 `.py` 都能被 3.9 解析。
## 这个包是什么
-[`NS-Port-Builder-macOS-arm64.zip`](https://github.com/LNPANDY/nxnative-romfs-archive/releases/download/v0.2.1/NS-Port-Builder-macOS-arm64.zip) 就是 App 本身,ad-hoc 签名,Apple Silicon,macOS 13+。解压到任意位置双击即可。因为用的是 ad-hoc 签名,**首次启动需要右键 → 打开**,或者执行 `xattr -dr com.apple.quarantine "NS Port Builder.app"`。
+[`NS-Port-Builder-macOS-arm64.zip`](https://github.com/LNPANDY/nxnative-romfs-archive/releases/download/v0.3.0/NS-Port-Builder-macOS-arm64.zip) 就是 App 本身,ad-hoc 签名,Apple Silicon,macOS 13+。解压到任意位置双击即可。因为用的是 ad-hoc 签名,**首次启动需要右键 → 打开**,或者执行 `xattr -dr com.apple.quarantine "NS Port Builder.app"`。
-**这只是前端。** 它调用的是 [nxnative-romfs-archive](https://github.com/LNPANDY/nxnative-romfs-archive) 里的脚本,所以这台 Mac 上还需要 clone 那个仓库。App 会自己找:放在仓库旁边能自动发现,找不到就用「Choose repository…」指定一次(目录里有 `dm/tools/nx_extract/Program.cs` 才算真正的仓库,那一行会变绿)。
+**这只是前端。** 它调用 [nxnative-romfs-archive](https://github.com/LNPANDY/nxnative-romfs-archive) 里的脚本,所以这台 Mac 上还需要 clone 那个仓库——而且必须是带 46 个 profile 的当前 `main`。App 会自己找:放在仓库旁边能自动发现,找不到就用「Choose repository…」指定一次。
## 已验证的游戏
| 游戏 | 状态 |
|---|---|
-| **塞尔达传说:王国之泪**(0100F2C0115B6000,v1.0.0 + 更新 1.4.3) | 已验证 —— 构建、安装、在 iPhone 上运行;304,243 个文件归档成 127 片,逐字节校验全部通过 |
-| **Hades II**(0100A00019DE0000,本体 + 更新) | 已验证 —— 构建、安装、在 iPhone 上运行;33 个文件的归档 |
+| **塞尔达传说:王国之泪**(0100F2C0115B6000) | 已验证 —— 构建、安装、在 iPhone 上运行;304,243 个文件归档成 127 片,逐字节校验通过 |
+| **Hades II**(0100A00019DE0000) | 已验证 —— 构建、安装、在 iPhone 上运行;33 个文件的归档 |
-**其他游戏均未验证。** nxnative 需要每个游戏自己的 profile(`dm/games/<title ID>/`);没有 profile 时会退化成「调研 + 推测参数」的临时 profile,**可能无法启动**。如果你试了别的游戏,请做好自行 bring-up 的准备,也欢迎把结果反馈过来。
+**其他游戏本 fork 均未验证。** 46 个里有 20 个是上游报告 iPhone 可玩的,其余只有 profile。如果你试了别的游戏,请做好自行 bring-up 的准备,也欢迎反馈结果。
## 环境要求
-- Apple Silicon Mac(App 只有 arm64;构建脚本本身在 Intel 上也能跑)
+- Apple Silicon Mac(App 只有 arm64;构建脚本在 Intel 上也能跑)
- macOS 13 或更高
-- 除 NSP 外额外预留约 6 GB 空间用于解包;shader 编译是最慢的一步(王国之泪约 50 分钟)
+- **Python 3.9 或更新**,并装有 `lz4`、`capstone`、`fonttools`、`backports.zstd`
+- 除 NSP 外额外预留约 6 GB 用于解包;shader 编译是最慢的一步
- 你自己的游戏文件和 `prod.keys` —— 包里不含任何游戏数据
## 注意事项
- 不含任何游戏数据、密钥或固件,请使用自己 dump 的 NSP。
-- 这个 App 只是便捷封装,命令行仍是权威;仓库里记录的所有选项和限制在这里同样适用。
-- 往手机侧载(AltStore、Sideloadly、Xcode)不在这个 App 的范围内 —— 大体积游戏需要的内存上限 entitlement 见 `dm/ios/ENTITLEMENTS.md`。
+- 命令行仍是权威;仓库里记录的所有选项和限制在这里同样适用。
+- 往手机侧载(AltStore、Sideloadly、Xcode)不在这个 App 范围内 —— 大体积游戏需要的内存上限 entitlement 见 `dm/ios/ENTITLEMENTS.md`。