Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.
HTML apple-siliconbattle-netcrossover-alternatived3dmetaldiablo-ii-resurrecteddxmtea-appepic-gamesgame-porting-toolkitgogmac-gamingmacosmacos-gamingrockstar-gamessteamubisoft-connectwhisky-alternativewindows-gameswinewine-wrapper
Soju 1.14.13: Battle.net games on another drive (#123)
Mikek4a3964478c81
diff --git a/README.ko.md b/README.ko.mdindex b7bc6fcdcfa..a79afd0e56c 100644--- a/README.ko.md+++ b/README.ko.md@@ -8,7 +8,7 @@ Soju는 M1 이후 맥에 **Battle.net·Steam·Epic Games·GOG GALAXY·EA 앱·Ro-**[Soju 1.14.12 맥 앱 받기](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip)**, 또는 터미널에서 설치:+**[Soju 1.14.13 맥 앱 받기](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip)**, 또는 터미널에서 설치:```bashbrew install BCD1210/soju/soju@@ -82,7 +82,7 @@ soju install # 이후: soju battlenet / soju d2r / soju steam / soju epic /설치기는 **다운로드 전에 원하는 런처부터 선택**합니다. Steam만 선택하면 CX 엔진과 애플 GPTK를 받지 않습니다. Steam 그래픽 구성요소는 SHA-256으로 검증한 뒤 Soju 전용 Wine 11.0 환경에 자동으로 설치합니다. Battle.net·Epic·GOG는 공통 CX 엔진과 사용자가 별도로 받은 애플 GPTK를 사용합니다. 각 런처의 보틀·로그인·게임은 독립적으로 유지합니다.-[Soju 맥 앱 다운로드](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.+[Soju 맥 앱 다운로드](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.## 일상 명령@@ -95,6 +95,7 @@ soju fps on # 게임 화면 구석에 프레임(FPS)·프레임 시간 표- **게임에서 FPS 보기:** Platforms의 체크박스나 `soju fps on`. 그다음 실행한 게임에 애플 Metal HUD(프레임, 프레임 시간, GPU)가 뜹니다. 호환성 보고할 때 숫자를 적기 좋습니다.- **게임별 알려진 설정:** 기본값인 DXMT보다 DXVK에서 더 잘 도는 것으로 알려진 스팀 게임(스카이림 SE, 다크소울 3 등, [resources/steam-profiles.json](resources/steam-profiles.json))은 스팀을 켤 때 한 번 DXVK로 바꿉니다. 직접 바꾼 설정이 우선이고, `soju steam-games renderer reset <game.exe>`로 되돌리면 다시 적용하지 않습니다.+- **Battle.net 게임을 외장 드라이브에:** 라이브러리에서 설치된 게임을 열고 **Move to Another Drive…** 를 누르거나 `soju storage move battlenet:fenris "/Volumes/T7"`. 게임을 복사하고 원본과 비교한 다음 맥의 공간을 비웁니다. **Move Back to This Mac** 으로 되돌립니다. 새 게임을 처음부터 외장 드라이브에 설치하려면 `soju storage place battlenet "Diablo IV" "/Volumes/T7"` 을 먼저 실행하고 Battle.net에서는 기본 위치 그대로 설치합니다. 다른 Wine 앱이나 백업에 이미 있는 게임 폴더는 복사 없이 그대로 씁니다: **Accounts → Use Existing Battle.net Game…** (또는 `soju storage import battlenet <폴더>`) 후 Battle.net에서 Install 또는 Locate. APFS, Mac OS 확장, exFAT 드라이브를 지원합니다. 세이브와 런처는 맥에 남고, 드라이브를 뽑은 게임은 라이브러리에 남아 연결하라고 알려 줍니다.## 앱에 더 있는 것diff --git a/README.md b/README.mdindex ba0be593f7a..7cab08ba979 100644--- a/README.md+++ b/README.md@@ -10,7 +10,7 @@ Soju installs the official Windows launchers for **Battle.net, Steam, Epic Games-**[Download Soju 1.14.12 for Mac](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip)**, or install from the terminal:+**[Download Soju 1.14.13 for Mac](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip)**, or install from the terminal:```bashbrew install BCD1210/soju/soju@@ -84,7 +84,7 @@ soju install # then: soju battlenet / soju d2r / soju steam / soju epic / soThe installer asks which launchers you want **before downloading anything**. Steam-only installs skip the CX engine and Apple GPTK. Steam rendering components are downloaded with SHA-256 verification and installed in a Soju-owned Wine 11.0 runtime. Battle.net, Epic and GOG use the shared CX engine and your separately downloaded Apple GPTK. Each official client keeps its own bottle and shortcut in `~/Applications`.-[Download Soju for Mac](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip): the native desktop preview includes installed and owned games, store search, favorites, game launching and platform management. See [desktop setup and requirements](docs/DESKTOP.md).+[Download Soju for Mac](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip): the native desktop preview includes installed and owned games, store search, favorites, game launching and platform management. See [desktop setup and requirements](docs/DESKTOP.md).## Everyday commands@@ -100,6 +100,7 @@ soju fps on # frame rate and frame time in the corner of games (Apple's Met- **Updates install themselves:** when a new release is out, the app's sidebar card has **Update and Restart**. It downloads the release, accepts it only if it is signed with Didim Labs' Developer ID, notarized by Apple and carries the expected version, then swaps the app and reopens it.- **Show FPS in games:** a checkbox under Platforms, or `soju fps on`. Games started after that show Apple's Metal HUD: frame rate, frame time, GPU and Rosetta. Handy for compatibility reports.- **Known settings per game:** Steam games known to run better on DXVK than on the default DXMT (Skyrim Special Edition, Dark Souls III and others in [resources/steam-profiles.json](resources/steam-profiles.json)) are switched to DXVK once, when Steam starts. Your own choice wins: `soju steam-games renderer reset <game.exe>` undoes it and it is not applied again.+- **Battle.net games on an external drive:** open an installed game in the library and press **Move to Another Drive…** (or `soju storage move battlenet:fenris "/Volumes/T7"`). Soju copies the game there, compares the copy with the original, then frees the space on the Mac; **Move Back to This Mac** reverses it. To install a new game straight onto the drive, run `soju storage place battlenet "Diablo IV" "/Volumes/T7"` first and keep the default location in Battle.net. A game you already have from another Wine app or a backup is used where it is: **Accounts → Use Existing Battle.net Game…** (or `soju storage import battlenet <folder>`), then press Install or Locate in Battle.net. APFS, Mac OS Extended and exFAT drives work. Saves and the launcher stay on the Mac, and a game whose drive is unplugged stays in the library with a note to connect it.- **Rosetta 2** is offered by the installer when it is missing (it asks for your administrator password; Apple's license applies).## More in the appdiff --git a/README.zh.md b/README.zh.mdindex b4a6fef7640..304abbf3528 100644--- a/README.zh.md+++ b/README.zh.md@@ -8,7 +8,7 @@ Soju 在 M1 及更新的 Mac 上安装 **Battle.net、Steam、Epic Games、GOG G-**[下载 Soju 1.14.12(Mac)](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip)**,或在终端安装:+**[下载 Soju 1.14.13(Mac)](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip)**,或在终端安装:```bashbrew install BCD1210/soju/soju@@ -82,7 +82,7 @@ soju install # 然后:soju battlenet / soju d2r / soju steam / soju epic /安装器会**先询问要安装哪些启动器,再下载对应组件**。仅选择 Steam 时,不会下载 CX 引擎或 Apple GPTK。Steam 图形组件经过 SHA-256 校验后,自动安装到 Soju 专用的 Wine 11.0 环境中。战网、Epic 和 GOG 使用共享 CX 引擎及用户单独下载的 Apple GPTK。各客户端的 bottle、账户和游戏分别保留。-[下载 Soju Mac 应用](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。+[下载 Soju Mac 应用](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。## 日常维护@@ -92,6 +92,8 @@ soju update # 更新脚本和预编译引擎(保留 GPTK 和所有 bottlesoju uninstall # 卸载:逐项确认后删除 app、bottle 和引擎```+- **把 Battle.net 游戏放到外置硬盘:** 在游戏库里打开已安装的游戏,点 **Move to Another Drive…**(或 `soju storage move battlenet:fenris "/Volumes/T7"`)。Soju 复制游戏、与原文件比对,然后释放 Mac 上的空间;**Move Back to This Mac** 可以移回。想把新游戏直接装到外置硬盘,先运行 `soju storage place battlenet "Diablo IV" "/Volumes/T7"`,在 Battle.net 里保持默认位置安装。已有的游戏文件夹(其他 Wine 应用或备份)可以原地使用:**Accounts → Use Existing Battle.net Game…**(或 `soju storage import battlenet <文件夹>`),然后在 Battle.net 里点 Install 或 Locate。支持 APFS、Mac OS 扩展和 exFAT。+## 应用里的其他功能- **导入已购游戏:** 通过 Steam 官方登录导入已购游戏(无需 API 密钥),也可导入 GOG GALAXY 本地缓存的游戏库。已安装和未安装的游戏显示在同一个游戏库里。暂不支持 Epic 和 Battle.net 的账户游戏库导入。[设置说明](docs/ACCOUNTS.md)diff --git a/VERSION b/VERSIONindex 4ed70fac17d..517e041041c 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-1.14.12+1.14.13diff --git a/app/Accounts.swift b/app/Accounts.swiftindex e075ed97184..407e6fecffa 100644--- a/app/Accounts.swift+++ b/app/Accounts.swift@@ -391,6 +391,9 @@ struct AccountsView: View {Button("Open Epic Games") { model.launch(.epic) }.disabled(model.busy)Button("Open Battle.net") { model.launch(.battlenet) }.disabled(model.busy)}+ Text("Already have a Battle.net game on this Mac or an external drive, from another app or a backup? Soju can use that folder instead of downloading again.")+ .font(.callout).foregroundStyle(.secondary)+ Button("Use Existing Battle.net Game…") { model.importBattlenetGame() }.disabled(model.busy)}.padding(12).frame(maxWidth: .infinity, alignment: .leading)}Text("Imports are snapshots stored on this Mac. Sync again after purchases or account changes. Disconnect removes the import (and Soju’s saved Steam web session or Microsoft sign-in), without removing installed games.")diff --git a/app/GameSettings.swift b/app/GameSettings.swiftindex c97dd539fed..21cd75fe574 100644--- a/app/GameSettings.swift+++ b/app/GameSettings.swift@@ -34,11 +34,61 @@ extension SojuModel {}}+/// scripts/game-storage.py status <game id>+struct GameStorage: Decodable {+ let moved: Bool+ let volume: String+ let connected: Bool+}++extension SojuModel {+ func gameStorage(_ id: String) async -> GameStorage? {+ guard let (p, url) = try? task(["game-storage", "status", id], logName: "game-storage-status") else { return nil }+ let status: Int32? = try? await withCheckedThrowingContinuation { done in+ p.terminationHandler = { done.resume(returning: $0.terminationStatus) }+ do { try p.run() } catch { done.resume(throwing: error) }+ }+ guard status == 0, let text = try? String(contentsOf: url, encoding: .utf8),+ let line = text.split(separator: "\n").last else { return nil }+ return try? JSONDecoder().decode(GameStorage.self, from: Data(line.utf8))+ }++ /// Battle.net games: copy the files to a folder on another drive and leave a link.+ func moveGame(_ game: InstalledGame) {+ let panel = NSOpenPanel()+ panel.title = "Choose where to keep " + game.title+ panel.message = "Pick a drive or a folder on it (APFS, Mac OS Extended or exFAT). Soju copies the game there, checks the copy, then frees the space on this Mac."+ panel.prompt = "Move Here"+ panel.canChooseDirectories = true; panel.canChooseFiles = false; panel.canCreateDirectories = true+ panel.directoryURL = URL(fileURLWithPath: "/Volumes")+ guard panel.runModal() == .OK, let url = panel.url else { return }+ run(["game-storage", "move", game.id, url.path], title: "Moving " + game.title + "… this can take a while")+ }++ func moveGameBack(_ game: InstalledGame) {+ run(["game-storage", "back", game.id], title: "Moving " + game.title + " back to this Mac…")+ }++ /// A Battle.net game folder that already exists (another Wine app, a backup, an external drive).+ func importBattlenetGame() {+ let panel = NSOpenPanel()+ panel.title = "Choose a Battle.net game folder"+ panel.message = "Pick the folder that holds the game (for example Diablo IV). Soju uses it where it is, without copying."+ panel.prompt = "Use This Folder"+ panel.canChooseDirectories = true; panel.canChooseFiles = false+ guard panel.runModal() == .OK, let url = panel.url else { return }+ run(["game-storage", "import", "battlenet", url.path], title: "Adding the game folder…")+ }+}+/// The settings of one game, in its detail sheet: what used to be spread over/// Platforms and the command line.struct GameSettingsSection: View {@EnvironmentObject var model: SojuModellet game: InstalledGame+ /// Closes the sheet, so a long move shows its progress in the main window.+ var close: () -> Void = {}+ @State private var storage: GameStorage?@State private var settings: GameSettings?@State private var saving = false@State private var problem: String?@@ -54,6 +104,21 @@ struct GameSettingsSection: View {Toggle("Show FPS while playing (applies to every game)", isOn: $model.fpsHUD).toggleStyle(.checkbox).font(.system(size: 12))}+ if game.platform == .battlenet, let storage {+ HStack(spacing: 10) {+ Label(storage.moved ? "Files are on " + storage.volume : "Files are on this Mac",+ systemImage: storage.moved ? "externaldrive" : "internaldrive").font(.system(size: 12))+ if storage.moved {+ Button("Move Back to This Mac") { close(); model.moveGameBack(game) }+ .disabled(model.busy || !storage.connected)+ } else {+ Button("Move to Another Drive…") { close(); model.moveGame(game) }.disabled(model.busy)+ }+ }+ Text(storage.moved ? "Keep the drive connected to play. Close Battle.net before moving."+ : "Frees space on this Mac. Saves and settings stay here. Close Battle.net before moving.")+ .font(.system(size: 11)).foregroundStyle(.secondary)+ }if let renderer = settings?.renderer {if renderer.available {HStack(spacing: 10) {@@ -83,6 +148,7 @@ struct GameSettingsSection: View {}.frame(maxWidth: .infinity, alignment: .leading).task(id: game.id) {+ if game.platform == .battlenet, game.isInstalled { storage = await model.gameStorage(game.id) }guard game.platform == .steam, game.isInstalled else { return }if case .success(let value) = await model.gameSettings(["show", game.id]) { settings = value }}diff --git a/app/Library.swift b/app/Library.swiftindex 226dd3388e0..ee33bfc5c31 100644--- a/app/Library.swift+++ b/app/Library.swift@@ -547,7 +547,7 @@ struct LibraryView: View {}if game.isInstalled {Divider()- GameSettingsSection(game: game)+ GameSettingsSection(game: game, close: { selected = nil })}HStack {Button("Show files") { NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: game.installPath) }.disabled(!game.isInstalled || game.isOnUnpluggedDrive)diff --git a/docs/DESKTOP.md b/docs/DESKTOP.mdindex 2bfdd6c3451..b5495a696d7 100644--- a/docs/DESKTOP.md+++ b/docs/DESKTOP.md@@ -1,6 +1,6 @@# Soju for Mac-[Download v1.14.12](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip)+[Download v1.14.13](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip)1. Unzip and move **Soju.app** into Applications or ~/Applications.2. Open **Platforms** to install or open Battle.net, Steam, Epic Games or GOG GALAXY.@@ -48,7 +48,7 @@ This release detects games installed in Soju's four Windows environments:- Steam: app manifests and mapped library folders, including external drives.- Epic: local installation manifests, excluding DLC-only records.-- Battle.net: Agent's product database and installed game build records.+- Battle.net: Agent's product database and installed game build records. A game moved to another drive with **Move to Another Drive…** stays listed while the drive is unplugged.- GOG: Galaxy's installation database, with a fallback for standard game folders.Steam account imports use **Accounts → Sign in to Steam**; Windows Steam does notdiff --git a/docs/index.html b/docs/index.htmlindex d2d159d372d..cecd68fa330 100644--- a/docs/index.html+++ b/docs/index.html@@ -55,8 +55,8 @@"@id": "https://didimlabs.com/#soju","name": "Soju","url": "https://didimlabs.com/",- "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip",- "softwareVersion": "1.14.12",+ "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip",+ "softwareVersion": "1.14.13","description": "Free, open-source Mac app that installs the official Windows launchers for Steam, Battle.net, Epic Games, GOG GALAXY, EA app, Rockstar Games Launcher, Ubisoft Connect and Xbox PC on Apple Silicon and shows every installed game in one library.","applicationCategory": "GameApplication","operatingSystem": "macOS 14 or later, Apple Silicon (M1 or newer)",@@ -90,7 +90,7 @@"@type": "HowToStep","position": 1,"name": "Download the app",- "text": "Soju-1.14.12-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."+ "text": "Soju-1.14.13-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."},{"@type": "HowToStep",@@ -178,11 +178,11 @@<a href="ko/" lang="ko" hreflang="ko">한국어</a></div></nav><main id="main">-<link rel="preload" as="image" href="assets/soju-app-icon.png?v=20261111a"/><link rel="preload" as="image" href="assets/soju-library.png?v=20261111a" fetchPriority="high"/><header class="hero hero-home"><div class="hero-copy"><p class="eyebrow">Free and open source · Apple Silicon</p><h1 class="headline">Your Windows games, <strong>on your Mac.</strong></h1><p class="lead">A free Mac app for playing Windows games on Apple Silicon. It installs the real Steam, Battle.net, Epic, GOG GALAXY, EA app, Rockstar, Ubisoft Connect and Xbox PC launchers, keeps each in its own Wine setup, and lists every installed game in one library.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip">Download Soju 1.14.12</a><a class="btn secondary" href="#works">See what runs</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">Discord</a></p><p class="cmd"><code>brew install BCD1210/soju/soju</code></p><p class="meta">macOS 14+, M1 or newer · open source (GPL-3.0)</p><ul class="stores" aria-label="Launchers Soju installs"><li>Steam</li><li>Battle.net</li><li>Epic Games</li><li>GOG GALAXY</li><li>EA app</li><li>Rockstar</li><li>Ubisoft Connect</li><li>Xbox PC</li></ul></div><img src="assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="assets/soju-library.png?v=20261111a" alt="Soju 1.10 library with Diablo II: Resurrected, Don't Sell the Cat, Guilt Free, Hogwarts Legacy and other installed games" width="1140" height="780" class="shot" fetchPriority="high"/></div></header><section id="what" aria-labelledby="what-title"><h2 id="what-title">What it does</h2><div class="features"><div class="feature"><h3>Real launchers</h3><p>Battle.net, Epic and GOG share a Wine engine built from <a href="https://www.codeweavers.com/crossover/source">CodeWeavers' sources</a> with Apple's D3DMetal. EA, Rockstar and Ubisoft run on a copy of it with DXMT. Steam gets its own Wine 11 setup with DXMT for D3D11 games.</p></div><div class="feature"><h3>One library</h3><p>Finds installed games across every launcher and imports the games you own on Steam and GOG.</p></div><div class="feature"><h3>Store search</h3><p>Searches Steam, GOG and Microsoft Store listings with prices for your region.</p></div><div class="feature"><h3>Xbox PC</h3><p>Experimental: imports owned and Game Pass games and downloads them through the <a href="https://github.com/xodus-gaming/xodus">Xodus</a> backend.</p></div></div><p>Logins, purchases and game updates stay with each store. Soju doesn't bundle games or store clients, and it downloads Apple's Game Porting Toolkit files during setup.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">Games we've run</h2><p class="intro">Tested on an M4 Pro Mac with macOS 26.5. Other games may or may not work: <a href="mac/">check a game</a> or <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">report what you try</a>.</p><ul class="proof"><li class="proof-card"><span class="store">Battle.net</span><b>Diablo II: Resurrected</b><span class="pill plays">Plays</span><p class="result">Plays online. Needs macOS 26.4+. <a href="guides/diablo-2-resurrected-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>StarCraft: Remastered</b><span class="pill plays">Plays</span><p class="result">A single-player match starts. Multiplayer not tried. <a href="guides/starcraft-remastered-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>Diablo IV</b><span class="pill plays">Plays</span><p class="result">Free trial: character created and in the first area. Sound and frame rate not checked. <a href="guides/diablo-4-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>Overwatch 2</b><span class="pill partial">Menu</span><p class="result">Signs in and reaches the online main menu. A match not tried yet. <a href="guides/overwatch-2-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Epic</span><b>Hogwarts Legacy</b><span class="pill plays">Plays</span><p class="result">Installs and plays with D3DMetal.</p></li><li class="proof-card"><span class="store">Steam</span><b>Guilt Free (Unity, D3D11)</b><span class="pill plays">Plays</span><p class="result">Plays with the DXMT setup. <a href="guides/steam-windows-client-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Xbox PC</span><b>Retro Classics</b><span class="pill partial">Menu only</span><p class="result">Reaches the main menu.</p></li><li class="proof-card"><span class="store">GOG</span><b>GOG GALAXY</b><span class="pill partial">Launcher only</span><p class="result">Login and library work; few games tried yet.</p></li></ul><p>Games with kernel-level anti-cheat won't run. The Steam edition of Diablo II: Resurrected hasn't been checked.</p><figure class="video"><video controls="" playsInline="" preload="none" poster="assets/soju-gameplay-demo-poster.jpg?v=20261111a" aria-label="30-second clip of Hogwarts Legacy and Guilt Free running through Soju" width="1280" height="720"><source src="assets/soju-gameplay-demo.mp4?v=20261111a" type="video/mp4"/><track kind="captions" src="assets/soju-gameplay-demo.vtt" srcLang="en" label="English" default=""/></video><figcaption>Hogwarts Legacy through Epic, Guilt Free through Steam. 30 seconds.</figcaption></figure></section><section id="store" aria-labelledby="store-title"><h2 id="store-title">Games from Didim Labs</h2><a class="game" href="games/dont-sell-the-cat.html"><img src="store/dont-sell-the-cat-wide.jpg" alt="Don't Sell the Cat: a black cat with yellow eyes on a pawnshop counter" width="920" height="430" loading="lazy"/><span class="game-body"><b>Don't Sell the Cat</b><span class="game-meta">$2.99 · Mac and Windows · about 2 hours</span><span>Seven nights at a 1958 pawnshop counter. Check items with a loupe, UV lamp, scale and the shop cat, and don't open the back shutter.</span></span></a></section><section id="install" aria-labelledby="install-title"><h2 id="install-title">Install</h2><ol class="steps row"><li><b>Download the app</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip">Soju-1.14.12-macos-arm64.zip</a>. Unzip it and move Soju to Applications. <a href="https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md">Signing notes</a>.</p></li><li><b>Pick launchers</b><p>Open Soju, go to Platforms and choose the launchers you use. Battle.net, Epic and GOG also use <a href="https://developer.apple.com/games/game-porting-toolkit/">Apple's Game Porting Toolkit</a>; Soju downloads Apple's files and checks Apple's signature before installing them.</p></li><li><b>Sign in and play</b><p>Sign in inside each launcher as usual. Installed games show up in the library.</p></li></ol><p>Prefer the terminal? Run the installer, or use Homebrew. You'll need Rosetta 2, the Xcode Command Line Tools and Homebrew.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash+<link rel="preload" as="image" href="assets/soju-app-icon.png?v=20261111a"/><link rel="preload" as="image" href="assets/soju-library.png?v=20261111a" fetchPriority="high"/><header class="hero hero-home"><div class="hero-copy"><p class="eyebrow">Free and open source · Apple Silicon</p><h1 class="headline">Your Windows games, <strong>on your Mac.</strong></h1><p class="lead">A free Mac app for playing Windows games on Apple Silicon. It installs the real Steam, Battle.net, Epic, GOG GALAXY, EA app, Rockstar, Ubisoft Connect and Xbox PC launchers, keeps each in its own Wine setup, and lists every installed game in one library.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip">Download Soju 1.14.13</a><a class="btn secondary" href="#works">See what runs</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">Discord</a></p><p class="cmd"><code>brew install BCD1210/soju/soju</code></p><p class="meta">macOS 14+, M1 or newer · open source (GPL-3.0)</p><ul class="stores" aria-label="Launchers Soju installs"><li>Steam</li><li>Battle.net</li><li>Epic Games</li><li>GOG GALAXY</li><li>EA app</li><li>Rockstar</li><li>Ubisoft Connect</li><li>Xbox PC</li></ul></div><img src="assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="assets/soju-library.png?v=20261111a" alt="Soju 1.10 library with Diablo II: Resurrected, Don't Sell the Cat, Guilt Free, Hogwarts Legacy and other installed games" width="1140" height="780" class="shot" fetchPriority="high"/></div></header><section id="what" aria-labelledby="what-title"><h2 id="what-title">What it does</h2><div class="features"><div class="feature"><h3>Real launchers</h3><p>Battle.net, Epic and GOG share a Wine engine built from <a href="https://www.codeweavers.com/crossover/source">CodeWeavers' sources</a> with Apple's D3DMetal. EA, Rockstar and Ubisoft run on a copy of it with DXMT. Steam gets its own Wine 11 setup with DXMT for D3D11 games.</p></div><div class="feature"><h3>One library</h3><p>Finds installed games across every launcher and imports the games you own on Steam and GOG.</p></div><div class="feature"><h3>Store search</h3><p>Searches Steam, GOG and Microsoft Store listings with prices for your region.</p></div><div class="feature"><h3>Xbox PC</h3><p>Experimental: imports owned and Game Pass games and downloads them through the <a href="https://github.com/xodus-gaming/xodus">Xodus</a> backend.</p></div></div><p>Logins, purchases and game updates stay with each store. Soju doesn't bundle games or store clients, and it downloads Apple's Game Porting Toolkit files during setup.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">Games we've run</h2><p class="intro">Tested on an M4 Pro Mac with macOS 26.5. Other games may or may not work: <a href="mac/">check a game</a> or <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">report what you try</a>.</p><ul class="proof"><li class="proof-card"><span class="store">Battle.net</span><b>Diablo II: Resurrected</b><span class="pill plays">Plays</span><p class="result">Plays online. Needs macOS 26.4+. <a href="guides/diablo-2-resurrected-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>StarCraft: Remastered</b><span class="pill plays">Plays</span><p class="result">A single-player match starts. Multiplayer not tried. <a href="guides/starcraft-remastered-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>Diablo IV</b><span class="pill plays">Plays</span><p class="result">Free trial: character created and in the first area. Sound and frame rate not checked. <a href="guides/diablo-4-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>Overwatch 2</b><span class="pill partial">Menu</span><p class="result">Signs in and reaches the online main menu. A match not tried yet. <a href="guides/overwatch-2-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Epic</span><b>Hogwarts Legacy</b><span class="pill plays">Plays</span><p class="result">Installs and plays with D3DMetal.</p></li><li class="proof-card"><span class="store">Steam</span><b>Guilt Free (Unity, D3D11)</b><span class="pill plays">Plays</span><p class="result">Plays with the DXMT setup. <a href="guides/steam-windows-client-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Xbox PC</span><b>Retro Classics</b><span class="pill partial">Menu only</span><p class="result">Reaches the main menu.</p></li><li class="proof-card"><span class="store">GOG</span><b>GOG GALAXY</b><span class="pill partial">Launcher only</span><p class="result">Login and library work; few games tried yet.</p></li></ul><p>Games with kernel-level anti-cheat won't run. The Steam edition of Diablo II: Resurrected hasn't been checked.</p><figure class="video"><video controls="" playsInline="" preload="none" poster="assets/soju-gameplay-demo-poster.jpg?v=20261111a" aria-label="30-second clip of Hogwarts Legacy and Guilt Free running through Soju" width="1280" height="720"><source src="assets/soju-gameplay-demo.mp4?v=20261111a" type="video/mp4"/><track kind="captions" src="assets/soju-gameplay-demo.vtt" srcLang="en" label="English" default=""/></video><figcaption>Hogwarts Legacy through Epic, Guilt Free through Steam. 30 seconds.</figcaption></figure></section><section id="store" aria-labelledby="store-title"><h2 id="store-title">Games from Didim Labs</h2><a class="game" href="games/dont-sell-the-cat.html"><img src="store/dont-sell-the-cat-wide.jpg" alt="Don't Sell the Cat: a black cat with yellow eyes on a pawnshop counter" width="920" height="430" loading="lazy"/><span class="game-body"><b>Don't Sell the Cat</b><span class="game-meta">$2.99 · Mac and Windows · about 2 hours</span><span>Seven nights at a 1958 pawnshop counter. Check items with a loupe, UV lamp, scale and the shop cat, and don't open the back shutter.</span></span></a></section><section id="install" aria-labelledby="install-title"><h2 id="install-title">Install</h2><ol class="steps row"><li><b>Download the app</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip">Soju-1.14.13-macos-arm64.zip</a>. Unzip it and move Soju to Applications. <a href="https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md">Signing notes</a>.</p></li><li><b>Pick launchers</b><p>Open Soju, go to Platforms and choose the launchers you use. Battle.net, Epic and GOG also use <a href="https://developer.apple.com/games/game-porting-toolkit/">Apple's Game Porting Toolkit</a>; Soju downloads Apple's files and checks Apple's signature before installing them.</p></li><li><b>Sign in and play</b><p>Sign in inside each launcher as usual. Installed games show up in the library.</p></li></ol><p>Prefer the terminal? Run the installer, or use Homebrew. You'll need Rosetta 2, the Xcode Command Line Tools and Homebrew.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash# orbrew install BCD1210/soju/soju-soju install</code></pre><p><code>soju doctor</code> checks the setup; <code>soju update</code> updates it.</p></section><section id="guides" aria-labelledby="guides-title"><h2 id="guides-title">Guides</h2><ul class="links"><li><a href="mac/">Does this game run on a Mac? Game-by-game list</a></li><li><a href="ko/mac/" lang="ko">맥에서 이 게임 되나요? (한국어)</a></li><li><a href="guides/diablo-2-resurrected-apple-silicon.html">Diablo II: Resurrected on Apple Silicon</a></li><li><a href="guides/starcraft-remastered-apple-silicon.html">StarCraft: Remastered on Apple Silicon</a></li><li><a href="guides/diablo-4-apple-silicon.html">Diablo IV on Apple Silicon</a></li><li><a href="guides/overwatch-2-apple-silicon.html">Overwatch 2 on Apple Silicon</a></li><li><a href="guides/steam-windows-client-apple-silicon.html">The Windows Steam client on Apple Silicon</a></li><li><a href="guides/soju-vs-highball.html">Soju vs Highball</a></li><li><a href="guides/soju-vs-parallels.html">Soju vs Parallels Desktop</a></li><li><a href="guides/whisky-alternative.html">Whisky is gone: what to use instead</a></li><li><a href="guides/soju-vs-whisky-crossover-heroic.html">Soju vs Whisky, CrossOver, Heroic and Sikarugir</a></li><li><a href="guides/ko/diablo-2-mac.html" lang="ko">맥에서 디아블로 II: 레저렉션 돌리기</a></li><li><a href="guides/ko/starcraft-mac.html" lang="ko">맥에서 스타크래프트: 리마스터 하기</a></li><li><a href="windows.html">Installing Don't Sell the Cat on Windows</a></li></ul></section><section id="faq" aria-labelledby="faq-title"><h2 id="faq-title">FAQ</h2><div class="faq"><details open=""><summary>Can I play Windows games on an M1, M2, M3 or M4 Mac with Soju?</summary><p>Often, yes. Soju runs the Windows launchers through Wine with Apple's D3DMetal or DXMT. Diablo II: Resurrected, Hogwarts Legacy and Guilt Free have been played on an M4 Pro with macOS 26.5. Games with kernel anti-cheat do not run.</p></details><details><summary>Is Soju free?</summary><p>Yes. Soju is free and open source under GPL-3.0-or-later. You buy games from the stores as usual. Didim Labs also sells its own Mac games in Soju's store tab.</p></details><details><summary>Which macOS version do I need?</summary><p>The Soju app needs macOS 14 or later on Apple Silicon. Steam games need macOS 26 or later, and Diablo II: Resurrected needs macOS 26.4 or later.</p></details><details><summary>Is Soju a Whisky or CrossOver alternative?</summary><p>It covers similar ground. Whisky is no longer developed and CrossOver is paid. Soju is free, focuses on the official store launchers, and builds its Wine engine from CodeWeavers' published sources.</p></details><details><summary>Does Soju need my store passwords?</summary><p>No. You sign in inside each official launcher. Library imports stay on your Mac and Soju has no account of its own.</p></details><details><summary>A game won't start. What now?</summary><p>Run <code>soju doctor</code> (or <code>soju doctor d2r</code>), check the guides, then <a href="https://github.com/BCD1210/soju/issues">open an issue</a> with the game, your Mac, macOS version and what you see.</p></details></div></section><section class="cta"><img src="assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" loading="lazy"/><h2>Try Soju on your Mac</h2><p>Free and open source. Download the app, pick the launchers you use, and tell us which games run.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip">Download Soju 1.14.12</a><a class="btn secondary" href="https://github.com/BCD1210/soju">GitHub</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">Discord</a></p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">News</h2><form class="notify" data-sent="Thanks. One email when it's out, nothing else." data-failed="Couldn't save that. Try again later." action="/api/notify" method="post"><label>Didim Labs makes small games for Mac and PC. Get one email when the next one is out<span class="notify-row"><input type="email" required="" maxLength="200" autoComplete="email" placeholder="[email protected]" name="email"/><button class="btn" type="submit">Email me</button></span></label><input type="hidden" name="source" value="home"/><input tabindex="-1" autoComplete="off" class="hp" aria-hidden="true" name="website"/><span class="form-status" role="status" aria-live="polite"></span></form><script>document.querySelectorAll('form.notify').forEach(function(f){if(f.dataset.on)return;f.dataset.on=1;var s=f.querySelector('.form-status'),b=f.querySelector('button');+soju install</code></pre><p><code>soju doctor</code> checks the setup; <code>soju update</code> updates it.</p></section><section id="guides" aria-labelledby="guides-title"><h2 id="guides-title">Guides</h2><ul class="links"><li><a href="mac/">Does this game run on a Mac? Game-by-game list</a></li><li><a href="ko/mac/" lang="ko">맥에서 이 게임 되나요? (한국어)</a></li><li><a href="guides/diablo-2-resurrected-apple-silicon.html">Diablo II: Resurrected on Apple Silicon</a></li><li><a href="guides/starcraft-remastered-apple-silicon.html">StarCraft: Remastered on Apple Silicon</a></li><li><a href="guides/diablo-4-apple-silicon.html">Diablo IV on Apple Silicon</a></li><li><a href="guides/overwatch-2-apple-silicon.html">Overwatch 2 on Apple Silicon</a></li><li><a href="guides/steam-windows-client-apple-silicon.html">The Windows Steam client on Apple Silicon</a></li><li><a href="guides/soju-vs-highball.html">Soju vs Highball</a></li><li><a href="guides/soju-vs-parallels.html">Soju vs Parallels Desktop</a></li><li><a href="guides/whisky-alternative.html">Whisky is gone: what to use instead</a></li><li><a href="guides/soju-vs-whisky-crossover-heroic.html">Soju vs Whisky, CrossOver, Heroic and Sikarugir</a></li><li><a href="guides/ko/diablo-2-mac.html" lang="ko">맥에서 디아블로 II: 레저렉션 돌리기</a></li><li><a href="guides/ko/starcraft-mac.html" lang="ko">맥에서 스타크래프트: 리마스터 하기</a></li><li><a href="windows.html">Installing Don't Sell the Cat on Windows</a></li></ul></section><section id="faq" aria-labelledby="faq-title"><h2 id="faq-title">FAQ</h2><div class="faq"><details open=""><summary>Can I play Windows games on an M1, M2, M3 or M4 Mac with Soju?</summary><p>Often, yes. Soju runs the Windows launchers through Wine with Apple's D3DMetal or DXMT. Diablo II: Resurrected, Hogwarts Legacy and Guilt Free have been played on an M4 Pro with macOS 26.5. Games with kernel anti-cheat do not run.</p></details><details><summary>Is Soju free?</summary><p>Yes. Soju is free and open source under GPL-3.0-or-later. You buy games from the stores as usual. Didim Labs also sells its own Mac games in Soju's store tab.</p></details><details><summary>Which macOS version do I need?</summary><p>The Soju app needs macOS 14 or later on Apple Silicon. Steam games need macOS 26 or later, and Diablo II: Resurrected needs macOS 26.4 or later.</p></details><details><summary>Is Soju a Whisky or CrossOver alternative?</summary><p>It covers similar ground. Whisky is no longer developed and CrossOver is paid. Soju is free, focuses on the official store launchers, and builds its Wine engine from CodeWeavers' published sources.</p></details><details><summary>Does Soju need my store passwords?</summary><p>No. You sign in inside each official launcher. Library imports stay on your Mac and Soju has no account of its own.</p></details><details><summary>A game won't start. What now?</summary><p>Run <code>soju doctor</code> (or <code>soju doctor d2r</code>), check the guides, then <a href="https://github.com/BCD1210/soju/issues">open an issue</a> with the game, your Mac, macOS version and what you see.</p></details></div></section><section class="cta"><img src="assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" loading="lazy"/><h2>Try Soju on your Mac</h2><p>Free and open source. Download the app, pick the launchers you use, and tell us which games run.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip">Download Soju 1.14.13</a><a class="btn secondary" href="https://github.com/BCD1210/soju">GitHub</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">Discord</a></p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">News</h2><form class="notify" data-sent="Thanks. One email when it's out, nothing else." data-failed="Couldn't save that. Try again later." action="/api/notify" method="post"><label>Didim Labs makes small games for Mac and PC. Get one email when the next one is out<span class="notify-row"><input type="email" required="" maxLength="200" autoComplete="email" placeholder="[email protected]" name="email"/><button class="btn" type="submit">Email me</button></span></label><input type="hidden" name="source" value="home"/><input tabindex="-1" autoComplete="off" class="hp" aria-hidden="true" name="website"/><span class="form-status" role="status" aria-live="polite"></span></form><script>document.querySelectorAll('form.notify').forEach(function(f){if(f.dataset.on)return;f.dataset.on=1;var s=f.querySelector('.form-status'),b=f.querySelector('button');f.addEventListener('submit',function(e){e.preventDefault();b.disabled=true;fetch(f.action,{method:'POST',body:new FormData(f)}).then(function(r){return r.json().then(function(j){return {ok:r.ok,j:j};});}).then(function(x){b.disabled=false;if(x.ok){f.reset();s.textContent=f.dataset.sent;}else{s.textContent=(x.j&&x.j.error)||f.dataset.failed;}}).catch(function(){b.disabled=false;s.textContent=f.dataset.failed;});});});</script></section></main>diff --git a/docs/ko/index.html b/docs/ko/index.htmlindex 565296e360f..63f8a359c41 100644--- a/docs/ko/index.html+++ b/docs/ko/index.html@@ -36,7 +36,7 @@"@type": "HowToStep","position": 1,"name": "앱 받기",- "text": "Soju-1.14.12-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."+ "text": "Soju-1.14.13-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."},{"@type": "HowToStep",@@ -115,11 +115,11 @@<a href="../" lang="en" hreflang="en">English</a></div></nav><main id="main">-<link rel="preload" as="image" href="../assets/soju-app-icon.png?v=20261111a"/><link rel="preload" as="image" href="../assets/soju-library.png?v=20261111a" fetchPriority="high"/><header class="hero hero-home"><div class="hero-copy"><p class="eyebrow">무료 · 오픈소스 · 애플 실리콘 맥</p><h1 class="headline">윈도우 게임을 <strong>맥에서.</strong></h1><p class="lead">애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, EA 앱, 락스타, 유비소프트 커넥트, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip">소주 1.14.12 다운로드</a><a class="btn secondary" href="#works">실행해 본 게임</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">디스코드</a></p><p class="cmd"><code>brew install BCD1210/soju/soju</code></p><p class="meta">macOS 14 이상, M1 이상 · 오픈소스(GPL-3.0)</p><ul class="stores" aria-label="소주가 설치하는 런처"><li>스팀</li><li>배틀넷</li><li>에픽게임즈</li><li>GOG GALAXY</li><li>EA app</li><li>Rockstar</li><li>Ubisoft Connect</li><li>Xbox PC</li></ul></div><img src="../assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="../assets/soju-library.png?v=20261111a" alt="디아블로 II: 레저렉션, 고양이는 팔지 마세요, Guilt Free, 호그와트 레거시가 있는 소주 1.10 라이브러리" width="1140" height="780" class="shot" fetchPriority="high"/></div></header><section id="what" aria-labelledby="what-title"><h2 id="what-title">하는 일</h2><div class="features"><div class="feature"><h3>진짜 런처</h3><p>배틀넷·에픽·GOG는 <a href="https://www.codeweavers.com/crossover/source">CodeWeavers 소스</a>로 만든 Wine 엔진과 애플 D3DMetal을 같이 씁니다. 스팀은 D3D11 게임용 DXMT가 들어간 Wine 11 환경을 따로 씁니다.</p></div><div class="feature"><h3>라이브러리 하나</h3><p>모든 런처에 설치된 게임을 찾고, 스팀과 GOG에서 산 게임 목록을 가져옵니다.</p></div><div class="feature"><h3>스토어 검색</h3><p>스팀, GOG, 마이크로소프트 스토어를 지역 가격으로 검색합니다.</p></div><div class="feature"><h3>Xbox PC</h3><p>실험 기능입니다. 보유 게임과 게임 패스 게임을 가져와 Xodus 백엔드로 내려받습니다.</p></div></div><p>로그인, 구매, 게임 업데이트는 각 스토어가 그대로 맡습니다. 소주는 게임, 스토어 프로그램, 애플 게임 포팅 툴킷을 포함하지 않습니다.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">직접 실행해 본 게임</h2><p class="intro">M4 Pro 맥, macOS 26.5에서 확인했습니다. 다른 게임은 해 보기 전에는 모릅니다. <a href="mac/">게임별로 되는지 보기</a> · <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">결과를 알려 주세요</a>.</p><ul class="proof"><li class="proof-card"><span class="store">배틀넷</span><b>디아블로 II: 레저렉션</b><span class="pill plays">플레이 됨</span><p class="result">온라인 플레이 됨. macOS 26.4 이상. <a href="../guides/ko/diablo-2-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">배틀넷</span><b>스타크래프트: 리마스터</b><span class="pill plays">플레이 됨</span><p class="result">컴퓨터 상대 싱글 대전 시작까지 확인. 멀티플레이는 미확인. <a href="../guides/ko/starcraft-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>디아블로 4</b><span class="pill plays">플레이 됨</span><p class="result">무료 체험판으로 캐릭터 생성, 첫 지역 진입까지 확인. 소리와 프레임은 미확인. <a href="../guides/ko/diablo-4-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>오버워치 2</b><span class="pill partial">메뉴까지</span><p class="result">로그인 후 온라인 메인 메뉴까지 확인. 경기는 아직. <a href="../guides/ko/overwatch-2-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">에픽</span><b>호그와트 레거시</b><span class="pill plays">플레이 됨</span><p class="result">D3DMetal로 설치·플레이 됨</p></li><li class="proof-card"><span class="store">스팀</span><b>Guilt Free (Unity, D3D11)</b><span class="pill plays">플레이 됨</span><p class="result">DXMT 설정으로 플레이 됨</p></li><li class="proof-card"><span class="store">Xbox PC</span><b>Retro Classics</b><span class="pill partial">메뉴까지</span><p class="result">메인 화면까지 실행</p></li><li class="proof-card"><span class="store">GOG</span><b>GOG GALAXY</b><span class="pill partial">런처만</span><p class="result">로그인·라이브러리 됨, 게임은 아직 조금만 시험</p></li></ul><p>커널 안티치트를 쓰는 게임은 실행되지 않습니다.</p></section><section id="store" aria-labelledby="store-title"><h2 id="store-title">Didim Labs 게임</h2><a class="game" href="../games/dont-sell-the-cat.html#ko"><img src="../store/dont-sell-the-cat-wide.jpg" alt="고양이는 팔지 마세요: 전당포 카운터 위의 노란 눈 검은 고양이" width="920" height="430" loading="lazy"/><span class="game-body"><b>고양이는 팔지 마세요</b><span class="game-meta">$2.99 · 맥·윈도우 · 약 2시간</span><span>1958년 전당포 야간 카운터에서 보내는 일곱 밤. 확대경, UV 램프, 저울, 가게 고양이로 물건을 확인하고, 뒷문 셔터는 열지 마세요.</span></span></a></section><section id="install" aria-labelledby="install-title"><h2 id="install-title">설치</h2><ol class="steps row"><li><b>앱 받기</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip">Soju-1.14.12-macos-arm64.zip</a>을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다.</p></li><li><b>런처 고르기</b><p>소주를 열고 Platforms에서 쓰는 런처를 고릅니다. 배틀넷·에픽·GOG는 <a href="https://developer.apple.com/games/game-porting-toolkit/">애플 게임 포팅 툴킷</a>을 쓰는데, 소주가 애플 파일을 받아 애플 서명을 확인한 뒤 설치합니다.</p></li><li><b>로그인하고 플레이</b><p>각 런처에서 평소처럼 로그인하면 설치된 게임이 라이브러리에 나타납니다.</p></li></ol><p>터미널이 편하면 설치 스크립트나 Homebrew를 쓰세요. Rosetta 2, Xcode Command Line Tools, Homebrew가 필요합니다.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash+<link rel="preload" as="image" href="../assets/soju-app-icon.png?v=20261111a"/><link rel="preload" as="image" href="../assets/soju-library.png?v=20261111a" fetchPriority="high"/><header class="hero hero-home"><div class="hero-copy"><p class="eyebrow">무료 · 오픈소스 · 애플 실리콘 맥</p><h1 class="headline">윈도우 게임을 <strong>맥에서.</strong></h1><p class="lead">애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, EA 앱, 락스타, 유비소프트 커넥트, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip">소주 1.14.13 다운로드</a><a class="btn secondary" href="#works">실행해 본 게임</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">디스코드</a></p><p class="cmd"><code>brew install BCD1210/soju/soju</code></p><p class="meta">macOS 14 이상, M1 이상 · 오픈소스(GPL-3.0)</p><ul class="stores" aria-label="소주가 설치하는 런처"><li>스팀</li><li>배틀넷</li><li>에픽게임즈</li><li>GOG GALAXY</li><li>EA app</li><li>Rockstar</li><li>Ubisoft Connect</li><li>Xbox PC</li></ul></div><img src="../assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="../assets/soju-library.png?v=20261111a" alt="디아블로 II: 레저렉션, 고양이는 팔지 마세요, Guilt Free, 호그와트 레거시가 있는 소주 1.10 라이브러리" width="1140" height="780" class="shot" fetchPriority="high"/></div></header><section id="what" aria-labelledby="what-title"><h2 id="what-title">하는 일</h2><div class="features"><div class="feature"><h3>진짜 런처</h3><p>배틀넷·에픽·GOG는 <a href="https://www.codeweavers.com/crossover/source">CodeWeavers 소스</a>로 만든 Wine 엔진과 애플 D3DMetal을 같이 씁니다. 스팀은 D3D11 게임용 DXMT가 들어간 Wine 11 환경을 따로 씁니다.</p></div><div class="feature"><h3>라이브러리 하나</h3><p>모든 런처에 설치된 게임을 찾고, 스팀과 GOG에서 산 게임 목록을 가져옵니다.</p></div><div class="feature"><h3>스토어 검색</h3><p>스팀, GOG, 마이크로소프트 스토어를 지역 가격으로 검색합니다.</p></div><div class="feature"><h3>Xbox PC</h3><p>실험 기능입니다. 보유 게임과 게임 패스 게임을 가져와 Xodus 백엔드로 내려받습니다.</p></div></div><p>로그인, 구매, 게임 업데이트는 각 스토어가 그대로 맡습니다. 소주는 게임, 스토어 프로그램, 애플 게임 포팅 툴킷을 포함하지 않습니다.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">직접 실행해 본 게임</h2><p class="intro">M4 Pro 맥, macOS 26.5에서 확인했습니다. 다른 게임은 해 보기 전에는 모릅니다. <a href="mac/">게임별로 되는지 보기</a> · <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">결과를 알려 주세요</a>.</p><ul class="proof"><li class="proof-card"><span class="store">배틀넷</span><b>디아블로 II: 레저렉션</b><span class="pill plays">플레이 됨</span><p class="result">온라인 플레이 됨. macOS 26.4 이상. <a href="../guides/ko/diablo-2-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">배틀넷</span><b>스타크래프트: 리마스터</b><span class="pill plays">플레이 됨</span><p class="result">컴퓨터 상대 싱글 대전 시작까지 확인. 멀티플레이는 미확인. <a href="../guides/ko/starcraft-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>디아블로 4</b><span class="pill plays">플레이 됨</span><p class="result">무료 체험판으로 캐릭터 생성, 첫 지역 진입까지 확인. 소리와 프레임은 미확인. <a href="../guides/ko/diablo-4-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>오버워치 2</b><span class="pill partial">메뉴까지</span><p class="result">로그인 후 온라인 메인 메뉴까지 확인. 경기는 아직. <a href="../guides/ko/overwatch-2-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">에픽</span><b>호그와트 레거시</b><span class="pill plays">플레이 됨</span><p class="result">D3DMetal로 설치·플레이 됨</p></li><li class="proof-card"><span class="store">스팀</span><b>Guilt Free (Unity, D3D11)</b><span class="pill plays">플레이 됨</span><p class="result">DXMT 설정으로 플레이 됨</p></li><li class="proof-card"><span class="store">Xbox PC</span><b>Retro Classics</b><span class="pill partial">메뉴까지</span><p class="result">메인 화면까지 실행</p></li><li class="proof-card"><span class="store">GOG</span><b>GOG GALAXY</b><span class="pill partial">런처만</span><p class="result">로그인·라이브러리 됨, 게임은 아직 조금만 시험</p></li></ul><p>커널 안티치트를 쓰는 게임은 실행되지 않습니다.</p></section><section id="store" aria-labelledby="store-title"><h2 id="store-title">Didim Labs 게임</h2><a class="game" href="../games/dont-sell-the-cat.html#ko"><img src="../store/dont-sell-the-cat-wide.jpg" alt="고양이는 팔지 마세요: 전당포 카운터 위의 노란 눈 검은 고양이" width="920" height="430" loading="lazy"/><span class="game-body"><b>고양이는 팔지 마세요</b><span class="game-meta">$2.99 · 맥·윈도우 · 약 2시간</span><span>1958년 전당포 야간 카운터에서 보내는 일곱 밤. 확대경, UV 램프, 저울, 가게 고양이로 물건을 확인하고, 뒷문 셔터는 열지 마세요.</span></span></a></section><section id="install" aria-labelledby="install-title"><h2 id="install-title">설치</h2><ol class="steps row"><li><b>앱 받기</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip">Soju-1.14.13-macos-arm64.zip</a>을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다.</p></li><li><b>런처 고르기</b><p>소주를 열고 Platforms에서 쓰는 런처를 고릅니다. 배틀넷·에픽·GOG는 <a href="https://developer.apple.com/games/game-porting-toolkit/">애플 게임 포팅 툴킷</a>을 쓰는데, 소주가 애플 파일을 받아 애플 서명을 확인한 뒤 설치합니다.</p></li><li><b>로그인하고 플레이</b><p>각 런처에서 평소처럼 로그인하면 설치된 게임이 라이브러리에 나타납니다.</p></li></ol><p>터미널이 편하면 설치 스크립트나 Homebrew를 쓰세요. Rosetta 2, Xcode Command Line Tools, Homebrew가 필요합니다.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash# 또는brew install BCD1210/soju/soju-soju install</code></pre><p><code>soju doctor</code>로 설치 상태를 점검하고 <code>soju update</code>로 업데이트합니다.</p></section><section id="faq" aria-labelledby="faq-title"><h2 id="faq-title">자주 묻는 질문</h2><div class="faq"><details open=""><summary>M1·M2·M3·M4 맥에서 윈도우 게임을 할 수 있나요?</summary><p>게임에 따라 됩니다. 소주는 윈도우 런처를 Wine과 애플의 D3DMetal 또는 DXMT로 실행합니다. 디아블로 II: 레저렉션, 호그와트 레거시, Guilt Free를 M4 Pro·macOS 26.5에서 직접 플레이했습니다. 커널 안티치트를 쓰는 게임은 안 됩니다.</p></details><details><summary>소주는 무료인가요?</summary><p>네. GPL-3.0 오픈소스이고 무료입니다. 게임은 각 스토어에서 평소처럼 삽니다. Didim Labs가 만든 맥 게임은 소주 스토어 탭에서 팝니다.</p></details><details><summary>macOS 버전은 무엇이 필요한가요?</summary><p>소주 앱은 애플 실리콘 맥의 macOS 14 이상에서 돌아갑니다. 스팀 게임은 macOS 26 이상, 디아블로 II: 레저렉션은 macOS 26.4 이상이 필요합니다.</p></details><details><summary>위스키(Whisky)나 크로스오버 대신 쓸 수 있나요?</summary><p>비슷한 일을 합니다. 위스키는 개발이 멈췄고 크로스오버는 유료입니다. 소주는 무료이고, 공식 스토어 런처 실행에 맞춰져 있으며, CodeWeavers가 공개한 소스로 Wine 엔진을 만듭니다.</p></details><details><summary>게임이 안 켜지면요?</summary><p><code>soju doctor</code>(디아2는 <code>soju doctor d2r</code>)를 실행해 보고 가이드를 확인한 뒤, 게임·맥 기종·macOS 버전·증상을 적어 <a href="https://github.com/BCD1210/soju/issues">이슈를 남겨 주세요</a>.</p></details></div></section><section class="cta"><img src="../assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" loading="lazy"/><h2>맥에서 바로 해 보세요</h2><p>소주는 무료 오픈소스입니다. 앱을 받아 쓰는 런처를 고르고, 어떤 게임이 되는지 알려 주세요.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip">소주 1.14.12 다운로드</a><a class="btn secondary" href="https://github.com/BCD1210/soju">GitHub</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">디스코드</a></p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">소식</h2><form class="notify" data-sent="감사합니다. 출시 때 한 번만 보냅니다." data-failed="저장하지 못했어요. 잠시 뒤 다시 해 주세요." action="/api/notify" method="post"><label>Didim Labs가 다음 게임을 내면 메일 한 통으로 알려 드릴게요<span class="notify-row"><input type="email" required="" maxLength="200" autoComplete="email" placeholder="[email protected]" name="email"/><button class="btn" type="submit">알림 받기</button></span></label><input type="hidden" name="source" value="home-ko"/><input tabindex="-1" autoComplete="off" class="hp" aria-hidden="true" name="website"/><span class="form-status" role="status" aria-live="polite"></span></form><script>document.querySelectorAll('form.notify').forEach(function(f){if(f.dataset.on)return;f.dataset.on=1;var s=f.querySelector('.form-status'),b=f.querySelector('button');+soju install</code></pre><p><code>soju doctor</code>로 설치 상태를 점검하고 <code>soju update</code>로 업데이트합니다.</p></section><section id="faq" aria-labelledby="faq-title"><h2 id="faq-title">자주 묻는 질문</h2><div class="faq"><details open=""><summary>M1·M2·M3·M4 맥에서 윈도우 게임을 할 수 있나요?</summary><p>게임에 따라 됩니다. 소주는 윈도우 런처를 Wine과 애플의 D3DMetal 또는 DXMT로 실행합니다. 디아블로 II: 레저렉션, 호그와트 레거시, Guilt Free를 M4 Pro·macOS 26.5에서 직접 플레이했습니다. 커널 안티치트를 쓰는 게임은 안 됩니다.</p></details><details><summary>소주는 무료인가요?</summary><p>네. GPL-3.0 오픈소스이고 무료입니다. 게임은 각 스토어에서 평소처럼 삽니다. Didim Labs가 만든 맥 게임은 소주 스토어 탭에서 팝니다.</p></details><details><summary>macOS 버전은 무엇이 필요한가요?</summary><p>소주 앱은 애플 실리콘 맥의 macOS 14 이상에서 돌아갑니다. 스팀 게임은 macOS 26 이상, 디아블로 II: 레저렉션은 macOS 26.4 이상이 필요합니다.</p></details><details><summary>위스키(Whisky)나 크로스오버 대신 쓸 수 있나요?</summary><p>비슷한 일을 합니다. 위스키는 개발이 멈췄고 크로스오버는 유료입니다. 소주는 무료이고, 공식 스토어 런처 실행에 맞춰져 있으며, CodeWeavers가 공개한 소스로 Wine 엔진을 만듭니다.</p></details><details><summary>게임이 안 켜지면요?</summary><p><code>soju doctor</code>(디아2는 <code>soju doctor d2r</code>)를 실행해 보고 가이드를 확인한 뒤, 게임·맥 기종·macOS 버전·증상을 적어 <a href="https://github.com/BCD1210/soju/issues">이슈를 남겨 주세요</a>.</p></details></div></section><section class="cta"><img src="../assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" loading="lazy"/><h2>맥에서 바로 해 보세요</h2><p>소주는 무료 오픈소스입니다. 앱을 받아 쓰는 런처를 고르고, 어떤 게임이 되는지 알려 주세요.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip">소주 1.14.13 다운로드</a><a class="btn secondary" href="https://github.com/BCD1210/soju">GitHub</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">디스코드</a></p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">소식</h2><form class="notify" data-sent="감사합니다. 출시 때 한 번만 보냅니다." data-failed="저장하지 못했어요. 잠시 뒤 다시 해 주세요." action="/api/notify" method="post"><label>Didim Labs가 다음 게임을 내면 메일 한 통으로 알려 드릴게요<span class="notify-row"><input type="email" required="" maxLength="200" autoComplete="email" placeholder="[email protected]" name="email"/><button class="btn" type="submit">알림 받기</button></span></label><input type="hidden" name="source" value="home-ko"/><input tabindex="-1" autoComplete="off" class="hp" aria-hidden="true" name="website"/><span class="form-status" role="status" aria-live="polite"></span></form><script>document.querySelectorAll('form.notify').forEach(function(f){if(f.dataset.on)return;f.dataset.on=1;var s=f.querySelector('.form-status'),b=f.querySelector('button');f.addEventListener('submit',function(e){e.preventDefault();b.disabled=true;fetch(f.action,{method:'POST',body:new FormData(f)}).then(function(r){return r.json().then(function(j){return {ok:r.ok,j:j};});}).then(function(x){b.disabled=false;if(x.ok){f.reset();s.textContent=f.dataset.sent;}else{s.textContent=(x.j&&x.j.error)||f.dataset.failed;}}).catch(function(){b.disabled=false;s.textContent=f.dataset.failed;});});});</script></section></main>diff --git a/docs/llms.txt b/docs/llms.txtindex b3ba1e278b5..51dd0b50938 100644--- a/docs/llms.txt+++ b/docs/llms.txt@@ -9,7 +9,7 @@- [Soju home](https://didimlabs.com/): what Soju does, tested games, install steps, FAQ- [Soju in Korean / 소주 한국어](https://didimlabs.com/ko/)- [Game-by-game list](https://didimlabs.com/mac/): which Windows games were run in Soju, which are not checked yet, which anti-cheat blocks under Wine, and which have a Mac version. Korean: https://didimlabs.com/ko/mac/-- [Source code and releases](https://github.com/BCD1210/soju): GPL-3.0-or-later; current version 1.14.12+- [Source code and releases](https://github.com/BCD1210/soju): GPL-3.0-or-later; current version 1.14.13- Supported launchers: Steam, Battle.net, Epic Games, GOG GALAXY, EA app, Rockstar Games Launcher and Ubisoft Connect (new in 1.11: install and sign-in verified, games not yet), Xbox PC (experimental). Needs an Apple Silicon Mac (M1 or newer) and macOS 14+; Steam games need macOS 26+; Diablo II: Resurrected needs macOS 26.4+.- Tested on M4 Pro / macOS 26.5: Diablo II: Resurrected (Battle.net, online), Hogwarts Legacy (Epic, D3DMetal), StarCraft: Remastered (Battle.net, single-player match), Guilt Free (Steam, DXMT). Kernel anti-cheat games do not run.- Install: `curl -fsSL https://didimlabs.com/install.sh | bash` or `brew install BCD1210/soju/soju`diff --git a/scripts/desktop-action.sh b/scripts/desktop-action.shindex 4d79c1577e0..4356e8d9416 100755--- a/scripts/desktop-action.sh+++ b/scripts/desktop-action.sh@@ -12,6 +12,7 @@ case "$ACTION" ingame) exec python3 "$ROOT/scripts/game-library.py" launch "${1:?Choose a game}" ;;game-doctor) exec python3 "$ROOT/scripts/game-library.py" diagnose "${1:?Choose a game}" ;;game-settings) exec python3 "$ROOT/scripts/game-settings.py" "$@" ;;+ game-storage) exec python3 "$ROOT/scripts/game-storage.py" "$@" ;;doctor) exec bash "$ROOT/scripts/doctor.sh" "$@" ;;steam-gptk) exec bash "$ROOT/scripts/steam-gptk.sh" "${1:?on or off}" ;;report) exec python3 "$ROOT/scripts/report.py" "${1:-}" ;;diff --git a/scripts/game-library.py b/scripts/game-library.pyindex 01d96376077..1c3ba6fc485 100644--- a/scripts/game-library.py+++ b/scripts/game-library.py@@ -161,12 +161,17 @@ class Library:if not isinstance(uid, str) or not re.fullmatch(r'[A-Za-z0-9_.:-]{1,200}', uid):raise ValueError('invalid game identifier')if not isinstance(title, str) or not title.strip(): raise ValueError('missing game name')- if not location.is_dir(): return+ unplugged = location.is_symlink() and not location.exists()+ if not unplugged and not location.is_dir(): returnkey = platform + ':' + uidissue = Noneprefix = self.base / self.folders[platform]if not (prefix / 'drive_c' / CLIENTS[platform]).is_file():issue = 'Install this platform in Platforms, then try again.'+ elif unplugged:+ target = Path(os.readlink(location)).parts+ drive = target[2] if len(target) > 2 and target[1] == 'Volumes' else 'its drive'+ issue = 'This game is on ' + drive + '. Connect the drive, then try again.'elif not ready: issue = 'Finish the installation or update in the official launcher.'elif not arguments: issue = 'Open the official launcher to play this title.'elif platform == 'steam' and uid in STEAM_GPTK_GAMES and self.folders['steam'] == 'steam-bottle':@@ -248,7 +253,9 @@ class Library:settings = protobuf(fields[3][0])location = windows_path(prefix, settings[1][0].decode('utf-8'))# An Agent record can outlive an uninstall or partial download.- if not (location / '.build.info').is_file(): continue+ # A game moved to another drive (scripts/game-storage.py) stays listed while unplugged.+ unplugged = location.is_symlink() and not location.exists()+ if not unplugged and not (location / '.build.info').is_file(): continuetitle, code = BNET.get(uid.casefold(), (location.name, None))arguments = ['--exec=launch ' + code] if code else []art = first_file(sorted(location.glob('*.ico')))diff --git a/scripts/game-storage.py b/scripts/game-storage.pynew file mode 100644index 00000000000..dbe1fc9512b--- /dev/null+++ b/scripts/game-storage.py@@ -0,0 +1,274 @@+#!/usr/bin/env python3+"""Keep a Battle.net game's files on another drive.++ game-storage.py status <game id> JSON: where the game's files are+ game-storage.py move <game id> <folder> copy to <folder>/Soju Games/..., verify, leave a link+ game-storage.py back <game id> bring the files back into the bottle+ game-storage.py place battlenet "<Game folder name>" <folder>+ Before installing (or to reuse files you already have): make+ C:\\Program Files (x86)\\<Game folder name> point at <folder>/Soju Games/battlenet/<name>.+ Then press Install in Battle.net and keep its default location; it finds files that+ are already there and downloads only what is missing.++ game-storage.py import battlenet <game folder>+ Use a game folder you already have (from another Wine app or a backup) where it is,+ without copying. Then press Install or Locate in Battle.net.++The bottle itself (Windows registry, launcher, links) stays on the internal disk: drives+formatted exFAT cannot hold the links and permissions a bottle needs. Only the game's own+folder moves, and Wine reaches it through a link. The drive has to be connected to play.+"""+import json+import os+from pathlib import Path+import re+import shutil+import subprocess+import sys++BASE = Path(os.environ.get("SOJU_BASE", str(Path.home() / ".battlenet-macos"))).expanduser()+ROOT = Path(__file__).resolve().parents[1]+BOTTLES = {"battlenet": "bottle"}+CLIENT_EXE = {"battlenet": "Battle.net.exe"}+FILESYSTEMS = ("apfs", "hfs", "exfat")+MARK = ".soju-game.json"+++def fail(message):+ raise ValueError(message)+++def mount_of(path):+ """(mount point, filesystem type) of the volume holding path."""+ out = subprocess.run(["/bin/df", "-P", str(path)], capture_output=True, text=True, check=True).stdout.splitlines()[-1]+ point = out.split(None, 5)[5]+ kinds = subprocess.run(["/sbin/mount"], capture_output=True, text=True, check=True).stdout+ m = re.search(r" on " + re.escape(point) + r" \((\w+)", kinds)+ return Path(point), (m.group(1).lower() if m else "")+++def volume_label(path):+ point, _ = mount_of(path)+ return "this Mac" if str(point) in ("/", "/System/Volumes/Data") else point.name+++def tree(path):+ """(files, bytes, links) under path, without following links."""+ files = size = links = 0+ for root, dirs, names in os.walk(path):+ # exFAT keeps extended attributes in "._name" side files; they are not game files.+ names = [n for n in names if not n.startswith("._")]+ for name in names + dirs:+ p = os.path.join(root, name)+ if os.path.islink(p):+ links += 1+ elif name in names:+ files += 1+ size += os.path.getsize(p)+ return files, size, links+++def running(platform, folder_name):+ out = subprocess.run(["/bin/ps", "-axo", "command="], capture_output=True, text=True).stdout+ for line in out.splitlines():+ # Wine processes show a Windows command line; skip shells and editors that only mention the name.+ program = line.split(" ", 1)[0]+ if program.startswith("/") and "wine" not in program.lower():+ continue+ if CLIENT_EXE[platform] in line or ("\\" + folder_name + "\\") in line:+ return True+ return False+++def game(game_id):+ platform = game_id.partition(":")[0]+ if platform not in BOTTLES:+ fail("Moving game files is available for Battle.net games.")+ listing = subprocess.run([sys.executable, str(ROOT / "scripts/game-library.py"), "list"], capture_output=True, text=True)+ for g in json.loads(listing.stdout or "{}").get("games", []):+ if g["id"] == game_id and g.get("install_path"):+ return platform, Path(g["install_path"])+ fail("This game is not installed.")+++def games_root(platform):+ return BASE / BOTTLES[platform] / "drive_c/Program Files (x86)"+++def inside_bottle(platform, path):+ root = games_root(platform)+ return path.parent == root or path.parent.resolve() == root.resolve()+++def check_target(folder, need_bytes, has_links):+ folder = Path(folder).expanduser()+ if not folder.is_dir():+ fail("Choose a folder that exists on the drive.")+ point, kind = mount_of(folder)+ if kind not in FILESYSTEMS:+ fail(f"This drive's format ({kind or 'unknown'}) is not supported. Use APFS, Mac OS Extended or exFAT.")+ if kind == "exfat" and has_links:+ fail("This game contains links, which an exFAT drive cannot store. Use an APFS drive.")+ if not os.access(folder, os.W_OK):+ fail("Soju cannot write to that folder.")+ free = shutil.disk_usage(folder).free+ if free < need_bytes * 1.02 + 512 * 1024 * 1024:+ fail(f"Not enough space on {point.name}: {need_bytes / 1e9:.1f} GB needed, {free / 1e9:.1f} GB free.")+ return folder+++def copy_verified(src, dst):+ dst.parent.mkdir(parents=True, exist_ok=True)+ print(f"Copying {src.name} ...", flush=True)+ done = subprocess.run(["/usr/bin/rsync", "-a", str(src) + "/", str(dst) + "/"])+ if done.returncode != 0:+ fail("Copying stopped before it finished. The game was left where it was.")+ print("Checking the copy ...", flush=True)+ a, b = tree(src), tree(dst)+ if a != b:+ fail(f"The copy does not match the original ({a[0]} files, {a[1]} bytes against {b[0]}, {b[1]}). The game was left where it was.")+++def status(game_id):+ platform, path = game(game_id)+ real = path.resolve()+ connected = real.is_dir()+ parts = real.parts+ volume = volume_label(real) if connected else (parts[2] if len(parts) > 2 and parts[1] == "Volumes" else "another drive")+ return {"game": game_id, "path": str(path), "files": str(real), "moved": path.is_symlink(),+ "volume": volume, "connected": connected}+++def move(game_id, folder):+ platform, path = game(game_id)+ if path.is_symlink():+ fail("This game is already on another drive. Move it back first.")+ if not inside_bottle(platform, path):+ fail("This game is not in Soju's Battle.net folder, so Soju leaves it where it is.")+ if running(platform, path.name):+ fail("Close Battle.net and the game first.")+ files, size, links = tree(path)+ folder = check_target(folder, size, links > 0)+ if mount_of(folder)[0] == mount_of(path)[0]:+ fail("That folder is on the same disk as the game.")+ dst = folder / "Soju Games" / platform / path.name+ if dst.exists() and any(dst.iterdir()):+ fail(f"{dst} already has files in it.")+ copy_verified(path, dst)+ (dst.parent / (path.name + MARK)).write_text(json.dumps({"game": game_id, "from": str(path)}) + "\n")+ aside = path.with_name(path.name + ".soju-moving")+ path.rename(aside)+ try:+ path.symlink_to(dst, target_is_directory=True)+ if not (path / ".").exists():+ raise OSError("link does not resolve")+ except OSError:+ if path.is_symlink():+ path.unlink()+ aside.rename(path)+ raise+ shutil.rmtree(aside)+ print(f"Moved to {dst} ({size / 1e9:.1f} GB). Keep the drive connected to play.", flush=True)+ return status(game_id)+++def back(game_id):+ platform, path = game(game_id)+ if not path.is_symlink():+ fail("This game is already on this Mac.")+ real = path.resolve()+ if not real.is_dir():+ fail("Connect the drive that holds this game first.")+ if running(platform, path.name):+ fail("Close Battle.net and the game first.")+ files, size, links = tree(real)+ free = shutil.disk_usage(path.parent).free+ if free < size * 1.02 + 2 * 1024 ** 3:+ fail(f"Not enough space on this Mac: {size / 1e9:.1f} GB needed, {free / 1e9:.1f} GB free.")+ incoming = path.with_name(path.name + ".soju-moving")+ if incoming.exists():+ shutil.rmtree(incoming)+ copy_verified(real, incoming)+ path.unlink()+ incoming.rename(path)+ shutil.rmtree(real)+ (real.parent / (path.name + MARK)).unlink(missing_ok=True)+ print(f"Moved back to this Mac ({size / 1e9:.1f} GB).", flush=True)+ return status(game_id)+++def place(platform, name, folder):+ if platform not in BOTTLES:+ fail("This is available for Battle.net games.")+ if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9 ._'-]{0,80}", name) or name.endswith((".", " ")):+ fail("Give the game's folder name as Battle.net shows it, for example: Diablo IV")+ root = games_root(platform)+ if not root.is_dir():+ fail("Install Battle.net first.")+ link = root / name+ if link.is_symlink() or link.exists():+ fail(f"{name} already has a folder in Battle.net's games folder.")+ if running(platform, name):+ fail("Close Battle.net first.")+ folder = check_target(folder, 0, False)+ dst = folder / "Soju Games" / platform / name+ dst.mkdir(parents=True, exist_ok=True)+ link.symlink_to(dst, target_is_directory=True)+ found = tree(dst)+ print(f"{name} will be kept in {dst}" + (f" ({found[0]} files already there)." if found[0] else "."), flush=True)+ print("In Battle.net, press Install and keep the default location.", flush=True)+ return {"link": str(link), "files": str(dst), "existing_files": found[0], "volume": volume_label(dst)}+++def adopt(platform, source):+ """Use a game folder that already exists (another Wine app, a backup, an external drive)."""+ if platform not in BOTTLES:+ fail("This is available for Battle.net games.")+ source = Path(source).expanduser().resolve()+ if not source.is_dir():+ fail("Choose the game's folder.")+ if not (source / ".build.info").is_file():+ fail("That folder is not a Battle.net game: it has no .build.info file. Choose the folder that holds the game's .exe.")+ root = games_root(platform)+ if not root.is_dir():+ fail("Install Battle.net first.")+ if root.resolve() in source.parents:+ fail("That game is already in Soju's Battle.net folder.")+ _, kind = mount_of(source)+ if kind not in FILESYSTEMS:+ fail(f"This drive's format ({kind or 'unknown'}) is not supported. Use APFS, Mac OS Extended or exFAT.")+ if not os.access(source, os.W_OK):+ fail("Soju cannot write to that folder, and Battle.net needs to update the game there.")+ link = root / source.name+ if link.is_symlink() or link.exists():+ fail(f"{source.name} already has a folder in Battle.net's games folder.")+ if running(platform, source.name):+ fail("Close Battle.net first.")+ link.symlink_to(source, target_is_directory=True)+ print(f"Soju will use {source} without copying it.", flush=True)+ print(f"In Battle.net, open {source.name}, press Install (or Locate the game) and keep the default location.", flush=True)+ return {"link": str(link), "files": str(source), "volume": volume_label(source)}+++def main():+ a = sys.argv[1:]+ if len(a) == 2 and a[0] == "status":+ print(json.dumps(status(a[1])))+ elif len(a) == 3 and a[0] == "move":+ print(json.dumps(move(a[1], a[2])))+ elif len(a) == 2 and a[0] == "back":+ print(json.dumps(back(a[1])))+ elif len(a) == 4 and a[0] == "place":+ print(json.dumps(place(a[1], a[2], a[3])))+ elif len(a) == 3 and a[0] == "import":+ print(json.dumps(adopt(a[1], a[2])))+ else:+ fail("usage: game-storage.py status|back <game id> | move <game id> <folder> | place battlenet <name> <folder> | import battlenet <game folder>")+++if __name__ == "__main__":+ try:+ main()+ except (OSError, ValueError, KeyError, subprocess.SubprocessError, json.JSONDecodeError) as error:+ print("soju: " + str(error), file=sys.stderr)+ sys.exit(1)diff --git a/scripts/soju b/scripts/sojuindex 1f10b09f8aa..8c38988acd0 100755--- a/scripts/soju+++ b/scripts/soju@@ -59,6 +59,9 @@ Usage:soju xbox-sync [US|KR|GB|DE|JP] Import your owned and PC Game Pass gamessoju xbox-download <ProductId> Download an owned game (resumable)soju xbox-location [<folder>|--default] Where new Xbox downloads go (an external APFS or exFAT drive works)+ soju storage move <game id> <folder> Move a Battle.net game's files to another drive (storage back <game id> returns them)+ soju storage import battlenet <folder> Use a Battle.net game folder you already have, without copying+ soju storage place battlenet "<Name>" <folder> Before installing: keep that game on another drivesoju xbox-run <ProductId> Play a downloaded game (experimental)soju xbox-kill Stop a running Xbox download or game@@ -103,6 +106,7 @@ case "${1:-}" inxbox-logout) shift; exec bash "$ROOT/scripts/xbox.sh" logout "$@" ;;xbox-kill) exec bash "$ROOT/scripts/xbox.sh" kill ;;xbox-location) shift; exec bash "$ROOT/scripts/xbox.sh" location "$@" ;;+ storage) shift; exec python3 "$ROOT/scripts/game-storage.py" "$@" ;;xbox-run) shift; exec python3 "$ROOT/scripts/game-library.py" launch "xbox:${1:?Choose a Store product ID}" ;;xbox-download) shift; exec python3 "$ROOT/scripts/game-library.py" install "xbox:${1:?Choose a Store product ID}" ;;xbox-sync)diff --git a/site/content/index.json b/site/content/index.jsonindex 9fe7e3db951..00ecce5071b 100644--- a/site/content/index.json+++ b/site/content/index.json@@ -94,8 +94,8 @@"@id": "https://didimlabs.com/#soju","name": "Soju","url": "https://didimlabs.com/",- "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip",- "softwareVersion": "1.14.12",+ "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip",+ "softwareVersion": "1.14.13","description": "Free, open-source Mac app that installs the official Windows launchers for Steam, Battle.net, Epic Games, GOG GALAXY, EA app, Rockstar Games Launcher, Ubisoft Connect and Xbox PC on Apple Silicon and shows every installed game in one library.","applicationCategory": "GameApplication","operatingSystem": "macOS 14 or later, Apple Silicon (M1 or newer)",@@ -129,7 +129,7 @@"@type": "HowToStep","position": 1,"name": "Download the app",- "text": "Soju-1.14.12-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."+ "text": "Soju-1.14.13-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."},{"@type": "HowToStep",@@ -154,8 +154,8 @@"lead": "A free Mac app for playing Windows games on Apple Silicon. It installs the real Steam, Battle.net, Epic, GOG GALAXY, EA app, Rockstar, Ubisoft Connect and Xbox PC launchers, keeps each in its own Wine setup, and lists every installed game in one library.","actions": [{- "label": "Download Soju 1.14.12",- "href": "https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip",+ "label": "Download Soju 1.14.13",+ "href": "https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip","primary": true},{@@ -363,7 +363,7 @@"items": [{"title": "Download the app",- "text": "[Soju-1.14.12-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip). Unzip it and move Soju to Applications. [Signing notes](https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md)."+ "text": "[Soju-1.14.13-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip). Unzip it and move Soju to Applications. [Signing notes](https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md)."},{"title": "Pick launchers",@@ -525,8 +525,8 @@},"actions": [{- "label": "Download Soju 1.14.12",- "href": "https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip",+ "label": "Download Soju 1.14.13",+ "href": "https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip","primary": true},{diff --git a/site/content/ko.json b/site/content/ko.jsonindex 909ad270538..c0b2d245b37 100644--- a/site/content/ko.json+++ b/site/content/ko.json@@ -68,8 +68,8 @@"lead": "애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, EA 앱, 락스타, 유비소프트 커넥트, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.","actions": [{- "label": "소주 1.14.12 다운로드",- "href": "https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip",+ "label": "소주 1.14.13 다운로드",+ "href": "https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip","primary": true},{@@ -267,7 +267,7 @@"items": [{"title": "앱 받기",- "text": "[Soju-1.14.12-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip)을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."+ "text": "[Soju-1.14.13-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip)을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."},{"title": "런처 고르기",@@ -350,8 +350,8 @@},"actions": [{- "label": "소주 1.14.12 다운로드",- "href": "https://github.com/BCD1210/soju/releases/download/v1.14.12/Soju-1.14.12-macos-arm64.zip",+ "label": "소주 1.14.13 다운로드",+ "href": "https://github.com/BCD1210/soju/releases/download/v1.14.13/Soju-1.14.13-macos-arm64.zip","primary": true},{@@ -395,7 +395,7 @@"@type": "HowToStep","position": 1,"name": "앱 받기",- "text": "Soju-1.14.12-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."+ "text": "Soju-1.14.13-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."},{"@type": "HowToStep",diff --git a/tests/test_game_settings.py b/tests/test_game_settings.pyindex dfe864da998..6d459ecccbe 100644--- a/tests/test_game_settings.py+++ b/tests/test_game_settings.py@@ -47,7 +47,7 @@ class GameSettingsTests(unittest.TestCase):self.assertIn('game-settings) exec python3 "$ROOT/scripts/game-settings.py" "$@"',(ROOT / "scripts/desktop-action.sh").read_text())self.assertIn('"$ROOT/app/GameSettings.swift"', (ROOT / "scripts/build-app.sh").read_text())- self.assertIn("GameSettingsSection(game: game)", (ROOT / "app/Library.swift").read_text())+ self.assertIn("GameSettingsSection(game: game", (ROOT / "app/Library.swift").read_text())class HelpEntryPointTests(unittest.TestCase):diff --git a/tests/test_game_storage.py b/tests/test_game_storage.pynew file mode 100644index 00000000000..6da50ab9309--- /dev/null+++ b/tests/test_game_storage.py@@ -0,0 +1,137 @@+import importlib.util+import os+from pathlib import Path+import tempfile+import unittest++ROOT = Path(__file__).resolve().parents[1]+++def load(base):+ os.environ["SOJU_BASE"] = str(base)+ spec = importlib.util.spec_from_file_location("game_storage", ROOT / "scripts/game-storage.py")+ module = importlib.util.module_from_spec(spec)+ spec.loader.exec_module(module)+ return module+++class GameStorageTests(unittest.TestCase):+ def setUp(self):+ self.temp = tempfile.TemporaryDirectory(prefix="soju storage ' ")+ self.addCleanup(self.temp.cleanup)+ top = Path(self.temp.name).resolve()+ self.base = top / "base"+ self.drive = top / "drive"+ self.drive.mkdir()+ self.root = self.base / "bottle/drive_c/Program Files (x86)"+ self.game = self.root / "Diablo IV"+ (self.game / "Data").mkdir(parents=True)+ (self.game / ".build.info").write_text("build")+ (self.game / "Data/a.bin").write_bytes(b"x" * 4096)+ self.s = load(self.base)+ # The test "drive" is a folder on the same disk; pretend each top folder is a volume.+ self.s.mount_of = lambda p: (self.drive if self.drive in [Path(p), *Path(p).parents] else self.base, "exfat")+ self.s.game = lambda game_id: ("battlenet", self.game)+ self.s.running = lambda platform, name: False++ def test_move_leaves_a_link_and_back_restores_the_folder(self):+ state = self.s.move("battlenet:fenris", str(self.drive))+ target = self.drive / "Soju Games/battlenet/Diablo IV"+ self.assertTrue(self.game.is_symlink())+ self.assertEqual(self.game.resolve(), target)+ self.assertEqual((self.game / "Data/a.bin").stat().st_size, 4096)+ self.assertTrue(state["moved"])+ self.assertEqual([p.name for p in self.root.iterdir()], ["Diablo IV"])+ with self.assertRaisesRegex(ValueError, "already on another drive"):+ self.s.move("battlenet:fenris", str(self.drive))+ state = self.s.back("battlenet:fenris")+ self.assertFalse(self.game.is_symlink())+ self.assertEqual((self.game / "Data/a.bin").stat().st_size, 4096)+ self.assertFalse(target.exists())+ self.assertFalse(state["moved"])++ def test_move_refuses_and_keeps_the_game_in_place(self):+ cases = []+ self.s.running = lambda platform, name: True+ cases.append("Close Battle.net")+ with self.assertRaisesRegex(ValueError, cases[0]):+ self.s.move("battlenet:fenris", str(self.drive))+ self.s.running = lambda platform, name: False+ with self.assertRaisesRegex(ValueError, "same disk"):+ self.s.move("battlenet:fenris", str(self.base))+ self.s.mount_of = lambda p: (self.drive, "ntfs")+ with self.assertRaisesRegex(ValueError, "not supported"):+ self.s.move("battlenet:fenris", str(self.drive))+ self.s.mount_of = lambda p: (self.drive if self.drive in [Path(p), *Path(p).parents] else self.base, "exfat")+ (self.game / "link").symlink_to("Data")+ with self.assertRaisesRegex(ValueError, "exFAT"):+ self.s.move("battlenet:fenris", str(self.drive))+ (self.game / "link").unlink()+ existing = self.drive / "Soju Games/battlenet/Diablo IV"+ existing.mkdir(parents=True)+ (existing / "other").write_text("x")+ with self.assertRaisesRegex(ValueError, "already has files"):+ self.s.move("battlenet:fenris", str(self.drive))+ self.assertFalse(self.game.is_symlink())+ self.assertTrue((self.game / "Data/a.bin").is_file())++ def test_a_copy_that_does_not_match_is_not_used(self):+ real = self.s.tree+ self.s.tree = lambda p: (9, 9, 0) if "Soju Games" in str(p) else real(p)+ with self.assertRaisesRegex(ValueError, "does not match"):+ self.s.move("battlenet:fenris", str(self.drive))+ self.assertFalse(self.game.is_symlink())+ self.assertTrue((self.game / "Data/a.bin").is_file())++ def test_import_links_an_existing_game_without_copying(self):+ have = self.drive / "Games/Overwatch"+ have.mkdir(parents=True)+ with self.assertRaisesRegex(ValueError, "not a Battle.net game"):+ self.s.adopt("battlenet", str(have))+ (have / ".build.info").write_text("build")+ result = self.s.adopt("battlenet", str(have))+ self.assertEqual((self.root / "Overwatch").resolve(), have)+ self.assertEqual(result["files"], str(have))+ with self.assertRaisesRegex(ValueError, "already has a folder"):+ self.s.adopt("battlenet", str(have))+ with self.assertRaisesRegex(ValueError, "already in Soju"):+ self.s.adopt("battlenet", str(self.game))++ def test_place_prepares_a_folder_on_the_drive(self):+ with self.assertRaisesRegex(ValueError, "folder name"):+ self.s.place("battlenet", "../x", str(self.drive))+ with self.assertRaisesRegex(ValueError, "already has a folder"):+ self.s.place("battlenet", "Diablo IV", str(self.drive))+ self.s.place("battlenet", "Overwatch", str(self.drive))+ self.assertEqual((self.root / "Overwatch").resolve(), self.drive / "Soju Games/battlenet/Overwatch")++ def test_exfat_side_files_do_not_count(self):+ before = self.s.tree(self.game)+ (self.game / "Data/._a.bin").write_bytes(b"x" * 4096)+ self.assertEqual(self.s.tree(self.game), before)++ def test_only_battlenet_games(self):+ s = load(self.base)+ with self.assertRaisesRegex(ValueError, "Battle.net"):+ s.game("steam:1")+ with self.assertRaisesRegex(ValueError, "Battle.net"):+ s.place("steam", "X", str(self.drive))++ def test_the_app_and_cli_reach_it(self):+ self.assertIn("game-storage.py", (ROOT / "scripts/desktop-action.sh").read_text())+ self.assertIn("game-storage.py", (ROOT / "scripts/soju").read_text())+ swift = (ROOT / "app/GameSettings.swift").read_text()+ self.assertIn('"game-storage", "move"', swift)+ self.assertIn('"game-storage", "back"', swift)+ self.assertIn("importBattlenetGame", (ROOT / "app/Accounts.swift").read_text())+++class UnpluggedDriveTests(unittest.TestCase):+ def test_a_moved_game_stays_listed_while_its_drive_is_away(self):+ source = (ROOT / "scripts/game-library.py").read_text()+ self.assertIn("unplugged = location.is_symlink() and not location.exists()", source)+ self.assertIn("Connect the drive, then try again.", source)+++if __name__ == "__main__":+ unittest.main()