Skip to content

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

Merge branch 'fix-engine-sync-store' into fix-dependency-store

v0lumehie3411096dd5b
diff --cc frontend/Tests/NX2AppleTests/BuildNotificationsTests.swift
index 7e88deff,123e10a5..847c3508
--- a/frontend/Tests/NX2AppleTests/BuildNotificationsTests.swift
+++ b/frontend/Tests/NX2AppleTests/BuildNotificationsTests.swift
@@@ -59,11 -59,11 +59,11 @@@ final class BuildNotificationsTests: XC
defer { try? FileManager.default.removeItem(at: temporary) }
let model = BuildModel()
model.lang = CaptureLanguage.current(.en)
- model.depsChecked = true
- model.deps = [Dep(id: "test", name: "Xcode", hint: "", present: true, installCmd: [])]
+ MainActor.assumeIsolated { model.dependencies.checked = true }
+ MainActor.assumeIsolated { model.dependencies.deps = [Dep(id: "test", name: "Xcode", hint: "", present: true, installCmd: [])] }
let library = GameLibrary(file: temporary.appendingPathComponent("preview.json"))
let host = NSHostingView(rootView: ContentView(model: model, library: library, initialPage: .settings, performStartupChecks: false))
- let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 1440, height: 1500), styleMask: [.titled, .closable, .resizable], backing: .buffered, defer: false)
+ let window = OffscreenWindow(size: NSSize(width: 1440, height: 1500), styleMask: [.titled, .closable, .resizable])
window.contentView = host
window.orderFront(nil)
RunLoop.main.run(until: Date().addingTimeInterval(0.5))