Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

feat(app): credit NotProton and CodeWeavers in setup and About

raymondchinsa6ee5b856616
diff --git a/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings b/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings
index 9616d92..c3b0d38 100644
--- a/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings
+++ b/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings
@@ -2495,6 +2495,22 @@
}
}
},
+ "Built on [NotProton](https://github.com/NotProtonNot/NotProton) and CodeWeavers' Wine.\nSupport Wine: [buy CrossOver](https://www.codeweavers.com/crossover)." : {
+ "localizations" : {
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Basato su [NotProton](https://github.com/NotProtonNot/NotProton) e sul Wine di CodeWeavers.\nSostieni Wine: [acquista CrossOver](https://www.codeweavers.com/crossover)."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "基于 [NotProton](https://github.com/NotProtonNot/NotProton) 和 CodeWeavers 的 Wine。\n支持 Wine:[购买 CrossOver](https://www.codeweavers.com/crossover)。"
+ }
+ }
+ }
+ },
"Built-in optical flow" : {
"localizations" : {
"it" : {
@@ -7618,6 +7634,22 @@
}
}
},
+ "Runs on CodeWeavers' Wine and Apple's Game Porting Toolkit." : {
+ "localizations" : {
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Funziona con il Wine di CodeWeavers e il Game Porting Toolkit di Apple."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "基于 CodeWeavers 的 Wine 和 Apple 的 Game Porting Toolkit 运行。"
+ }
+ }
+ }
+ },
"Select a copy of CrossOver." : {
"localizations" : {
"it" : {
@@ -8901,6 +8933,22 @@
}
}
},
+ "Support Wine: buy CrossOver" : {
+ "localizations" : {
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Sostieni Wine: acquista CrossOver"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "支持 Wine:购买 CrossOver"
+ }
+ }
+ }
+ },
"Takes what did not move, like a HUD or a menu, straight from the real frame instead of warping it." : {
"localizations" : {
"it" : {
@@ -8981,6 +9029,22 @@
}
}
},
+ "Thanks to everyone who contributed on GitHub" : {
+ "localizations" : {
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Grazie a tutti quelli che hanno contribuito su GitHub"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "感谢所有在 GitHub 上做出贡献的人"
+ }
+ }
+ }
+ },
"Thanks! Your report is on its way." : {
"localizations" : {
"it" : {
diff --git a/app/Sources/BridgeplayApp/Support/ProductVersion.swift b/app/Sources/BridgeplayApp/Support/ProductVersion.swift
index 7964eb9..07c4f42 100644
--- a/app/Sources/BridgeplayApp/Support/ProductVersion.swift
+++ b/app/Sources/BridgeplayApp/Support/ProductVersion.swift
@@ -49,23 +49,32 @@ enum ProductVersion {
@MainActor
enum AboutPanel {
- // The standard panel already reads "Version 2.0.0 (32)"; the credits line adds the
- // upstream release.
+ // The standard panel already reads "Version 2.0.0 (32)"; the credits name what
+ // Bridgeplay is built on and point people to CrossOver, which funds Wine.
static func show() {
- var options: [NSApplication.AboutPanelOptionKey: Any] = [:]
- if let upstream = ProductVersion.upstream {
- let centered = NSMutableParagraphStyle()
- centered.alignment = .center
- options[.credits] = NSAttributedString(
- string: "Based on NotProton \(upstream)",
- attributes: [
- .font: NSFont.systemFont(ofSize: NSFont.smallSystemFontSize),
- .foregroundColor: NSColor.secondaryLabelColor,
- .paragraphStyle: centered,
- ]
- )
+ let centered = NSMutableParagraphStyle()
+ centered.alignment = .center
+ let base: [NSAttributedString.Key: Any] = [
+ .font: NSFont.systemFont(ofSize: NSFont.smallSystemFontSize),
+ .foregroundColor: NSColor.secondaryLabelColor,
+ .paragraphStyle: centered,
+ ]
+ let lines: [(text: String, link: String?)] = [
+ (ProductVersion.upstream.map { "Based on NotProton \($0)" } ?? "Based on NotProton",
+ "https://github.com/NotProtonNot/NotProton"),
+ (String(localized: "Runs on CodeWeavers' Wine and Apple's Game Porting Toolkit."), nil),
+ (String(localized: "Support Wine: buy CrossOver"), "https://www.codeweavers.com/crossover"),
+ (String(localized: "Thanks to everyone who contributed on GitHub"),
+ "https://github.com/raymondchins/Bridgeplay/graphs/contributors"),
+ ]
+ let credits = NSMutableAttributedString()
+ for line in lines {
+ if credits.length > 0 { credits.append(NSAttributedString(string: "\n", attributes: base)) }
+ var attributes = base
+ if let link = line.link { attributes[.link] = URL(string: link) }
+ credits.append(NSAttributedString(string: line.text, attributes: attributes))
}
- NSApp.orderFrontStandardAboutPanel(options: options)
+ NSApp.orderFrontStandardAboutPanel(options: [.credits: credits])
NSApp.activate()
}
}
diff --git a/app/Sources/BridgeplayApp/Support/SetupPreview.swift b/app/Sources/BridgeplayApp/Support/SetupPreview.swift
index 5b2d3f0..f7ac0bd 100644
--- a/app/Sources/BridgeplayApp/Support/SetupPreview.swift
+++ b/app/Sources/BridgeplayApp/Support/SetupPreview.swift
@@ -50,6 +50,11 @@ struct SetupPreviewApp: App {
.defaultSize(width: 900, height: 760)
.defaultLaunchBehavior(Self.mainFirst ? .presented : .suppressed)
.restorationBehavior(.disabled)
+ .commands {
+ CommandGroup(replacing: .appInfo) {
+ Button("About Bridgeplay") { AboutPanel.show() }
+ }
+ }
}
}
diff --git a/app/Sources/BridgeplayApp/Views/SetupAssistantView.swift b/app/Sources/BridgeplayApp/Views/SetupAssistantView.swift
index 5a3d081..d042566 100644
--- a/app/Sources/BridgeplayApp/Views/SetupAssistantView.swift
+++ b/app/Sources/BridgeplayApp/Views/SetupAssistantView.swift
@@ -418,6 +418,12 @@ struct SetupAssistantView: View {
Button("Back") { go(forward: false) { model.back() } }
.buttonStyle(.pillPlain)
.disabled(model.isWorking)
+ } else {
+ // Shown once, where it can't be scrolled past.
+ Text("Built on [NotProton](https://github.com/NotProtonNot/NotProton) and CodeWeavers' Wine.\nSupport Wine: [buy CrossOver](https://www.codeweavers.com/crossover).")
+ .font(BP.sans(12))
+ .foregroundStyle(BP.fg3)
+ .fixedSize(horizontal: false, vertical: true)
}
Spacer()
if model.isWorking { ProgressView().controlSize(.small).padding(.trailing, 4) }