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 'v0lumehi/process-runner' into v0lumehi/app-update-store

v0lumehi18b11f174a65
diff --cc frontend/Tests/NX2AppleTests/ReleaseNotesTests.swift
index 410c36d9,7a4142f2..e683f6d8
--- a/frontend/Tests/NX2AppleTests/ReleaseNotesTests.swift
+++ b/frontend/Tests/NX2AppleTests/ReleaseNotesTests.swift
@@@ -204,10 -204,10 +204,10 @@@ final class ReleaseNotesTests: XCTestCa
("update-sheet-notes-middle-en", Lang.en, middle, "v0.7.0"), ("update-sheet-notes-middle-zh", Lang.zh, middle, "v0.7.0")] {
let m = BuildModel()
m.lang = lang
- m.appUpdate = AppUpdate.Release(tag: tag, url: "", digest: nil, notes: notes)
+ m.appUpdates.update = AppUpdate.Release(tag: tag, url: "", digest: nil, notes: notes)
let width: CGFloat = 560, height: CGFloat = 640
- let host = NSHostingView(rootView: UpdateSheet(m: m).environmentObject(m.localizer).frame(width: width, height: height))
+ let host = NSHostingView(rootView: UpdateSheet(updates: m.appUpdates).environmentObject(m.localizer).frame(width: width, height: height))
- let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: width, height: height), styleMask: [.titled], backing: .buffered, defer: false)
+ let window = OffscreenWindow(size: NSSize(width: width, height: height))
window.contentView = host
window.appearance = NSAppearance(named: .darkAqua)
window.orderFront(nil)