Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.
Swift apple-siliconcustom-formathomebrewiosipaipadipadosiphonemetalnative-portnintendo-switchnxnativeromfsswitch-games
Experimental builder: the launcher runs nxb build and not the script
v0lumehi28b97f5a0f12
diff --git a/BUILDING.md b/BUILDING.mdindex 0cc3b178..da042dea 100644--- a/BUILDING.md+++ b/BUILDING.md@@ -59,6 +59,19 @@ it. Two practical notes from real dumps:`backports.zstd` is needed for Tears of the Kingdom's zstd dictionaries. Other games do not use it.+## The experimental builder (nxbuild)++[nxbuild](https://github.com/v0lumehi/nxbuild) is a build tool in Rust. It makes the same files as the build script, faster. It is off by default. The Mac launcher has the setting "Use experimental builder" (Settings, Build tools). With it on, the launcher starts one program, `nxb build`, and does not run the build script at all:++```bash+NXB_ENGINE=engine nxb build <NSP folder> --platform mac-app -k <prod.keys> --title-id <title ID> \+ -o <app> --work-dir <build folder> --engine engine --progress json+```++- The program is the `nxb` binary the player chose in Settings (the binary, or the folder that holds it), else the copy inside the app. This repository bundles no binary. It needs an `nxb` that has `build`.+- `--progress json` prints one JSON event per line (`stage`, `step`, `progress`, `stage_end`, `say`, each with `code` and `severity`). The launcher shows them as its own stages and writes every line to the build log.+- There is no fallback. A case `nxb build` does not take stops before the build with the reason: an iPhone or iPad build, an NSZ, an XCI, a game folder or a NUP, and add-on content (DLC). A failure shows nxb's exit code and its last error line. The exit codes are 0 done, 1 error, 2 bad arguments, 3 damaged data, 4 not supported yet, 6 missing key and 130 interrupted. Turning the setting off builds with the script again.+## Build the IPAThe main build script packs a **slim IPA by default** (no RomFS inside, as the app reads the game's data from its folder on the device, `Documents/games/<id>/`), so the build above already produced it. To re-pack just the package later:diff --git a/frontend/Sources/NXCore/ExperimentalBuilder.swift b/frontend/Sources/NXCore/ExperimentalBuilder.swiftindex 8678eb32..566f751a 100644--- a/frontend/Sources/NXCore/ExperimentalBuilder.swift+++ b/frontend/Sources/NXCore/ExperimentalBuilder.swift@@ -1,8 +1,8 @@import Foundation-/// The experimental builder (LNPANDY/NX2Apple#749): nxbuild, a build tool in Rust that reproduces stages of the NSP script byte for byte and faster.-/// The script stays the driver. With `DM_EXPERIMENTAL_BUILDER=1` and `NXB_BIN` it hands the stages nxbuild supports (the extraction and the shader split today)-/// to nxbuild, and runs every other case the standard way. An engine without that patch ignores both variables.+/// The experimental builder (LNPANDY/NX2Apple#749): nxbuild, a build tool in Rust that reproduces the NSP script's stages byte for byte and faster.+/// With the switch on, the launcher starts `nxb build` itself and the NSP script is not run. There is no fallback to the script: a case `nxb build` cannot do+/// (exit code 4), a failure or an input it does not take is shown as an error with nxb's own message and its exit code. BUILDING.md has the details.////// Where `nxb` comes from:/// 1. the path the player chose in Settings (the `nxb` binary, or the folder that holds it), for a local build of nxbuild;@@ -31,9 +31,41 @@ package enum ExperimentalBuilder {return bundled.flatMap { isExecutable($0) ? $0 : nil }}- /// The variables the build gets: the switch and the path of `nxb`.- package static func environment(nxb: String) -> [String: String] {- ["DM_EXPERIMENTAL_BUILDER": "1", "NXB_BIN": nxb]+ /// What the build gets in the environment: the engine `nxb build` reads the game profiles and tools from (`NXB_ENGINE`).+ package static func environment(engine: String) -> [String: String] {+ ["NXB_ENGINE": engine]+ }++ /// The command line of `nxb build` for a Mac app, in the NSP script's own names. `inputDir` holds one game's NSPs.+ /// No `--gpu`: nxb builds no pipeline archive then, where the script made one for this Mac's GPU.+ package static func buildArguments(inputDir: String, keys: String, titleID: String, out: String, workDir: String, engine: String) -> [String] {+ ["build", inputDir, "--platform", "mac-app", "-k", keys, "--title-id", titleID, "-o", out, "--work-dir", workDir, "--engine", engine, "--progress", "json"]+ }++ /// The string key of what `nxb build` does not take, nil when it takes the case. The inputs are what the player picked:+ /// `iPhone` is a build for an iPhone or iPad, `gameFolder` a game's files as a folder or a NUP, `compressed` an NSZ or XCZ, `card` an XCI, `dlc` add-on content.+ package static func unsupportedKey(mac: Bool, gameFolder: Bool, compressed: Bool, card: Bool, dlc: Bool) -> String? {+ if !mac { return "nxb.unsupported.target" }+ if gameFolder || compressed || card { return "nxb.unsupported.input" }+ if dlc { return "nxb.unsupported.dlc" }+ return nil+ }++ /// The string key of what nxb's exit code says (`nxb build`'s: 0 done, 1 error, 2 bad arguments, 3 damaged data, 4 not supported yet, 6 missing key, 130 interrupted).+ package static func exitKey(_ status: Int32) -> String {+ [1: "nxb.exit.1", 2: "nxb.exit.2", 3: "nxb.exit.3", 4: "nxb.exit.4", 6: "nxb.exit.6", 130: "nxb.exit.130"][status] ?? "nxb.exit.other"+ }++ /// The last line nxb printed as an error (`[RED] ...`, in a `say` event or as plain text), without the marker. nil when there is none.+ package static func lastError(in log: String) -> String? {+ for line in log.split(separator: "\n").reversed() {+ var text = String(line)+ if text.hasPrefix("{"), let data = text.data(using: .utf8), let e = (try? JSONSerialization.jsonObject(with: data)) as? [String: Any], e["ev"] as? String == "say" {+ text = e["msg"] as? String ?? ""+ }+ if let r = text.range(of: "[RED] ") { return String(text[r.upperBound...]) }+ }+ return nil}package static func directoryExists(_ path: String) -> Bool {diff --git a/frontend/Sources/NXModel/BuildStore+Builder.swift b/frontend/Sources/NXModel/BuildStore+Builder.swiftindex 18f285c6..88f1e953 100644--- a/frontend/Sources/NXModel/BuildStore+Builder.swift+++ b/frontend/Sources/NXModel/BuildStore+Builder.swift@@ -1,23 +1,53 @@import Foundationimport NXCore-// The experimental builder (#749): Settings' switch and the nxb binary it uses, and what the build gets from them.-// The rules (where nxb comes from, the variables) are ExperimentalBuilder in NXCore.+// The experimental builder (#749): Settings' switch and the nxb binary it uses. With the switch on, the build is `nxb build` and the script is not run.+// The rules (where nxb comes from, the command line, the exit codes) are ExperimentalBuilder in NXCore.extension BuildStore {- /// The `nxb` the next build takes, nil when there is none (the switch is then only a note in the log).+ /// The `nxb` the next build takes, nil when there is none.package var experimentalBuilderBinary: String? {ExperimentalBuilder.resolve(customPath: experimentalBuilderPath, bundled: bundledBuilder)}- /// The variables the build gets for the experimental builder, empty when it is off or no nxb is found. Says in the log which it is.- package func builderEnvironment() -> [String: String] {- guard experimentalBuilder else { return [:] }- guard let nxb = experimentalBuilderBinary else {- say(t("msg.builderMissing"))- return [:]+ /// Why the build cannot start as `nxb build`, as the player's text: no nxb found, or an input or target nxb does not take. nil when it can start (or the switch is off).+ func experimentalBuilderProblem(gameFolder: Bool) -> String? {+ guard experimentalBuilder else { return nil }+ if experimentalBuilderBinary == nil { return t("msg.builderMissingError") }+ let ext = ([basePath, updatePath] + dlcPaths).map { ($0 as NSString).pathExtension.lowercased() }+ return ExperimentalBuilder.unsupportedKey(mac: target == BuildTarget.mac, gameFolder: gameFolder, compressed: ext.contains { $0 == "nsz" || $0 == "xcz" },+ card: ext.contains("xci"), dlc: !dlcPaths.isEmpty).map(t)+ }++ /// The launch of `nxb build` for a Mac app: nxb as the program, the engine as its working folder and `NXB_ENGINE`, the tool environment the script gets.+ func experimentalLaunch(nxb: String, inputDir: String, workDir: String, engine: String, environment: [String: String], python: String) -> ProcessLaunch {+ let args = ExperimentalBuilder.buildArguments(inputDir: inputDir, keys: keysPath, titleID: buildKey, out: macAppPath, workDir: workDir, engine: engine)+ say(String(format: t("msg.builderOn"), nxb) + " " + args.joined(separator: " "))+ lastBuildCommand = [nxb] + args+ return ProcessLaunch(executable: nxb, arguments: args, environment: environment.merging(ExperimentalBuilder.environment(engine: engine)) { $1 }, directory: engine, groupPython: python)+ }++ /// What a failed `nxb build` says: its exit code in words and the last error line it printed.+ func experimentalFailureNote(status: Int32) -> String {+ let why = String(format: t(ExperimentalBuilder.exitKey(status)), status)+ guard let line = ExperimentalBuilder.lastError(in: logTail) else { return why }+ return why + " " + line+ }++ /// The environment the build's tools run in, for the script and for `nxb build` alike: PATH, the user, the .NET runtime root, the bundled Python's settings.+ func toolEnvironment(python py: String) -> [String: String] {+ // The root of the runtime the apphost looks for: derived from the detected installation, not assumed to be ~/.dotnet (Homebrew keeps it in .../opt/dotnet/libexec).+ // Only set when the derivation actually answered. TMPDIR as well: .NET 10 on macOS keeps the named mutex its first-run configure takes under $TMPDIR/.dotnet/shm.+ var denv: [String: String] = ["PATH": BuildCommands.toolPath("/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin", python: py),+ "USER": NSUserName(), "HOME": NSHomeDirectory(), "LANG": "en_US.UTF-8",+ "TMPDIR": NSTemporaryDirectory()]+ if let droot = Toolchain.dotnetRoot(for: deps.dotnetPath.isEmpty ? "dotnet" : deps.dotnetPath) {+ denv["DOTNET_ROOT"] = droot // both variables carry the same root, as the apphost checks the arch-specific one first+ denv["DOTNET_ROOT_ARM64"] = droot}- say(String(format: t("msg.builderOn"), nxb))- return ExperimentalBuilder.environment(nxb: nxb)+ // The bundled Python lives inside the signed app: a .pyc written there would change what the signature seals+ // (the packages are compiled at bundle time), and a user site must not shadow its pinned packages.+ denv.merge(BundledTools.environment(for: py)) { $1 }+ return denv}}diff --git a/frontend/Sources/NXModel/BuildStore+Run.swift b/frontend/Sources/NXModel/BuildStore+Run.swiftindex 2a0dfad8..5a69cbd1 100644--- a/frontend/Sources/NXModel/BuildStore+Run.swift+++ b/frontend/Sources/NXModel/BuildStore+Run.swift@@ -24,6 +24,9 @@ extension BuildStore {fail(repo.path.isEmpty ? t("msg.repoInvalidEmpty") : String(format: t("msg.repoInvalid"), shortPath(repo.path)))return}+ // The experimental builder runs `nxb build` and never the script, so a case it does not take stops here with its reason (#749)+ nxbRun = experimentalBuilder+ if let why = experimentalBuilderProblem(gameFolder: gameFolder != nil) { fail(why); return }// Resolve the interpreter here if the dependency check has not landed yet. checkDeps()// runs on a background queue and startBuild() can beat it — for a moment deps.pythonPath is// empty, and the old fallback was Apple's /usr/bin/python3 (3.9), which the script then@@ -176,19 +179,11 @@ extension BuildStore {// (NuGet-Migrations) under $TMPDIR/.dotnet/shm, and with no TMPDIR it stats "" and dies with// 'NuGet-Migrations' + lstat("") == ENOENT before any project is read. NSTemporaryDirectory()// is the per-user temp folder whether or not the app's own environment carries one.- var denv: [String: String] = ["PATH": BuildCommands.toolPath("/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin", python: py),- "USER": NSUserName(), "HOME": NSHomeDirectory(), "LANG": "en_US.UTF-8",- "TMPDIR": NSTemporaryDirectory()]- if let droot = Toolchain.dotnetRoot(for: deps.dotnetPath.isEmpty ? "dotnet" : deps.dotnetPath) {- denv["DOTNET_ROOT"] = droot // both variables carry the same root, as the apphost checks the arch-specific one first- denv["DOTNET_ROOT_ARM64"] = droot- }- // The bundled Python lives inside the signed app: a .pyc written there would change what the signature seals- // (the packages are compiled at bundle time), and a user site must not shadow its pinned packages.- denv.merge(BundledTools.environment(for: py)) { $1 }+ var denv = toolEnvironment(python: py)if !oneGameIPAPath.isEmpty { denv.merge(OneGameIPA.environment) { $1 } }- denv.merge(builderEnvironment()) { $1 } // the experimental builder, when it is on (BuildStore+Builder.swift, #749)- let launch = ProcessLaunch(executable: py, arguments: args, environment: denv, directory: engine, groupPython: py)+ let launch = nxbRun+ ? experimentalLaunch(nxb: experimentalBuilderBinary ?? "", inputDir: inputDir, workDir: workDir, engine: engine, environment: denv, python: py) // BuildStore+Builder.swift (#749)+ : ProcessLaunch(executable: py, arguments: args, environment: denv, directory: engine, groupPython: py)let onExit: @Sendable (Int32) -> Void = { [weak self] status inhop {guard let self else { return }@@ -237,7 +232,13 @@ extension BuildStore {}}} else {- if let i = self.stages.lastIndex(where: { $0.state == .running }) {+ if self.nxbRun {+ // nxb's own exit code and message, as they are: there is no script to run instead (#749)+ let note = self.experimentalFailureNote(status: status)+ if let i = self.stages.lastIndex(where: { $0.state == .running }) { self.stages[i].state = .failed; self.stages[i].detail = String(format: self.t("msg.exitCode"), status) }+ self.doneNote = note+ self.say("✗ " + note)+ } else if let i = self.stages.lastIndex(where: { $0.state == .running }) {self.stages[i].state = .failedself.stages[i].detail = String(format: self.t("msg.exitCode"), status)self.noteFailure()diff --git a/frontend/Sources/NXModel/BuildStore.swift b/frontend/Sources/NXModel/BuildStore.swiftindex a0b22cfa..4ba29fdc 100644--- a/frontend/Sources/NXModel/BuildStore.swift+++ b/frontend/Sources/NXModel/BuildStore.swift@@ -139,6 +139,7 @@ func hop(_ body: @escaping @MainActor () -> Void) {}/// The app's own nxb (Contents/Resources/nxbuild/nxb, frontend/nxbuild.pin), nil in tests and in a build without a pinned release.package var bundledBuilder: String? = ExperimentalBuilder.bundled(resources: Bundle.main.resourcePath)+ package var nxbRun = false // the running build is `nxb build`, not the script: its exit code has its own messages@Published package var archivePath = "" // the romfs folder the pack wrote/// Where this build's folder actually is: --work-dir when the checkout has it, else the script's/// default under the input folder (issue #5 — an upstream checkout has no --work-dir).diff --git a/frontend/Tests/NXCoreTests/ExperimentalBuilderTests.swift b/frontend/Tests/NXCoreTests/ExperimentalBuilderTests.swiftindex 70a08028..c987bd23 100644--- a/frontend/Tests/NXCoreTests/ExperimentalBuilderTests.swift+++ b/frontend/Tests/NXCoreTests/ExperimentalBuilderTests.swift@@ -27,7 +27,36 @@ final class ExperimentalBuilderTests: XCTestCase {"an app built without a pinned release has no copy")}- func testTheBuildGetsTheSwitchAndThePath() {- XCTAssertEqual(ExperimentalBuilder.environment(nxb: "/opt/nxb"), ["DM_EXPERIMENTAL_BUILDER": "1", "NXB_BIN": "/opt/nxb"])+ func testNxbBuildGetsTheScriptsOptionsAndTheEngine() {+ let args = ExperimentalBuilder.buildArguments(inputDir: "/g", keys: "/k/prod.keys", titleID: "010015100B514000", out: "/o/W.app", workDir: "/o/w", engine: "/e")+ XCTAssertEqual(args.first, "build", "the one nxb binary: its subcommand")+ for pair in [["--platform", "mac-app"], ["-k", "/k/prod.keys"], ["--title-id", "010015100B514000"], ["-o", "/o/W.app"], ["--work-dir", "/o/w"], ["--engine", "/e"], ["--progress", "json"]] {+ XCTAssertEqual(args[args.firstIndex(of: pair[0])! + 1], pair[1], pair[0])+ }+ XCTAssertEqual(ExperimentalBuilder.environment(engine: "/e"), ["NXB_ENGINE": "/e"])+ }++ func testWhatNxbBuildDoesNotTake() {+ func key(mac: Bool = true, folder: Bool = false, compressed: Bool = false, card: Bool = false, dlc: Bool = false) -> String? {+ ExperimentalBuilder.unsupportedKey(mac: mac, gameFolder: folder, compressed: compressed, card: card, dlc: dlc)+ }+ XCTAssertNil(key())+ XCTAssertEqual(key(mac: false), "nxb.unsupported.target")+ XCTAssertEqual(key(folder: true), "nxb.unsupported.input")+ XCTAssertEqual(key(compressed: true), "nxb.unsupported.input")+ XCTAssertEqual(key(card: true), "nxb.unsupported.input")+ XCTAssertEqual(key(dlc: true), "nxb.unsupported.dlc")+ }++ func testEveryExitCodeOfNxbHasItsOwnMessage() {+ XCTAssertEqual([1, 2, 3, 4, 6, 130].map { ExperimentalBuilder.exitKey($0) }, ["nxb.exit.1", "nxb.exit.2", "nxb.exit.3", "nxb.exit.4", "nxb.exit.6", "nxb.exit.130"])+ XCTAssertEqual(ExperimentalBuilder.exitKey(7), "nxb.exit.other")+ }++ func testTheLastErrorLineIsReadFromAnEventOrPlainText() {+ let log = "{\"ev\": \"say\", \"msg\": \"[RED] first\"}\nplain line\n[RED] second one\ntool output\n"+ XCTAssertEqual(ExperimentalBuilder.lastError(in: log), "second one")+ XCTAssertEqual(ExperimentalBuilder.lastError(in: "{\"ev\": \"say\", \"msg\": \"[RED] only\"}\n"), "only")+ XCTAssertNil(ExperimentalBuilder.lastError(in: "all fine\n"))}}diff --git a/frontend/Tests/NXModelTests/BuildStoreTests.swift b/frontend/Tests/NXModelTests/BuildStoreTests.swiftindex 01f5f694..bb32f811 100644--- a/frontend/Tests/NXModelTests/BuildStoreTests.swift+++ b/frontend/Tests/NXModelTests/BuildStoreTests.swift@@ -150,8 +150,7 @@ import XCTestfunc testTheExperimentalBuilderIsOffByDefaultAndItsSettingIsSaved() {let store = makeStore()XCTAssertFalse(store.experimentalBuilder)- XCTAssertEqual(store.builderEnvironment(), [:], "off: the build gets nothing")- XCTAssertFalse(store.log.text.contains(store.t("msg.builderMissing")), "and the log says nothing")+ XCTAssertNil(store.experimentalBuilderProblem(gameFolder: false), "off: nothing to say")store.experimentalBuilder = true; store.experimentalBuilderPath = "/opt/nxbuild"XCTAssertTrue(defaults.bool(forKey: BuildStore.experimentalBuilderKey))XCTAssertEqual(defaults.string(forKey: BuildStore.experimentalBuilderPathKey), "/opt/nxbuild")@@ -160,22 +159,35 @@ import XCTestXCTAssertEqual(again.experimentalBuilderPath, "/opt/nxbuild")}- func testTheBuildGetsTheChosenNxbOrANoteThatTheStandardBuilderRuns() throws {+ func testTheExperimentalBuilderStopsAnUnsupportedBuildWithItsReasonAndNeverRunsTheScript() throws {let store = makeStore()store.bundledBuilder = nilstore.experimentalBuilder = truestore.experimentalBuilderPath = temporary.path + "/gone/nxb"XCTAssertNil(store.experimentalBuilderBinary)- XCTAssertEqual(store.builderEnvironment(), [:])- XCTAssertTrue(store.log.text.contains(store.t("msg.builderMissing")))+ XCTAssertEqual(store.experimentalBuilderProblem(gameFolder: false), store.t("msg.builderMissingError"), "no nxb is an error, not a build by the script")let nxb = try file("nxb")try FileManager.default.setAttributes([.posixPermissions: 0o755], ofItemAtPath: nxb)store.experimentalBuilderPath = temporary.path // the folder that holds itXCTAssertEqual(store.experimentalBuilderBinary, nxb)- XCTAssertEqual(store.builderEnvironment(), ["DM_EXPERIMENTAL_BUILDER": "1", "NXB_BIN": nxb])- XCTAssertTrue(store.log.text.contains(String(format: store.t("msg.builderOn"), nxb)))+ store.target = BuildTarget.mac; store.take(picked: ["/g/Game [0100000000001000][v0].nsp"], kind: .base)+ XCTAssertNil(store.experimentalBuilderProblem(gameFolder: false))+ XCTAssertEqual(store.experimentalBuilderProblem(gameFolder: true), store.t("nxb.unsupported.input"))+ store.take(picked: ["/g/Game [0100000000001000].xci"], kind: .base)+ XCTAssertEqual(store.experimentalBuilderProblem(gameFolder: false), store.t("nxb.unsupported.input"))+ store.take(picked: ["/g/Game [0100000000001000].nsp"], kind: .base); store.take(picked: ["/g/DLC [0100000000001001].nsp"], kind: .dlc)+ XCTAssertEqual(store.experimentalBuilderProblem(gameFolder: false), store.t("nxb.unsupported.dlc"))+ store.clear("dlc"); store.target = "ios"+ XCTAssertEqual(store.experimentalBuilderProblem(gameFolder: false), store.t("nxb.unsupported.target"))store.experimentalBuilder = false- XCTAssertEqual(store.builderEnvironment(), [:], "off again: nothing, whatever the path")+ XCTAssertNil(store.experimentalBuilderProblem(gameFolder: true), "off again: the script takes every case")+ }++ func testAFailedNxbBuildSaysItsExitCodeAndItsLastErrorLine() {+ let store = makeStore()+ store.append("{\"ev\": \"say\", \"msg\": \"[RED] no key master_key_0f in prod.keys\", \"severity\": \"error\"}\n")+ XCTAssertEqual(store.experimentalFailureNote(status: 6), String(format: store.t("nxb.exit.6"), 6) + " no key master_key_0f in prod.keys")+ XCTAssertTrue(store.experimentalFailureNote(status: 4).contains("exit code 4"))}func testTakingFilesFillsTheRowAndNamesTheFirstFileThatDoesNotFit() {diff --git a/frontend/l10n/de.json b/frontend/l10n/de.jsonindex a0afa9f8..c6503df1 100644--- a/frontend/l10n/de.json+++ b/frontend/l10n/de.json@@ -1074,7 +1074,6 @@"msg.bcOn": "Modus für ältere Geräte: BC-Texturen werden auf der CPU dekodiert","msg.buildFailed": "Build fehlgeschlagen (Exit-Code %d). Siehe das Protokoll unten","msg.buildFailedReason": "Build fehlgeschlagen. Siehe das Protokoll unten. Letzte Zeile: %@",- "msg.builderMissing": "Der experimentelle Builder ist an, aber es wurde kein Programm nxb gefunden. Der Standard-Builder läuft.","msg.builderOn": "Experimenteller Builder: %@","msg.done": "Fertig","msg.exitCode": "Exit-Code %d",diff --git a/frontend/l10n/en.json b/frontend/l10n/en.jsonindex 1f33d2b6..9d3d1867 100644--- a/frontend/l10n/en.json+++ b/frontend/l10n/en.json@@ -1092,7 +1092,7 @@"msg.bcOn": "Older-device mode: BC textures will be decoded on the CPU","msg.buildFailed": "Build failed (exit code %d) — see the log below","msg.buildFailedReason": "Build failed — see the log below. Last line: %@",- "msg.builderMissing": "The experimental builder is on, but no nxb program was found. The standard builder runs.",+ "msg.builderMissingError": "The experimental builder is on, but no nxb program was found. Choose one in Settings or turn the experimental builder off.","msg.builderOn": "Experimental builder: %@","msg.done": "Done","msg.exitCode": "exit code %d",@@ -1122,6 +1122,16 @@"notify.forIOS": "For iPhone / iPad","notify.forMac": "For this Mac, in your library","notify.installedOn": "Installed on %@",+ "nxb.exit.1": "The build failed (nxb exit code %d).",+ "nxb.exit.130": "The build was interrupted (nxb exit code %d).",+ "nxb.exit.2": "nxb did not accept its arguments (exit code %d).",+ "nxb.exit.3": "A game file is damaged (nxb exit code %d).",+ "nxb.exit.4": "The experimental builder does not support this game or step yet (nxb exit code %d). Turn it off in Settings to build with the standard builder.",+ "nxb.exit.6": "A key is missing from prod.keys (nxb exit code %d).",+ "nxb.exit.other": "The build failed (nxb exit code %d).",+ "nxb.unsupported.dlc": "The experimental builder does not take add-on content (DLC) yet. Remove it from the build, or turn the builder off in Settings.",+ "nxb.unsupported.input": "The experimental builder reads NSP files only. NSZ, XCI, a game folder and a NUP are not supported yet. Turn it off in Settings to build this game.",+ "nxb.unsupported.target": "The experimental builder makes Mac apps only. Turn it off in Settings to build for an iPhone or iPad.","onboarding.back": "Back","onboarding.background.dotnet": ".NET","onboarding.background.installing": "Installing…",diff --git a/frontend/l10n/it.json b/frontend/l10n/it.jsonindex ba0b211b..0b64525a 100644--- a/frontend/l10n/it.json+++ b/frontend/l10n/it.json@@ -1067,7 +1067,6 @@"msg.bcOn": "Modalità per dispositivi meno recenti: le texture BC verranno decodificate sulla CPU","msg.buildFailed": "Build non riuscita (codice di uscita %d): vedi il log qui sotto","msg.buildFailedReason": "Build non riuscita: vedi il log qui sotto. Ultima riga: %@",- "msg.builderMissing": "Il builder sperimentale è attivo, ma non è stato trovato nessun programma nxb. Si usa il builder standard.","msg.builderOn": "Builder sperimentale: %@","msg.done": "Fatto","msg.exitCode": "codice di uscita %d",diff --git a/frontend/l10n/sv.json b/frontend/l10n/sv.jsonindex 121dae8c..871e4c74 100644--- a/frontend/l10n/sv.json+++ b/frontend/l10n/sv.json@@ -907,7 +907,6 @@"msg.bcOn": "Läget för äldre enheter: BC-texturer avkodas på processorn","msg.buildFailed": "Bygget misslyckades med slutkod %d. Se loggen nedan.","msg.buildFailedReason": "Bygget misslyckades. Se loggen nedan. Sista raden: %@",- "msg.builderMissing": "Den experimentella byggaren är på, men inget program nxb hittades. Standardbyggaren körs.","msg.builderOn": "Experimentell byggare: %@","msg.done": "Klart","msg.exitCode": "slutkod %d",diff --git a/frontend/l10n/zh.json b/frontend/l10n/zh.jsonindex accc1d17..edc1edfc 100644--- a/frontend/l10n/zh.json+++ b/frontend/l10n/zh.json@@ -1093,7 +1093,7 @@"msg.bcOn": "兼容老设备:BC 纹理将在 CPU 上解压","msg.buildFailed": "构建失败(退出码 %d),见下方日志","msg.buildFailedReason": "构建失败,见下方日志。最后一行:%@",- "msg.builderMissing": "实验性构建器已开启,但未找到 nxb 程序。将使用标准构建器。",+ "msg.builderMissingError": "已开启实验性构建器,但没有找到 nxb 程序。请在设置中选择一个,或关闭实验性构建器。","msg.builderOn": "实验性构建器:%@","msg.done": "完成","msg.exitCode": "退出码 %d",@@ -1123,6 +1123,16 @@"notify.forIOS": "用于 iPhone / iPad","notify.forMac": "用于这台 Mac,已在游戏库中","notify.installedOn": "已安装到 %@",+ "nxb.exit.1": "构建失败(nxb 退出代码 %d)。",+ "nxb.exit.130": "构建已中断(nxb 退出代码 %d)。",+ "nxb.exit.2": "nxb 不接受这些参数(退出代码 %d)。",+ "nxb.exit.3": "游戏文件已损坏(nxb 退出代码 %d)。",+ "nxb.exit.4": "实验性构建器暂不支持此游戏或此步骤(nxb 退出代码 %d)。请在设置中将其关闭,改用标准构建器。",+ "nxb.exit.6": "prod.keys 中缺少密钥(nxb 退出代码 %d)。",+ "nxb.exit.other": "构建失败(nxb 退出代码 %d)。",+ "nxb.unsupported.dlc": "实验性构建器暂不支持附加内容(DLC)。请从本次构建中移除,或在设置中关闭构建器。",+ "nxb.unsupported.input": "实验性构建器目前只读取 NSP 文件,尚不支持 NSZ、XCI、游戏文件夹和 NUP。请在设置中将其关闭后再构建此游戏。",+ "nxb.unsupported.target": "实验性构建器只能构建 Mac 应用。要为 iPhone 或 iPad 构建,请在设置中将其关闭。","onboarding.back": "返回","onboarding.background.dotnet": ".NET","onboarding.background.installing": "正在安装…",