Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

A game whose Steam Mac version is 32-bit says so on its page. Since 65cfa81 such a build gets no Mac button, and the page said nothing about why (udance4ever's suggestion on highball#316). One line where the Mac card would be: Steam also has a Mac version, it is 32-bit, macOS has not run those since Catalina, so Highball installs the Windows version. A database row about the Mac version decides instead, as for the card. French line included. Tested in MacSteamBuildTests; not looked at on screen, since the M1's installed Highball was open and the M4's screen was busy.

Gauthier Piarrette3d70b73ae422
diff --git a/Sources/HighballApp/GameDetailView.swift b/Sources/HighballApp/GameDetailView.swift
index 617c638..0ad94a4 100644
--- a/Sources/HighballApp/GameDetailView.swift
+++ b/Sources/HighballApp/GameDetailView.swift
@@ -99,7 +99,11 @@ struct GameDetailView: View {
.font(.system(size: 30, weight: .bold, design: .rounded))
.fixedSize(horizontal: false, vertical: true)
.textSelection(.enabled)
- if let macBuild { macBlock(macBuild) }
+ if let macBuild {
+ macBlock(macBuild)
+ } else if let outdated = GamePageCopy.outdatedMacBuild(appInfo: item.steamAppID.flatMap { state.macAppInfoByAppID[$0] }, entry: entry) {
+ Label(L(outdated), systemImage: "apple.logo").font(.callout).foregroundStyle(.secondary)
+ }
verdictBlock
HStack(alignment: .top, spacing: 10) {
playRow.frame(maxWidth: .infinity, alignment: .leading)
diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swift
index eeb6137..bd8cef5 100644
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@ -522,6 +522,7 @@ enum L10n {
"Steam is running in %@": "Steam est en cours dans %@",
"Stop and repair": "Arrêter et réparer",
"Stopped.": "Arrêté.",
+ "Steam also has a Mac version of this game, but it is 32-bit and macOS has not run those since Catalina, so Highball installs the Windows version.": "Steam propose aussi une version Mac de ce jeu, mais elle est en 32 bits et macOS ne les fait plus tourner depuis Catalina, alors Highball installe la version Windows.",
"Stopped. Nothing already downloaded is lost.": "Arrêté. Rien de déjà téléchargé n'est perdu.",
"Another Epic download is still running, and legendary installs one game at a time. If Highball shows none, one started before Highball last quit is still going, so quit legendary in Activity Monitor and press Install again.": "Un autre téléchargement Epic est toujours en cours, et legendary installe un jeu à la fois. Si Highball n'en montre aucun, un téléchargement lancé avant la dernière fermeture de Highball continue, alors quittez legendary dans le Moniteur d'activité et appuyez de nouveau sur Installer.",
"Stopped. Repairing the bottle so nothing half-installed stays behind.": "Arrêté. Réparation de l'environnement pour ne rien laisser à moitié installé.",
diff --git a/Sources/HighballKit/GamePageCopy.swift b/Sources/HighballKit/GamePageCopy.swift
index e37475c..e22e52c 100644
--- a/Sources/HighballKit/GamePageCopy.swift
+++ b/Sources/HighballKit/GamePageCopy.swift
@@ -79,6 +79,15 @@ public enum GamePageCopy {
source: source)
}
+ /// Steam lists a Mac version that is 32-bit, which no macOS since Catalina runs, so the page
+ /// offers the Windows version alone. Said once, so the missing Mac button is not a mystery
+ /// (udance4ever's suggestion on highball#316). A database row about the Mac version decides
+ /// instead, as it does for the Mac card.
+ public static func outdatedMacBuild(appInfo: MacAppInfoBuild?, entry: GameDBEntry?) -> String? {
+ guard appInfo == .only32Bit, entry?.nativeMac == nil else { return nil }
+ return "Steam also has a Mac version of this game, but it is 32-bit and macOS has not run those since Catalina, so Highball installs the Windows version."
+ }
+
/// One line of "when you press Play, Highball will".
public struct WillDo: Equatable {
public var text: String
diff --git a/Tests/HighballKitTests/MacSteamBuildTests.swift b/Tests/HighballKitTests/MacSteamBuildTests.swift
index 68090e9..8a82b2a 100644
--- a/Tests/HighballKitTests/MacSteamBuildTests.swift
+++ b/Tests/HighballKitTests/MacSteamBuildTests.swift
@@ -213,4 +213,14 @@ final class MacSteamBuildTests: XCTestCase {
XCTAssertEqual(installed.requirements, "Native Apple Silicon build, macOS 12 and M1 or later.")
XCTAssertEqual(installed.source, "Steam for Mac lists it as installed.")
}
+
+ func testA32BitMacVersionIsExplainedOnce() throws {
+ // highball#316: the Mac button vanished for 32-bit Mac builds with no word about why.
+ XCTAssertNotNil(GamePageCopy.outdatedMacBuild(appInfo: .only32Bit, entry: nil))
+ XCTAssertNil(GamePageCopy.outdatedMacBuild(appInfo: .runnable, entry: nil))
+ XCTAssertNil(GamePageCopy.outdatedMacBuild(appInfo: .absent, entry: nil))
+ XCTAssertNil(GamePageCopy.outdatedMacBuild(appInfo: nil, entry: nil))
+ let curated = try entry(#"{"id":"x","title":"X","steam_appid":1,"status":"community","nativeMac":{"available":true,"where":"Steam"}}"#)
+ XCTAssertNil(GamePageCopy.outdatedMacBuild(appInfo: .only32Bit, entry: curated), "a row about the Mac version decides")
+ }
}