Skip to content

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

An issue in a milestone is the go, no label needed

v0lumehi9db7441f27e2
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index 2d9a53ee..b98fcf7e 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -5,7 +5,7 @@ Read [AGENTS.md](../AGENTS.md) (the fork's, at the root) and [CONTRIBUTING.md](.
- First, in your checkout, run `git config core.hooksPath .githooks`. The hooks run the checks before a commit and a push. Keep them installed, never use `--no-verify`, and never push to `main`: every change goes through a PR. The pre-push hook rejects a push to `main` for every tool, and the "Main rule" ruleset on GitHub rejects it for everyone, with no bypass.
- `frontend/` and `frontend-qt/` are this fork's own: change them directly. `cd frontend && swift test` is the check.
- The engine (`dm/`, `scripts/`, `docs/`, `ref/`) is not in this repository: it is seedds/nxnative at `.upstream-ref` plus `patches/`, built into `engine/` by `python3 tools/engine.py sync`. Do not add files under those paths in a PR (the `pr-scope` check fails it). A change to the engine is a pull request to seedds/nxnative first, and a patch in `patches/` (a commit in `engine/`, then `python3 tools/engine.py export`) only while the fork has to carry it.
-- A feature or a proposal from outside needs an issue or a discussion with a maintainer's go (the label `help wanted`) before you build it. Check that it exists or ask the user. A new game profile goes to seedds/nxnative first (CONTRIBUTING.md, "Fixes, features and ideas" and "Helping with games").
+- A feature or a proposal from outside needs an issue in a milestone (a maintainer puts an idea there when it gets a yes) before you build it. Check that it exists or ask the user. A new game profile goes to seedds/nxnative first (CONTRIBUTING.md, "Fixes, features and ideas" and "Helping with games").
- Never touch the shader translation chain (`dm/gfx/tools/dmsh_*`, `dm/gfx/nvn/dmsh_chain.h`, `dmsh_chain.lock`, the translator).
- A fix merges when CI is green, unless a maintainer's "changes requested" review is unanswered. A plain review comment does not block. The maintainer who requested the changes reviews again after your push. The owner decides only when the maintainers disagree. A feature PR from a maintainer waits 48 hours before it merges. A feature from outside never merges by waiting: a maintainer has to agree to the idea, try the app and review the code. A fix from outside gets the same maintainer check before it merges. Whoever merges a patch renumbers it from `patches/series` on `main`, so do not rebase to chase free numbers. Releases (version bumps, tags, update-history rows) are the owner's.
- Never attach or commit keys, game files or anything extracted from a game.
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 33d53a9d..85348e89 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -6,7 +6,7 @@
- [ ] Fix
- [ ] Feature
-Feature from outside: the issue with the go is linked (see CONTRIBUTING.md).
+Feature from outside: the issue in a milestone is linked.
## What and why
diff --git a/AGENTS.md b/AGENTS.md
index 3a3ea790..fe2fa400 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -6,7 +6,7 @@ This is the fork's guide. The engine has its own, upstream's: [engine/AGENTS.md]
- **Layout.** NX2Apple is the launcher and the glue around [seedds/nxnative](https://github.com/seedds/nxnative), which runs Nintendo Switch games natively on Apple platforms. This repository commits: `frontend/` (the Mac launcher, SwiftUI), `frontend-qt/` (the Qt front end), `frontend-ios/` (the iPhone shell), `tools/` (`engine.py`, `patches.py`, `release_manifest.py` and their tests, `try-pr`, `try-local`), `patches/` (the series), `.upstream-ref` (the nxnative commit we build on), `.github/` (CI, forms, triage), the player and developer pages (`README*.md`, `GAMES*.md`, `BUILDING*.md`, `CONTRIBUTING*.md`, `CHANGELOG*.md`, `RELEASING.md`). The engine (`dm/`, `scripts/`, `docs/`, `ref/`) is **not** here: it is nxnative at the pin plus `patches/`, built into `engine/` by `python3 tools/engine.py sync`. `engine/` is a real git repository that this one ignores. A root `.ignore` keeps it visible to ripgrep.
- **Commit with your own git identity, never upstream's.** Use the identity configured for your clone, or your own name and email. `engine/AGENTS.md` ends with a `git -c user.name=seedds -c user.email=…` line because it is written for seedds/nxnative, where seedds is the maintainer. Do not copy it here: it makes fork commits, and the `From:` line of patches made with `tools/engine.py export`, show upstream's author. Commit only when asked.
- **Here first, upstream in parallel.** A fix to the engine, to a game profile or to upstream's docs may land here first, as a patch. The same change goes to seedds/nxnative as a pull request in parallel, from a branch off their main (`git -C engine fetch seedds`, `engine/` has the remote). If you cannot open that pull request, a maintainer sends it. Outside contributors start upstream: a new game profile goes to seedds/nxnative first ([CONTRIBUTING.md](CONTRIBUTING.md#helping-with-games)). A patch here is a bridge until upstream has it, and the next bump drops it once the change is in. [patches/README.md](patches/README.md#here-first-upstream-in-parallel) has the rule and the `Upstream-Status` values.
-- **Work for an outside contributor.** Before you build a feature or a proposal, check that an issue or a discussion with a maintainer's go exists (the label `help wanted`), or ask the user ([CONTRIBUTING.md](CONTRIBUTING.md#fixes-features-and-ideas)). A new game profile goes to seedds/nxnative first. The maintainers' own work is not bound by this.
+- **Work for an outside contributor.** Before you build a feature or a proposal, check that an issue in a milestone exists (a maintainer puts an idea there when it gets a yes), or ask the user ([CONTRIBUTING.md](CONTRIBUTING.md#fixes-features-and-ideas)). A new game profile goes to seedds/nxnative first. The maintainers' own work is not bound by this.
- **How a commit in `engine/` becomes a patch.** Work in `engine/` (it holds upstream's tree with our patches as commits on top): change, test, commit with a message that says what and why. `python3 tools/engine.py export` turns the commits made since the last sync into `patches/NNNN-*.patch` with the header `Upstream-Status`, `Reason` and `Issue` (fill them in, `--status`, `--reason` and `--issue` set them) and adds them to `patches/series`. `python3 tools/engine.py check` must pass (headers, no patch on the shader chain, the series applies to the pin). The same commit goes to seedds/nxnative as a pull request in parallel. The patch says `pending` until that pull request is open, then `forwarded seedds/nxnative#<n>`. Commit `patches/` in a PR here. `sync` never throws away work in `engine/`: it stops and names `export`.
- **Never add engine files to this repository.** Files under `dm/`, `scripts/`, `docs/` and `ref/` at the root are ignored by `.gitignore`, and the `pr-scope` check fails a PR that adds them. A direct edit of engine files is lost on the next sync.
- **Issues and pull requests.** Follow [CONTRIBUTING.md](CONTRIBUTING.md), section "For AI agents and other tools", and the forms and the PR template in `.github/`. Fix or feature: every fix goes through a PR and merges when CI is green, unless a maintainer's "changes requested" review is unanswered (a plain review comment does not block, and @LNPANDY decides only when the maintainers disagree), a maintainer's own feature after 48 hours (a feature from outside never merges by waiting, a maintainer has to agree, try the app and review the code), a patch is renumbered by whoever merges it, releases and version bumps are the owner's ([RELEASING.md](RELEASING.md): a release candidate tag first, the final tag on its commit). `tools/try-pr <PR number|main|tag>` opens the app CI built. `tools/try-local` builds the app from your checkout without CI and opens it (engine tree, launcher, bundled tools, ad-hoc signed, version `<appVersion>-local`). The first run builds the bundled tools, which it caches (minutes), a later one takes about the time of `swift build`. It is not a release and cannot sign: an rc tag still needs CI and the owner's key. Never attach or commit keys, game files or data extracted from a game.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ff15b057..6180c92f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -58,7 +58,7 @@ This section is for contributions from outside. The maintainers (v0lumehi and LN
We want to help you build what fits and to spare you work that cannot go in. The launcher code is being reorganized, so many open PRs will need a rebase, and a change is easier to land when we agree on the design before the code is written. So features and proposals are always talked about first. Fixes stay welcome without asking.
- **A fix is welcome as a PR without asking.** Tests that cover a fix, typos and corrections in docs count as fixes. A report that a game works stays a report (an issue, or the entry in [GAMES.md](GAMES.md)), not a feature.
-- **Anything that is not a fix is a feature or a proposal, and is discussed first.** That means a new feature, a change to how the launcher works or looks, a new setting, a new dependency, a new way to build or install, a refactor, a new doc page. Open an issue with the form "Launcher problem or idea" (`This is: An idea`), or an idea in [Discussions](https://github.com/LNPANDY/NX2Apple/discussions) (Ideas). A maintainer says "go" by adding the label `help wanted` to the issue. Then build it, and link that issue in your PR. A feature PR without a linked issue that has the go is not reviewed. It is closed with a friendly note after 14 days, and you can reopen it once the go is there. A draft PR as a sketch is fine, but it waits for the go like any other. For a change that touches several front ends or the architecture, the issue also holds a short design note: what you want to change, why, and the alternatives you looked at.
+- **Anything that is not a fix is a feature or a proposal, and is discussed first.** That means a new feature, a change to how the launcher works or looks, a new setting, a new dependency, a new way to build or install, a refactor, a new doc page. Open an issue with the form "Launcher problem or idea" (`This is: An idea`), or an idea in [Discussions](https://github.com/LNPANDY/NX2Apple/discussions) (Ideas). The discussion ends when a maintainer says yes and puts the issue into a milestone. An issue in a milestone is the go. Then build it, and link that issue in your PR. A feature PR without a linked issue in a milestone is not reviewed. It is closed with a friendly note after 14 days, and you can reopen it once the go is there. A draft PR as a sketch is fine, but it waits for the go like any other. For a change that touches several front ends or the architecture, the issue also holds a short design note: what you want to change, why, and the alternatives you looked at.
If it is unclear whether something is a fix, ask in an issue. The maintainers decide.
@@ -68,10 +68,9 @@ PRs opened before this rule keep the old path: an issue within 48 hours of the f
### Where we would love help
-The [milestones](https://github.com/LNPANDY/NX2Apple/milestones) are the plan, and you are welcome to take an issue from one. Some issues are for the maintainers.
+The [milestones](https://github.com/LNPANDY/NX2Apple/milestones) are the plan, and anyone can take any open issue in one that nobody has taken. An issue in a milestone is a go already.
-- Issues with the label [`help wanted`](https://github.com/LNPANDY/NX2Apple/labels/help%20wanted) carry a maintainer's go already. Build one straight away and link the issue in your PR.
-- For any other issue in a milestone, comment that you would like to take it. A maintainer answers with a go or with a pointer, so two people do not build the same thing.
+- To take one, comment that you will build it. A maintainer assigns it to you, so two people do not build the same thing. Link the issue in your PR.
- [`good first issue`](https://github.com/LNPANDY/NX2Apple/labels/good%20first%20issue) marks the easy starts.
- Start from the problem, not the solution. Say what you want to do and what is in the way, which is what the form asks. The maintainers may point to a planned way to do it.
- If a maintainer cannot take an idea, they say so early and explain why, see [What happens to your PR](#what-happens-to-your-pr).
@@ -102,7 +101,7 @@ Issue forms and the PR template apply in the browser only. `gh issue create`, th
- **Problem reports.** Write the body as `###` headings with the same names as the form's fields (for example `### Game and title ID`, `### Copy diagnostics`, `### The game's log`) and fill every required field from [.github/ISSUE_TEMPLATE](.github/ISSUE_TEMPLATE). Ask the user for what you cannot read yourself: the Copy diagnostics output, the log, the versions. If a required field is missing, do not open the issue.
- **Ideas and plans.** These have no form. Write plain sections that fit the content, for example `### Idea`, `### Plan` and `### Done when`. Leave out the problem fields (`This is`, `NX2Apple version`, `Computer and OS`, `Copy diagnostics`). Open it with the labels `idea` and `no-triage`.
-- **Before you build.** If you work for an outside contributor, a feature or a proposal needs an issue or a discussion with a maintainer's go (see "Fixes, features and ideas"). Check that it exists or ask the user. A new game profile or an engine fix goes to seedds/nxnative first (see "Helping with games").
+- **Before you build.** If you work for an outside contributor, a feature or a proposal needs an issue in a milestone (see "Fixes, features and ideas"). Check that it exists or ask the user. A new game profile or an engine fix goes to seedds/nxnative first (see "Helping with games").
- **Pull requests.** Use the sections of [.github/pull_request_template.md](.github/pull_request_template.md): `gh pr create --template .github/pull_request_template.md`, or the same headings in `--body`. Answer each section and remove the `<!-- -->` hints. Under Fix or feature, tick one box. A feature from outside links the issue with the go. A change to the engine follows the rule above.
- **Screenshots.** A PR that changes the launcher needs before and after images in its body (see "A pull request"). On a Mac, capture the changed views of `frontend/` with `NX_LAUNCHER_CAPTURE_DIR=<dir> swift test` and `NX_CAPTURE_LANG` for the language (`de`, `sv` or `zh`, English is the default). `frontend-qt/` has no capture, so take its screenshots by hand. Attach the images with `gh pr create --attach` or `gh pr edit --attach`, once per file. Write `![before](./before.png)` in the body and pass `--attach ./before.png`. `gh` uploads the file and rewrites the path to a `https://github.com/user-attachments/assets/...` URL. This needs `gh` 2.99.0 or newer, push access to the repository, and an OAuth or personal access token (a GitHub App token is rejected). Afterwards, read the body back and check that it holds the asset URLs and no local paths. If your `gh` or token cannot attach, say so under Screenshots, give the paths of the captures, and ask the user to attach them. An agent without a Mac (a Linux runner) says under Screenshots that it could not capture the views and asks for screenshots in the PR.
- **Release notes.** They follow `.github/release_notes_template.md`, English first, then Chinese, no emojis.