Skip to content

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

Check the output disk's format before a Mac app build and say what to do (#595)

v0lumehibaf78f202f1a
diff --git a/frontend-qt/nspb_qt/build_failure.py b/frontend-qt/nspb_qt/build_failure.py
index 48d7e024..a4574955 100644
--- a/frontend-qt/nspb_qt/build_failure.py
+++ b/frontend-qt/nspb_qt/build_failure.py
@@ -29,6 +29,7 @@ NO_PROFILE = 'noProfile'
KEYS_OLD = 'keysOld'
DISK_FULL = 'diskFull'
CLOUD_FOLDER = 'cloudFolder'
+VOLUME_FORMAT = 'volumeFormat'
UNKNOWN = 'unknown'
# (id, kind, regular expression searched in the log)
@@ -51,6 +52,7 @@ TABLE: list[tuple[str, str, str]] = [
('disk.low', DISK_FULL, r'less than [0-9]+ GB free on the volume of '),
('disk.full', DISK_FULL, r'No space left on device'),
('icloud.detritus', CLOUD_FOLDER, r'resource fork, Finder information, or similar detritus not allowed'),
+ ('volume.swap', VOLUME_FORMAT, r"\[Errno 45\] Operation not supported: '[^']*\.app'"),
]
# The script's override for a stop, offered as "Build anyway". The others cannot be built around.
@@ -61,10 +63,11 @@ OVERRIDE_FLAGS = {
}
KINDS = [ROSETTA, TRANSLATOR, ZBIC, IOS_SDK, CLT_SELECTED, OTHER_METAL, SHADER_REGRESSION, DAMAGED_NSP, A32_PROGRAM,
- KEYS, SEVERAL_GAMES, NO_TITLE_ID, NO_PROFILE, KEYS_OLD, DISK_FULL, CLOUD_FOLDER]
+ KEYS, SEVERAL_GAMES, NO_TITLE_ID, NO_PROFILE, KEYS_OLD, DISK_FULL, CLOUD_FOLDER, VOLUME_FORMAT]
# The Swift app has four more rows that no log line sets (a drive that is gone, a signing team, a device transfer):
# they belong to the Mac launcher's install on a device and to /Volumes, which this front end does not have.
# cloudFolder is a row of the table, so it is here, but the check that stops a build before it starts is the Mac launcher's.
+# volumeFormat is a row of the table too: the Mac app step is the Mac launcher's, and so is the check before the build.
# The engine's online sync has two more (engine.py's ENGINE_OFFLINE and ENGINE_SYNC): no log line of the script sets them either.
_A32_NAME = re.compile(r'^(?:\[RED\] )?(.+?) \([0-9A-Fa-f]{16}\) is a 32-bit ARM program', re.M)
diff --git a/frontend-qt/tests/test_build_failure_hints.py b/frontend-qt/tests/test_build_failure_hints.py
index f1232974..3715e466 100644
--- a/frontend-qt/tests/test_build_failure_hints.py
+++ b/frontend-qt/tests/test_build_failure_hints.py
@@ -55,6 +55,9 @@ class Classifier(unittest.TestCase):
if f['source'] == 'errno': # the system's own text, not the script's
self.assertEqual(os.strerror(errno.ENOSPC), f['fragment'])
continue
+ if f['source'] == 'errno45': # the system's text for ENOTSUP, which renamex_np answers on a volume without RENAME_SWAP
+ self.assertEqual(os.strerror(errno.ENOTSUP), f['fragment'])
+ continue
if f['source'] == 'codesign': # Apple's text, from a tool the script runs
continue
there = f['fragment'] in (ROOT / 'engine' / f['source']).read_text(encoding='utf-8')
diff --git a/frontend/Sources/NXCore/BuildFailureClassifier.swift b/frontend/Sources/NXCore/BuildFailureClassifier.swift
index 1f2161c2..a7d6131b 100644
--- a/frontend/Sources/NXCore/BuildFailureClassifier.swift
+++ b/frontend/Sources/NXCore/BuildFailureClassifier.swift
@@ -25,6 +25,7 @@ package enum BuildFailureClassifier {
("disk.low", .diskFull, "less than [0-9]+ GB free on the volume of "),
("disk.full", .diskFull, "No space left on device"),
("icloud.detritus", .cloudFolder, "resource fork, Finder information, or similar detritus not allowed"),
+ ("volume.swap", .volumeFormat, "\\[Errno 45\\] Operation not supported: '[^']*\\.app'"),
]
/// What the launcher itself knows when the log says nothing it can use. The keys file and the game files are checked
diff --git a/frontend/Sources/NXCore/BuildFailureKind.swift b/frontend/Sources/NXCore/BuildFailureKind.swift
index a44cda61..2a8e046a 100644
--- a/frontend/Sources/NXCore/BuildFailureKind.swift
+++ b/frontend/Sources/NXCore/BuildFailureKind.swift
@@ -17,6 +17,9 @@ package enum BuildFailureKind: String, CaseIterable {
/// The build folder is in iCloud Drive or another cloud folder (CloudFolder.swift): the launcher stops before the build, and the
/// codesign line of xcodebuild is the same stop for a build that got past that check.
case cloudFolder
+ /// The output folder is on a disk that cannot replace the old Mac app (anything but APFS, OutputVolume.swift): the launcher stops before the
+ /// build when the app is there already, and the engine's `[Errno 45] Operation not supported` is the same stop for a build that got past that check.
+ case volumeFormat
/// The shared app's install: a device this Mac never paired, and game data that went over only in part.
case devicePairing, shellDataIncomplete
/// The engine's online sync (tools/engine.py sync, EngineLayout.swift): no network or GitHub unreachable, or any other stop of it.
diff --git a/frontend/Sources/NXCore/OutputVolume.swift b/frontend/Sources/NXCore/OutputVolume.swift
new file mode 100644
index 00000000..b4ce8a48
--- /dev/null
+++ b/frontend/Sources/NXCore/OutputVolume.swift
@@ -0,0 +1,20 @@
+import Foundation
+
+/// What the volume of the output folder can do for the Mac app step. `dm/mac/pack_app.py` puts a new `.app` over an old one with
+/// `renamex_np(RENAME_SWAP)`, which only APFS supports. On Mac OS Extended (Journaled), exFAT, FAT and network volumes the first build
+/// works and every build after it stops at the last step with `[Errno 45] Operation not supported` (#595).
+package enum OutputVolume {
+ /// Whether the volume that holds `path` can swap two folders in one step. `path` may not exist yet: the nearest folder above it
+ /// that exists decides. nil when the system does not say, which the caller takes as "go ahead".
+ package static func supportsAppReplace(at path: String, fm: FileManager = .default) -> Bool? {
+ guard !path.isEmpty else { return nil }
+ var probe = path
+ while !fm.fileExists(atPath: probe), probe != "/", !probe.isEmpty { probe = (probe as NSString).deletingLastPathComponent }
+ if let swap = (try? URL(fileURLWithPath: probe).resourceValues(forKeys: [.volumeSupportsSwapRenamingKey]))?.volumeSupportsSwapRenaming {
+ return swap
+ }
+ // No answer from the volume's capabilities: the file system's name from statfs. Only APFS is known to swap.
+ guard let volume = DriveCopy.volume(at: probe, fm: fm) else { return nil }
+ return volume.fileSystem.lowercased() == "apfs"
+ }
+}
diff --git a/frontend/Sources/NXLauncher/BuildFailureCard.swift b/frontend/Sources/NXLauncher/BuildFailureCard.swift
index 64af2f8f..bc06f2b9 100644
--- a/frontend/Sources/NXLauncher/BuildFailureCard.swift
+++ b/frontend/Sources/NXLauncher/BuildFailureCard.swift
@@ -61,7 +61,7 @@ package struct BuildFailureCard: View {
fix(kind, "fail.keys.button")
case .severalGames, .noTitleID, .diskFull:
fix(kind, "fail.showFolder")
- case .cloudFolder:
+ case .cloudFolder, .volumeFormat:
fix(kind, "fail.cloudFolder.button")
case .teamTaken, .noSigningAccount:
if Toolchain.installedXcode() != nil { fix(kind, "fail.openXcode") }
diff --git a/frontend/Sources/NXModel/BuildStore+Failure.swift b/frontend/Sources/NXModel/BuildStore+Failure.swift
index 434c6752..5448c7f2 100644
--- a/frontend/Sources/NXModel/BuildStore+Failure.swift
+++ b/frontend/Sources/NXModel/BuildStore+Failure.swift
@@ -18,7 +18,7 @@ extension BuildStore {
package func chooseBuildFolder() {
guard let path = chooseFolder() else { return }
outDir = path
- if failure?.kind == .cloudFolder { failure = nil; doneNote = "" }
+ if failure?.kind == .cloudFolder || failure?.kind == .volumeFormat { failure = nil; doneNote = "" }
}
/// What the classifier may check besides the log: the keys file and where the game files are.
@@ -83,7 +83,7 @@ extension BuildStore {
if let chooseKeys { chooseKeys() } else { pickFiles(kind: .keys) } // the same picker as the keys row
case .severalGames, .noTitleID, .diskFull:
showFailureFolder()
- case .cloudFolder:
+ case .cloudFolder, .volumeFormat:
chooseBuildFolder()
case .teamTaken, .noSigningAccount:
openXcode()
diff --git a/frontend/Sources/NXModel/BuildStore+Run.swift b/frontend/Sources/NXModel/BuildStore+Run.swift
index 853ee579..7dc8de31 100644
--- a/frontend/Sources/NXModel/BuildStore+Run.swift
+++ b/frontend/Sources/NXModel/BuildStore+Run.swift
@@ -78,6 +78,18 @@ extension BuildStore {
}
let tidHex = buildKey
let workDir = (outDir.isEmpty ? baseDir : outDir) + "/" + tidHex + "_build"
+ // A Mac app over an old one needs a volume that can swap folders (APFS): on any other the build fails at its last step with error 45 (#595).
+ if target == BuildTarget.mac {
+ let outFolder = outDir.isEmpty ? baseDir : outDir
+ if appReplaceCheck(outFolder) == false {
+ if FileManager.default.fileExists(atPath: outFolder + "/" + tidHex + ".app") {
+ failure = BuildFailure(kind: .volumeFormat, gameName: nil, detail: outFolder)
+ fail(failureWhat(failure!))
+ return
+ }
+ say(t("msg.volumeNotAPFS"))
+ }
+ }
// The build's signing step refuses the attributes a cloud folder adds, after the long steps: stop here instead.
if cloudFolderCheck(workDir) {
failure = BuildFailure(kind: .cloudFolder, gameName: nil, detail: workDir)
diff --git a/frontend/Sources/NXModel/BuildStore.swift b/frontend/Sources/NXModel/BuildStore.swift
index d7b55cf1..5c066c24 100644
--- a/frontend/Sources/NXModel/BuildStore.swift
+++ b/frontend/Sources/NXModel/BuildStore.swift
@@ -170,6 +170,8 @@ func hop(_ body: @escaping @MainActor () -> Void) {
package var openApp: (URL) -> Void = { _ in }
/// Whether the build folder is in a cloud folder. Tests stand in for the system's answer.
package var cloudFolderCheck: (String) -> Bool = { CloudFolder.contains($0) }
+ /// Whether the volume of this folder can replace an old Mac app (APFS), nil when unknown. Tests stand in for the system's answer.
+ package var appReplaceCheck: (String) -> Bool? = { OutputVolume.supportsAppReplace(at: $0) }
/// The target changed: the app checks the tools again when a Mac-only setup now needs, or no longer needs, the iOS SDK.
package var targetChanged: () -> Void
diff --git a/frontend/Tests/Fixtures/build_failures.json b/frontend/Tests/Fixtures/build_failures.json
index cb198b24..ea25403f 100644
--- a/frontend/Tests/Fixtures/build_failures.json
+++ b/frontend/Tests/Fixtures/build_failures.json
@@ -127,5 +127,12 @@
"source": "codesign",
"fragment": "resource fork, Finder information, or similar detritus not allowed",
"text": "CodeSign /Users/x/Library/Mobile\\ Documents/com~apple~CloudDocs/Downloads/0100152000022000_build/xcode-derived-data/Build/Products/Release-iphoneos/DmIOS.app (in target 'DmIOS' from project 'DmIOS')\n/Users/x/Library/Mobile Documents/com~apple~CloudDocs/Downloads/0100152000022000_build/xcode-derived-data/Build/Products/Release-iphoneos/DmIOS.app: resource fork, Finder information, or similar detritus not allowed\nCommand CodeSign failed with a nonzero exit code"
+ },
+ {
+ "id": "volume.swap",
+ "kind": "volumeFormat",
+ "source": "errno45",
+ "fragment": "Operation not supported",
+ "text": "Traceback (most recent call last):\n File \"/Users/x/nxnative/engine/dm/mac/pack_app.py\", line 223, in replace_app\n err = ctypes.get_errno(); raise OSError(err, os.strerror(err), str(out))\nOSError: [Errno 45] Operation not supported: '/Volumes/Games HFS/0100F2C0115B6000.app'"
}
]
diff --git a/frontend/Tests/NX2AppleTests/BuildFailureTests.swift b/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
index bbb8561e..f627776b 100644
--- a/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
+++ b/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
@@ -49,6 +49,10 @@ import NXModel
XCTAssertEqual(String(cString: strerror(ENOSPC)), f.fragment, f.id)
continue
}
+ if f.source == "errno45" { // the system's text for ENOTSUP, which renamex_np answers on a volume without RENAME_SWAP (pack_app.py replace_app)
+ XCTAssertEqual(String(cString: strerror(ENOTSUP)), f.fragment, f.id)
+ continue
+ }
if f.source == "codesign" { continue } // Apple's text, from a tool the script runs
let source = try String(contentsOf: Self.engine.appendingPathComponent(f.source), encoding: .utf8)
let there = source.contains(f.fragment)
@@ -282,7 +286,7 @@ import NXModel
}
for (name, kind, lang) in [("hint-other-metal", BuildFailureKind.otherMetal, Lang.en), ("hint-ios-sdk", .iosSDK, .en), ("hint-damaged-nsp", .damagedNSP, .en),
("hint-other-metal-zh", .otherMetal, .zh)]
- + [BuildFailureKind.keys, .keysOld, .severalGames, .noTitleID, .noProfile, .driveMissing, .diskFull, .teamTaken, .noSigningAccount, .deviceTransfer].flatMap { k in
+ + [BuildFailureKind.keys, .keysOld, .severalGames, .noTitleID, .noProfile, .driveMissing, .diskFull, .volumeFormat, .teamTaken, .noSigningAccount, .deviceTransfer].flatMap { k in
[("row-\(k.rawValue)", k, Lang.en), ("row-\(k.rawValue)-zh", k, Lang.zh)] } {
let mStores = LauncherStores(defaults: testDefaults); let m = mStores.build
m.lang = CaptureLanguage.current(lang)
diff --git a/frontend/Tests/NX2AppleTests/VolumeFormatTests.swift b/frontend/Tests/NX2AppleTests/VolumeFormatTests.swift
new file mode 100644
index 00000000..f421936a
--- /dev/null
+++ b/frontend/Tests/NX2AppleTests/VolumeFormatTests.swift
@@ -0,0 +1,106 @@
+import XCTest
+@testable import NX2Apple
+@testable import NXCore
+import NXModel
+@testable import NXLauncher
+
+/// #595: on a disk that is not APFS (Mac OS Extended, exFAT) the Mac app step cannot swap the new app over the old one, so the second
+/// build into a folder fails at its last step with error 45. The launcher says so before the build starts and reads the same words
+/// from a log.
+@MainActor final class VolumeFormatTests: IsolatedDefaultsTestCase {
+ private var home: URL!
+
+ override func setUpWithError() throws {
+ home = FileManager.default.temporaryDirectory.appendingPathComponent("nspb-volume-" + UUID().uuidString)
+ try FileManager.default.createDirectory(at: home, withIntermediateDirectories: true)
+ }
+
+ override func tearDownWithError() throws { try? FileManager.default.removeItem(at: home) }
+
+ private func store() throws -> BuildStore {
+ let repo = home.appendingPathComponent("repo")
+ for f in RepoLayout.requiredTools + ["dm/tools/nx_extract/Program.cs"] {
+ let url = repo.appendingPathComponent(f)
+ try FileManager.default.createDirectory(at: url.deletingLastPathComponent(), withIntermediateDirectories: true)
+ try "x".write(to: url, atomically: true, encoding: .utf8)
+ }
+ let stores = LauncherStores(defaults: testDefaults); let m = stores.build
+ m.target = BuildTarget.mac
+ stores.repo.path = repo.path
+ m.cloudFolderCheck = { _ in true } // ends a build that is let through, before any step runs
+ m.outDir = home.appendingPathComponent("out").path
+ try FileManager.default.createDirectory(atPath: m.outDir, withIntermediateDirectories: true)
+ m.updateSlot("base") { $0.paths = ["/Games/Game [0100152000022000].nsp"] }
+ return m
+ }
+
+ // ---- the log
+
+ func testTheErrorOfTheSwapIsTheVolumeStop() throws {
+ let f = try XCTUnwrap(BuildFailureTests().fixtures().first { $0.id == "volume.swap" })
+ XCTAssertEqual(BuildFailureClassifier.classify(f.text).kind, .volumeFormat)
+ XCTAssertEqual(BuildFailureClassifier.classify("OSError: [Errno 45] Operation not supported: '/Volumes/X/0100152000022000.app'").kind, .volumeFormat)
+ XCTAssertEqual(BuildFailureClassifier.classify("OSError: [Errno 45] Operation not supported: '/Volumes/X/file.txt'").kind, .unknown, "another path keeps its note")
+ XCTAssertEqual(BuildFailureClassifier.classify("OSError: [Errno 28] No space left on device").kind, .diskFull)
+ }
+
+ func testTheHintIsInAllSixLanguagesWithoutSemicolonsOrDashes() {
+ let keys = [BuildFailureKind.volumeFormat.whatKey, BuildFailureKind.volumeFormat.nextKey, "msg.volumeNotAPFS"]
+ for key in keys {
+ let row = L10n.table[key]
+ XCTAssertNotNil(row, key)
+ let texts = [row?.zh ?? "", row?.en ?? "", L10n.sv[key] ?? "", L10n.de[key] ?? "", L10n.fr[key] ?? "", L10n.catalogs["it"]?[key] ?? ""]
+ for text in texts {
+ XCTAssertFalse(text.isEmpty, key)
+ XCTAssertFalse(text.contains(";") || text.contains("\u{FF1B}") || text.contains("\u{2014}"), "\(key) has a semicolon or a dash")
+ XCTAssertTrue(text.contains("APFS") || key.hasSuffix(".what"), "\(key) does not name the format")
+ }
+ XCTAssertEqual(Set(texts).count, 6, "\(key) has a text twice")
+ }
+ let next = L10n.table[BuildFailureKind.volumeFormat.nextKey]!.en
+ XCTAssertTrue(next.contains("APFS") && next.contains("Trash"), "the next step names both fixes")
+ }
+
+ // ---- the volume
+
+ func testAFolderThatDoesNotExistYetAsksTheFolderAboveIt() throws {
+ // the answer is the real volume's and may be either: it must be the same for the folder and for one inside it that is not there
+ let here = OutputVolume.supportsAppReplace(at: home.path)
+ XCTAssertEqual(OutputVolume.supportsAppReplace(at: home.path + "/not/there/yet"), here)
+ XCTAssertNil(OutputVolume.supportsAppReplace(at: ""))
+ }
+
+ // ---- before the build
+
+ func testASecondBuildOnADiskThatCannotSwapStopsBeforeItStarts() throws {
+ let m = try store()
+ var asked: [String] = []
+ m.appReplaceCheck = { asked.append($0); return false }
+ try FileManager.default.createDirectory(atPath: m.outDir + "/0100152000022000.app", withIntermediateDirectories: true)
+ m.startBuild()
+ XCTAssertEqual(asked, [m.outDir])
+ XCTAssertFalse(m.running)
+ XCTAssertEqual(m.failure?.kind, .volumeFormat)
+ XCTAssertEqual(m.doneNote, m.t(BuildFailureKind.volumeFormat.whatKey))
+ XCTAssertFalse(m.log.text.contains(m.t("msg.volumeNotAPFS")), "the stop says it in the row, not twice")
+ }
+
+ func testTheFirstBuildOnSuchADiskGoesAheadAndSaysWhatComesNext() throws {
+ let m = try store()
+ m.appReplaceCheck = { _ in false }
+ m.startBuild()
+ XCTAssertEqual(m.failure?.kind, .cloudFolder, "it went on to the next check")
+ XCTAssertTrue(m.log.text.contains(m.t("msg.volumeNotAPFS")), "no old app is there, so the first build works and the log says what comes next")
+ }
+
+ func testAnApfsDiskOrAnUnknownOneIsNotStopped() throws {
+ for answer in [true, nil] as [Bool?] {
+ let m = try store()
+ m.appReplaceCheck = { _ in answer }
+ try FileManager.default.createDirectory(atPath: m.outDir + "/0100152000022000.app", withIntermediateDirectories: true)
+ m.startBuild()
+ XCTAssertEqual(m.failure?.kind, .cloudFolder, "\(String(describing: answer)) went on to the next check")
+ XCTAssertFalse(m.log.text.contains(m.t("msg.volumeNotAPFS")))
+ }
+ }
+}
diff --git a/frontend/l10n/de.json b/frontend/l10n/de.json
index 92570c5d..81c6d4e8 100644
--- a/frontend/l10n/de.json
+++ b/frontend/l10n/de.json
@@ -569,6 +569,8 @@
"fail.translator.button": ".NET neu installieren",
"fail.translator.next": "Installiere .NET mit der Schaltfläche unten neu und baue dann erneut. Falls DOTNET_ROOT eine andere Laufzeit nennt, hebe die Einstellung auf.",
"fail.translator.what": "Der Shader-Übersetzer läuft nicht. Er braucht die .NET-10-Laufzeit für die Architektur dieses Macs.",
+ "fail.volumeFormat.next": "Das Laufwerk ist nicht als APFS formatiert (zum Beispiel Mac OS Extended). Ein Build kann dort keine neue App über eine alte legen, deshalb klappt nur der erste Build in einen Ordner. Wähle unter „Sichern in“ einen Ordner auf einem APFS-Laufwerk oder lege die alte .app zuerst in den Papierkorb. Baue dann erneut.",
+ "fail.volumeFormat.what": "Dieses Laufwerk kann die alte Mac-App nicht ersetzen.",
"fail.zbic.button": "zbic installieren",
"fail.zbic.next": "Installiere zbic mit der Schaltfläche unten und baue dann erneut. Oder führe python3 -m pip install zbic in einem Terminal aus, mit dem Python, das der Build verwendet.",
"fail.zbic.what": "Die Module dieses Spiels nutzen Nintendos zstd-Variante (System 22.0.0 und neuer). Zum Lesen wird das Python-Paket zbic benötigt, das nicht installiert ist.",
@@ -1067,6 +1069,7 @@
"msg.stagingFailed": "Im Staging-Ordner konnten keine Links erstellt werden (Dateien auf verschiedenen Volumes?)",
"msg.stopped": "Gestoppt",
"msg.toolsOld": "Build nicht gestartet: Die Build-Werkzeuge sind älter als diese App (es fehlt %@). Aktualisiere sie zuerst unter „Einstellungen → Build-Werkzeuge“",
+ "msg.volumeNotAPFS": "Das Ausgabelaufwerk ist nicht als APFS formatiert (zum Beispiel Mac OS Extended). Dieser Build klappt, der nächste Build in diesen Ordner bricht aber ab, wenn du die alte .app nicht zuerst in den Papierkorb legst. Ein Ordner auf einem APFS-Laufwerk vermeidet das.",
"msg.workdirHint": "Tipp: Im Ausgabeordner liegt auch der Build-Cache (<Ausgabe>/<ID>_build). Um einen vorhandenen Build wiederzuverwenden, wähle wieder denselben Ordner, denn ein neuer Ordner fängt von vorn an. Wenn der Ausgabeordner auf einer externen Festplatte liegt, ist der erste Build deutlich langsamer (schlimmer bei exFAT oder einer Festplatte).",
"nav.builds": "Builds",
"nav.library": "Bibliothek",
diff --git a/frontend/l10n/en.json b/frontend/l10n/en.json
index 1488a801..f532a17e 100644
--- a/frontend/l10n/en.json
+++ b/frontend/l10n/en.json
@@ -567,6 +567,8 @@
"fail.translator.button": "Reinstall .NET",
"fail.translator.next": "Reinstall .NET with the button below, then build again. If DOTNET_ROOT names another runtime, unset it.",
"fail.translator.what": "The shader translator does not run. It needs the .NET 10 runtime for this Mac's architecture.",
+ "fail.volumeFormat.next": "The disk is not formatted as APFS (for example Mac OS Extended). A build can't put a new app over an old one there, so only the first build into a folder works. Choose a folder on an APFS disk under Save to, or move the old .app to the Trash first. Then build again.",
+ "fail.volumeFormat.what": "This disk can't replace the old Mac app.",
"fail.zbic.button": "Install zbic",
"fail.zbic.next": "Install zbic with the button below, then build again. Or run python3 -m pip install zbic in a terminal, with the Python the build uses.",
"fail.zbic.what": "This game's modules use Nintendo's zstd variant (system 22.0.0 and later), and reading them needs the Python package zbic, which is not installed.",
@@ -1065,6 +1067,7 @@
"msg.stagingFailed": "Could not create links in the staging folder (files on different volumes?)",
"msg.stopped": "Stopped",
"msg.toolsOld": "Build not started: the build tools are older than this app (missing %@). Update them in Settings → Build tools first",
+ "msg.volumeNotAPFS": "The output disk is not formatted as APFS (for example Mac OS Extended). This build works, but the next build into this folder stops unless you move the old .app to the Trash first. A folder on an APFS disk avoids this.",
"msg.workdirHint": "Tip: the output folder is also where the build cache lives (<output>/<ID>_build). To reuse an existing build, point it back at the same folder, since a new folder starts over. When the output folder is on an external drive, a first build is noticeably slower (worse on exFAT or a hard disk).",
"nav.builds": "Builds",
"nav.library": "Library",
diff --git a/frontend/l10n/fr.json b/frontend/l10n/fr.json
index db6060ed..81758da3 100644
--- a/frontend/l10n/fr.json
+++ b/frontend/l10n/fr.json
@@ -568,6 +568,8 @@
"fail.translator.button": "Réinstaller .NET",
"fail.translator.next": "Réinstallez .NET avec le bouton ci-dessous, puis compilez à nouveau. Si DOTNET_ROOT désigne un autre runtime, supprimez cette variable.",
"fail.translator.what": "Le traducteur de shaders ne s’exécute pas. Il nécessite le runtime .NET 10 pour l’architecture de ce Mac.",
+ "fail.volumeFormat.next": "Le disque n’est pas formaté en APFS (par exemple Mac OS étendu). Une compilation ne peut pas y remplacer une app existante par une nouvelle, donc seule la première compilation dans un dossier fonctionne. Choisissez dans Enregistrer dans un dossier sur un disque APFS, ou mettez d’abord l’ancienne .app à la corbeille. Puis relancez la compilation.",
+ "fail.volumeFormat.what": "Ce disque ne peut pas remplacer l’ancienne app Mac.",
"fail.zbic.button": "Installer zbic",
"fail.zbic.next": "Installez zbic avec le bouton ci-dessous, puis compilez à nouveau. Ou exécutez python3 -m pip install zbic dans un terminal, avec le Python utilisé par la compilation.",
"fail.zbic.what": "Les modules de ce jeu utilisent la variante zstd de Nintendo (système 22.0.0 et ultérieur), et leur lecture nécessite le paquet Python zbic, qui n’est pas installé.",
@@ -1066,6 +1068,7 @@
"msg.stagingFailed": "Impossible de créer des liens dans le dossier de préparation (fichiers sur des volumes différents ?)",
"msg.stopped": "Arrêté",
"msg.toolsOld": "Compilation non lancée : les outils de compilation sont plus anciens que cette app (il manque %@). Mettez-les d’abord à jour dans Réglages → Outils de compilation",
+ "msg.volumeNotAPFS": "Le disque de sortie n’est pas formaté en APFS (par exemple Mac OS étendu). Cette compilation fonctionne, mais la suivante dans ce dossier s’arrête si vous ne mettez pas d’abord l’ancienne .app à la corbeille. Un dossier sur un disque APFS évite ce problème.",
"msg.workdirHint": "Astuce : le dossier de sortie contient aussi le cache de compilation (<sortie>/<ID>_build). Pour réutiliser une compilation existante, pointez de nouveau vers le même dossier : un nouveau dossier repart de zéro. Lorsque le dossier de sortie se trouve sur un disque externe, la première compilation est nettement plus lente (pire en exFAT ou sur un disque dur).",
"nav.builds": "Compilations",
"nav.library": "Bibliothèque",
diff --git a/frontend/l10n/it.json b/frontend/l10n/it.json
index e4e4fdb5..60751239 100644
--- a/frontend/l10n/it.json
+++ b/frontend/l10n/it.json
@@ -568,6 +568,8 @@
"fail.translator.button": "Reinstalla .NET",
"fail.translator.next": "Reinstalla .NET con il pulsante qui sotto, poi compila di nuovo. Se DOTNET_ROOT indica un altro runtime, rimuovilo.",
"fail.translator.what": "Il traduttore di shader non si avvia. Richiede il runtime .NET 10 per l’architettura di questo Mac.",
+ "fail.volumeFormat.next": "Il disco non è formattato in APFS (per esempio Mac OS Extended). Una build non può sovrascrivere lì un’app esistente con una nuova, quindi solo la prima build in una cartella funziona. Scegli in Salva in una cartella su un disco APFS, oppure sposta prima la vecchia .app nel Cestino. Poi compila di nuovo.",
+ "fail.volumeFormat.what": "Questo disco non può sostituire la vecchia app Mac.",
"fail.zbic.button": "Installa zbic",
"fail.zbic.next": "Installa zbic con il pulsante qui sotto, poi compila di nuovo. Oppure esegui python3 -m pip install zbic in un terminale, con il Python usato dalla build.",
"fail.zbic.what": "I moduli di questo gioco usano la variante zstd di Nintendo (sistema 22.0.0 e successivi) e per leggerli serve il pacchetto Python zbic, che non è installato.",
@@ -1066,6 +1068,7 @@
"msg.stagingFailed": "Impossibile creare i collegamenti nella cartella di preparazione (file su volumi diversi?)",
"msg.stopped": "Interrotta",
"msg.toolsOld": "Build non avviata: gli strumenti di build sono meno recenti di questa app (manca %@). Prima aggiornali in Impostazioni → Strumenti di compilazione",
+ "msg.volumeNotAPFS": "Il disco di destinazione non è formattato in APFS (per esempio Mac OS Extended). Questa build funziona, ma la successiva in questa cartella si ferma se non sposti prima la vecchia .app nel Cestino. Una cartella su un disco APFS evita il problema.",
"msg.workdirHint": "Suggerimento: la cartella di destinazione è anche quella della cache di build (<output>/<ID>_build). Per riutilizzare una build esistente, indica di nuovo la stessa cartella: una cartella nuova riparte da zero. Se la cartella di destinazione è su un’unità esterna, la prima build è sensibilmente più lenta (peggio con exFAT o un disco rigido).",
"nav.builds": "Build",
"nav.library": "Libreria",
diff --git a/frontend/l10n/sv.json b/frontend/l10n/sv.json
index f598d8bb..17c9b628 100644
--- a/frontend/l10n/sv.json
+++ b/frontend/l10n/sv.json
@@ -410,6 +410,8 @@
"fail.showFolder": "Visa mapp",
"fail.teamTaken.next": "Xcode nekade det för ditt team, även med teamets egen variant av ID:t. Öppna Xcode > Inställningar > Konton och logga in med det Apple-ID som installerade spelet tidigare, eller välj ett annat signeringsteam här. Bygg sedan igen.",
"fail.teamTaken.what": "Spelets app-ID är registrerat hos ett annat Apple-team.",
+ "fail.volumeFormat.next": "Disken är inte formaterad som APFS (till exempel Mac OS Extended). Ett bygge kan inte lägga en ny app över en gammal där, så bara det första bygget i en mapp fungerar. Välj en mapp på en APFS-disk under Spara till eller flytta den gamla .app till papperskorgen först. Bygg sedan igen.",
+ "fail.volumeFormat.what": "Den här disken kan inte ersätta den gamla Mac-appen.",
"fail.zbic.button": "Installera zbic",
"fail.zbic.next": "Installera zbic med knappen nedan och bygg sedan igen. Eller kör python3 -m pip install zbic i en terminal, med den Python som bygget använder.",
"fail.zbic.what": "Spelets moduler använder Nintendos zstd-variant (system 22.0.0 och senare) och för att läsa dem behövs Python-paketet zbic, som inte är installerat.",
@@ -906,6 +908,7 @@
"msg.stagingFailed": "Kunde inte skapa en länk i mellanlagringsmappen. Ligger filerna på olika diskar?",
"msg.stopped": "Stoppad",
"msg.toolsOld": "Byggverktygen är äldre än appen och saknar %@. Bygget startade inte. Uppdatera först under Inställningar → Byggverktyg.",
+ "msg.volumeNotAPFS": "Utdatadisken är inte formaterad som APFS (till exempel Mac OS Extended). Det här bygget fungerar, men nästa bygge i den här mappen stannar om du inte flyttar den gamla .app till papperskorgen först. En mapp på en APFS-disk undviker det.",
"msg.workdirHint": "Tips: ”Utdatamapp” är också platsen för byggcachen (utdatamapp/<ID>_build). Välj samma plats som förra bygget för att återanvända befintliga byggresurser, så körs inte uppackning och shaders igen. En ny plats börjar från början. När utdatamappen ligger på en extern disk går den första byggnationen märkbart långsammare (värre på exFAT eller en hårddisk).",
"nav.builds": "Byggen",
"nav.library": "Bibliotek",
diff --git a/frontend/l10n/zh.json b/frontend/l10n/zh.json
index 39be6d73..289123cc 100644
--- a/frontend/l10n/zh.json
+++ b/frontend/l10n/zh.json
@@ -568,6 +568,8 @@
"fail.translator.button": "重新安装 .NET",
"fail.translator.next": "用下面的按钮重新安装 .NET,然后再构建。如果环境变量 DOTNET_ROOT 指向了别的运行时,请取消设置。",
"fail.translator.what": "着色器翻译器无法运行,它需要适合这台 Mac 架构的 .NET 10 运行时。",
+ "fail.volumeFormat.next": "这个磁盘不是 APFS 格式(例如 Mac OS 扩展格式)。构建无法在这里用新应用覆盖旧应用,所以同一个文件夹里只有第一次构建能成功。请在「保存到」里选一个 APFS 磁盘上的文件夹,或者先把旧的 .app 移到废纸篓。然后再构建。",
+ "fail.volumeFormat.what": "这个磁盘无法替换旧的 Mac 应用。",
"fail.zbic.button": "安装 zbic",
"fail.zbic.next": "点下面的按钮安装 zbic,然后再构建。也可以在终端里运行 python3 -m pip install zbic,用的是构建所用的那个 Python。",
"fail.zbic.what": "这个游戏的模块用了 Nintendo 的 zstd 变体压缩(系统 22.0.0 起),读取它需要 Python 包 zbic,而它没有安装。",
@@ -1066,6 +1068,7 @@
"msg.stagingFailed": "无法在暂存文件夹里建立链接(文件在不同磁盘?)",
"msg.stopped": "已停止",
"msg.toolsOld": "构建工具比本 App 旧(缺少 %@),构建未开始——先在设置 → 构建工具中更新",
+ "msg.volumeNotAPFS": "输出磁盘不是 APFS 格式(例如 Mac OS 扩展格式)。这次构建可以完成,但下一次往这个文件夹构建会中止,除非先把旧的 .app 移到废纸篓。选 APFS 磁盘上的文件夹可以避免这个问题。",
"msg.workdirHint": "提示:「输出目录」同时是构建缓存的位置(输出目录/<ID>_build)。已有构建资源时,把它选回上次的同一位置即可复用(解包、shader 不重跑),换新位置会从头再来。当「输出目录」为外置硬盘时,首次构建会明显变慢(exFAT 或机械硬盘更明显)。",
"nav.builds": "构建",
"nav.library": "游戏库",