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
Install: the re-sign is always offered, not only in the last two days
LNPANDY53aa99c7c27c
diff --git a/frontend/Sources/NSPortBuilder/LauncherView.swift b/frontend/Sources/NSPortBuilder/LauncherView.swiftindex e4bee4cb..09fb72ab 100644--- a/frontend/Sources/NSPortBuilder/LauncherView.swift+++ b/frontend/Sources/NSPortBuilder/LauncherView.swift@@ -384,25 +384,26 @@ struct ContentView: View {.anchorPreference(key: ManageAnchorKey.self, value: .bounds) { $0 }.padTarget("hero.manage", scope: "main", radius: 12) { manageOpenFor = game.id }}- // A free Apple ID's provisioning profile lasts 7 days: say when this app's runs out, and renew it here.- if game.onDevice, let expiry = signatureExpiry[game.id] {+ // A free Apple ID's provisioning profile lasts 7 days. Say when this app's runs out, and offer the+ // re-sign at any time: renewing early (before a trip, say) is as valid as renewing just in time.+ if game.onDevice {HStack(spacing: 10) {Image(systemName: "checkmark.seal").font(.system(size: 12)).foregroundStyle(LauncherPalette.cream.opacity(0.7))- Text(AppSignature.describe(expiry, m.t)).font(.manrope(12.5))- .foregroundStyle(AppSignature.isUrgent(expiry) ? LauncherPalette.building : .secondary)- if AppSignature.isUrgent(expiry) {- Button { resign(game) } label: {- Text(m.t("dev.resign")).font(.manrope(12, .semibold))- .foregroundStyle(LauncherPalette.cream)- .padding(.horizontal, 10).padding(.vertical, 4)- .overlay(Capsule().strokeBorder(LauncherPalette.cream.opacity(0.35)))- .contentShape(Capsule())- }- .buttonStyle(.plain).disabled(m.running)- .help(m.t("dev.resignHelp"))- .padTarget("hero.resign", scope: "main", radius: 12) { if !m.running { resign(game) } }+ Text(signatureExpiry[game.id].map { AppSignature.describe($0, m.t) } ?? m.t("dev.expiryUnknown"))+ .font(.manrope(12.5))+ .foregroundStyle(signatureExpiry[game.id].map { AppSignature.isUrgent($0) } == true+ ? LauncherPalette.building : .secondary)+ Button { resign(game) } label: {+ Text(m.t("dev.resign")).font(.manrope(12, .semibold))+ .foregroundStyle(LauncherPalette.cream)+ .padding(.horizontal, 10).padding(.vertical, 4)+ .overlay(Capsule().strokeBorder(LauncherPalette.cream.opacity(0.35)))+ .contentShape(Capsule())}+ .buttonStyle(.plain).disabled(m.running)+ .help(m.t("dev.resignHelp"))+ .padTarget("hero.resign", scope: "main", radius: 12) { if !m.running { resign(game) } }}}if let resignNote {diff --git a/frontend/Sources/NSPortBuilder/Localization.swift b/frontend/Sources/NSPortBuilder/Localization.swiftindex 35ad73e6..5ae299aa 100644--- a/frontend/Sources/NSPortBuilder/Localization.swift+++ b/frontend/Sources/NSPortBuilder/Localization.swift@@ -222,6 +222,7 @@ enum L10n {"dev.expiryShort": ("签名剩 %d 天", "%d days of signature left"),"dev.expiryTodayShort": ("签名今天到期", "signature expires today"),"dev.expiryExpiredShort": ("签名已过期", "signature expired"),+ "dev.expiryUnknown": ("签名到期:未知(仍可续签)", "Signature expiry: unknown (re-signing is still offered)"),"dev.resign": ("续签", "Re-sign"),"dev.resignHelp": ("用缓存工程重新签名并安装:不重新编译游戏,App 数据(存档、游戏数据)保留", "Sign and install again from the cached project: no rebuild, and the app's data (saves, game data) is kept"),"dev.resignStage": ("续签并安装到 %@", "Re-signing for %@"),