Skip to content

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

Merge remote-tracking branch 'origin/main' into wt-core-pure-logic

v0lumehi2f0ad4064996
diff --cc frontend/Sources/NX2Apple/ContentView.swift
index 4f73d481,6c161fc8..9a231efb
--- a/frontend/Sources/NX2Apple/ContentView.swift
+++ b/frontend/Sources/NX2Apple/ContentView.swift
@@@ -70,17 -121,9 +70,14 @@@ final class BuildModel: ObservableObjec
private var chainNoteShown = false // the shader-chain notice shows once per build
@Published var running = false
@Published var staleFrameworks: [StaleFrameworks.Entry] = [] // the prompt of StaleFrameworksPrompt.swift (#449)
- /// The shell folder the cache row shows: the frameworks' mirror, shell.json and the banner cache live here.
- var shellCachePath: String { shellRoot }
- /// The shell folder of the install and of the cache row: the saved one, else next to the output folder (or the game's folder).
- var shellRoot: String { ShellLibrary.resolveRoot(parent: outDir.isEmpty ? (basePath as NSString).deletingLastPathComponent : outDir) }
+ // The shell folder (shellCachePath, shellRoot): ShellRoot.swift.
@Published var stopping = false
- @Published var logTail = ""
+ /// The build log. Not published: only `BuildLogView` observes it (#387), so a log line redraws the log and nothing else.
+ let log = BuildLog()
+ var logTail: String {
+ get { BuildLog.onMain { log.text } }
+ set { BuildLog.onMain { log.set(newValue) } }
+ }
@Published var done = false
@Published var doneNote = ""
/// What the NSP script stopped on, when it is one of the known early stops (BuildFailure.swift). nil for a build that