Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.
Swift apple-silicond3dmetaldxmtdxvkfexgame-porting-toolkitgamingmac-gamingmacosmetalmoltenvksteamswiftuivkd3d-protonwhisky-alternativewindows-gameswinewine-wrapper
feat: Dependencies section — one-click Windows runtimes per bottle
Gauthier Piarrette99548d2efc8b
diff --git a/Scripts/make-app.sh b/Scripts/make-app.shindex e3cb417..cbfc9c8 100755--- a/Scripts/make-app.sh+++ b/Scripts/make-app.sh@@ -27,7 +27,7 @@ if [ ! -d "$RECIPES" ]; thenRECIPES=".build/highball-db/recipes"[ -d "$RECIPES" ] || git clone --depth 1 https://github.com/gauthierpiarrette/highball-db.git .build/highball-dbfi-for f in "$RECIPES"/launchers/*.json "$RECIPES"/games/*.json; do cp "$f" "$APP/Contents/Resources/"; done+for f in "$RECIPES"/launchers/*.json "$RECIPES"/games/*.json "$RECIPES"/tweaks/*.json; do cp "$f" "$APP/Contents/Resources/"; doneDBDIR="$(dirname "$RECIPES")/db/games"if [ -d "$DBDIR" ]; then mkdir -p "$APP/Contents/Resources/db-games"; cp "$DBDIR"/*.json "$APP/Contents/Resources/db-games/"; fidiff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swiftindex fd78cdd..b50a8b2 100644--- a/Sources/HighballApp/AppState.swift+++ b/Sources/HighballApp/AppState.swift@@ -335,6 +335,21 @@ final class AppState {?? repoRoot?.appending(path: "spike/engine-manifest.json")}+ /// All bundled dependency ("tweak") recipes, for the Dependencies section in bottle settings.+ static func tweakRecipes() -> [HighballKit.Recipe] {+ var dirs: [URL] = []+ if let res = Bundle.main.resourceURL { dirs.append(res) }+ if let root = repoRoot { dirs.append(root.deletingLastPathComponent().appending(path: "highball-db/recipes/tweaks")) }+ var out: [String: HighballKit.Recipe] = [:]+ for dir in dirs {+ for url in (try? FileManager.default.contentsOfDirectory(at: dir, includingPropertiesForKeys: nil)) ?? []+ where url.pathExtension == "json" {+ if let r = try? HighballKit.Recipe.load(from: url), r.kind == .tweak, out[r.id] == nil { out[r.id] = r }+ }+ }+ return out.values.sorted { $0.title < $1.title }+ }+static func recipe(_ id: String) -> HighballKit.Recipe? {if let url = Bundle.main.url(forResource: id, withExtension: "json"),let r = try? HighballKit.Recipe.load(from: url) { return r }diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swiftindex f01556e..208a4c8 100644--- a/Sources/HighballApp/BottleView.swift+++ b/Sources/HighballApp/BottleView.swift@@ -482,6 +482,26 @@ struct BottleSettingsSheet: View {Text(L("Games run with the bottle’s sync (msync is fastest). Opening the Steam window restarts Windows processes with sync off — its interface needs it.")).font(.caption).foregroundStyle(.secondary)}+ let tweaks = AppState.tweakRecipes()+ if !tweaks.isEmpty {+ Section(L("Dependencies")) {+ ForEach(tweaks, id: \.id) { r in+ HStack {+ Text(r.title)+ Spacer()+ if (state.bottles.first { $0.name == bottle.name } ?? bottle).settings.recipes.contains(r.id) {+ Label(L("Installed"), systemImage: "checkmark.circle.fill").foregroundStyle(.green).labelStyle(.titleAndIcon)+ } else {+ Button(L("Install")) {+ state.applyRecipe(r.id, to: state.bottles.first { $0.name == bottle.name } ?? bottle)+ }.controlSize(.small)+ }+ }+ }+ Text(L("Windows runtimes some games need. Install them when a game complains about a missing runtime or refuses to start."))+ .font(.caption).foregroundStyle(.secondary)+ }+ }Section {Button(L("Delete bottle…"), role: .destructive) { confirmDelete = true }}diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swiftindex c4ff87d..16325f3 100644--- a/Sources/HighballApp/L10n.swift+++ b/Sources/HighballApp/L10n.swift@@ -42,6 +42,10 @@ enum L10n {"Report this problem…": "Signaler ce problème…","Duplicate bottle": "Dupliquer la bouteille","Repair bottle (re-run first boot)": "Réparer la bouteille (relancer le premier démarrage)",+ "Dependencies": "Dépendances",+ "Installed": "Installée",+ "Windows runtimes some games need. Install them when a game complains about a missing runtime or refuses to start.":+ "Des composants Windows dont certains jeux ont besoin. Installez-les quand un jeu se plaint d'un composant manquant ou refuse de démarrer.","Steam crashed at a known spot — relaunching to resume the update":"Steam a planté à un endroit connu — relance pour reprendre la mise à jour",