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
TV & iPad: stream Soju games to Moonlight through Sunshine (setup, PIN pairing, auto restart) (1.10.9)
mikey920e7ba2ee9666
diff --git a/README.ko.md b/README.ko.mdindex 63f3ef5d46d..e45cee76801 100644--- a/README.ko.md+++ b/README.ko.md@@ -83,7 +83,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.10.8/Soju-1.10.8-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.+[Soju 맥 앱 다운로드](https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.## 일상 명령@@ -150,6 +150,8 @@ scripts/play.sh gog-kill # GOG 보틀 종료 (창을 닫으면 메뉴## Didim Labs Store+TV·아이패드: 소주에서 스트리밍을 켜고, TV·아이패드·휴대폰에 무료 Moonlight 앱을 받아 화면에 나온 PIN을 소주에 넣으면, 맥에서 도는 게임을 그 화면에서 할 수 있습니다.+저희가 만든 맥 게임을 파는 탭입니다. 구매 버튼을 누르고 Polar에서 결제하면, 소주가 게임을 받아 SHA-256과 서명을 확인한 뒤 알아서 설치합니다. Wine 없이 돌아갑니다. 키는 키체인에 저장돼서 다시 설치할 때 또 묻지 않습니다. zip 파일이 이미 있으면 Library → Add Didim Labs game이나 `soju didim install <zip>`으로 설치하면 됩니다. 세이브는 `~/Library/Application Support`에 남습니다.## Xbox PC / Microsoft Store (Xodus 백엔드, 실험 기능)diff --git a/README.md b/README.mdindex 80a5d8ab8fc..dc19fb0c5bf 100644--- a/README.md+++ b/README.md@@ -14,6 +14,8 @@ owned library cached by **GOG GALAXY**. Installed and uninstalled games share thsame library, with availability filters and official-client install actions.**Discover** searches Steam, GOG and Microsoft Store listings and prices, with links to buy from the stores.**Xbox PC (experimental):** sign in to a Microsoft account to import owned and PC Game Pass games, download them through the [Xodus](https://github.com/xodus-gaming/xodus) backend and start them on Soju's engine. Retro Classics reaches its main menu on Soju; other games are untested. Purchases, downloads and updates stay with the official stores.+**TV & iPad:** turn on streaming in Soju, install the free Moonlight app on your TV, iPad or phone, type the PIN it shows, and play Soju games on that screen while they run on your Mac.+**Didim Labs Store:** we sell our own Mac games here. Press Buy, pay on Polar, and Soju downloads the game, checks its SHA-256 and signature, and installs it. No Wine. The key stays in the Keychain, so reinstalling doesn't ask again. If you already have the .zip, use Library → Add Didim Labs game or `soju didim install <zip>`.Epic and Battle.net account imports are not included yet. Compatibility varies by game.@@ -28,7 +30,7 @@ CodeWeavers' published sources; Steam uses a separate private Wine 11 setup.Apple's proprietary GPTK/D3DMetal is downloaded separately. Games and storeclients are not included.-**Current release: [v1.10.8](https://github.com/BCD1210/soju/releases/tag/v1.10.8).**+**Current release: [v1.10.9](https://github.com/BCD1210/soju/releases/tag/v1.10.9).**The compatibility examples below were verified on M4 Pro / macOS 26.5.D2R and Hogwarts Legacy are examples of supported games, not the scope of the project.@@ -104,7 +106,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.10.8/Soju-1.10.8-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.10.9/Soju-1.10.9-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 commandsdiff --git a/README.zh.md b/README.zh.mdindex 8609ac5b956..f2ad8cd690a 100644--- a/README.zh.md+++ b/README.zh.md@@ -87,7 +87,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.10.8/Soju-1.10.8-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。+[下载 Soju Mac 应用](https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。## 日常维护diff --git a/VERSION b/VERSIONindex 3cc3669ff92..b0dd7532080 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-1.10.8+1.10.9diff --git a/app/Library.swift b/app/Library.swiftindex a4528263952..7a068539046 100644--- a/app/Library.swift+++ b/app/Library.swift@@ -268,6 +268,7 @@ struct LibraryView: View {if page == "platforms" { PlatformsView().frame(maxWidth: .infinity, maxHeight: .infinity) }else if page == "discover" { DiscoverView() }else if page == "store" { StoreView() }+ else if page == "tv" { TVView() }else if page == "accounts" { AccountsView() }else { library }}@@ -302,6 +303,7 @@ struct LibraryView: View {Divider().padding(.vertical, 16)nav("accounts", "Accounts", "person.crop.circle", count: nil)nav("platforms", "Platforms", "square.stack.3d.up", count: nil)+ nav("tv", "TV & iPad", "tv", count: nil)Spacer()VStack(alignment: .leading, spacing: 9) {Label("On your Mac", systemImage: "desktopcomputer").font(.system(size: 12, weight: .medium))diff --git a/app/Soju.swift b/app/Soju.swiftindex 1c445e74d6c..9e01d774463 100644--- a/app/Soju.swift+++ b/app/Soju.swift@@ -417,6 +417,7 @@ final class SojuDelegate: NSObject, NSApplicationDelegate {var body: some Scene {Window("Soju", id: "main") {LibraryView().environmentObject(model).onOpenURL { model.open($0) }.onAppear {+ TVKeeper.start()delegate.isBusy = { model.busy }delegate.downloads = { model.downloadTasks.count }delegate.pauseDownloads = { model.pauseAllDownloads() }diff --git a/app/TV.swift b/app/TV.swiftnew file mode 100644index 00000000000..8fc4a8247ca--- /dev/null+++ b/app/TV.swift@@ -0,0 +1,154 @@+import SwiftUI++/// While streaming is meant to be on, bring Sunshine back if it quits by itself (it can when a stream drops).+enum TVKeeper {+ static let app = FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent("Applications/Sunshine.app")+ static func start() {+ Timer.scheduledTimer(withTimeInterval: 10, repeats: true) { _ in check() }+ }+ static func check() {+ guard UserDefaults.standard.bool(forKey: "tvStreaming"), FileManager.default.fileExists(atPath: app.path) else { return }+ let probe = Process()+ probe.executableURL = URL(fileURLWithPath: "/usr/bin/pgrep")+ probe.arguments = ["-f", app.appendingPathComponent("Contents/MacOS/Sunshine").path]+ probe.terminationHandler = { finished in+ guard finished.terminationStatus != 0 else { return }+ let open = Process()+ open.executableURL = URL(fileURLWithPath: "/usr/bin/open")+ open.arguments = ["-g", app.path]+ try? open.run()+ }+ try? probe.run()+ }+}++/// Play on a TV, iPad or phone: Soju runs Sunshine on this Mac and the other device uses Moonlight.+struct TVStatus: Decodable {+ var installed = false+ var version = ""+ var running = false+ var permission = true+ var devices: [String] = []+ var pending = 0+}++struct TVView: View {+ @EnvironmentObject var model: SojuModel+ @State private var status = TVStatus()+ @State private var pin = ""+ @State private var timer: Timer?+ private let accent = Color(red: 0.36, green: 0.75, blue: 0.55)++ var body: some View {+ ScrollView {+ VStack(alignment: .leading, spacing: 22) {+ VStack(alignment: .leading, spacing: 7) {+ Text("TV & iPad").font(.system(size: 30, weight: .bold, design: .rounded))+ Text("Games keep running on this Mac. Your TV, iPad or phone shows the picture and sends the controls back over your home Wi‑Fi.")+ .font(.callout).foregroundStyle(.secondary).fixedSize(horizontal: false, vertical: true)+ }+ if model.busy { Label(model.activity, systemImage: "hourglass").font(.system(size: 12)) }+ step(1, "Turn on streaming", done: status.installed && status.running && status.permission) {+ if !status.installed {+ Text("Soju installs Sunshine, a free open-source streaming server signed by LizardByte. It sends no usage data, and its settings stay on this Mac.")+ Button("Set Up Streaming") { wantOn(true); model.run(["tv", "setup"], title: "Setting up streaming…") }+ .buttonStyle(.borderedProminent).tint(accent).disabled(model.busy)+ } else if !status.permission {+ Text("macOS needs your OK before Sunshine can show your screen. In Screen & System Audio Recording, turn on Sunshine, then press Start.")+ HStack {+ Button("Open Settings") { NSWorkspace.shared.open(URL(string: "x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_ScreenCapture")!) }+ Button("Start") { model.run(["tv", "stop"], title: "Restarting…"); DispatchQueue.main.asyncAfter(deadline: .now() + 2) { model.run(["tv", "start"], title: "Starting streaming…") } }+ }+ } else {+ HStack(spacing: 10) {+ Label(status.running ? "On" : "Off", systemImage: status.running ? "dot.radiowaves.left.and.right" : "pause.circle")+ .foregroundStyle(status.running ? accent : .secondary)+ Button(status.running ? "Turn Off" : "Turn On") {+ wantOn(!status.running)+ model.run(["tv", status.running ? "stop" : "start"], title: status.running ? "Stopping…" : "Starting streaming…")+ }.disabled(model.busy)+ }+ }+ }+ step(2, "Get Moonlight on the other device", done: !status.devices.isEmpty) {+ Text("Moonlight is free and open source. Your TV or iPad and this Mac must be on the same network.")+ HStack(spacing: 14) {+ Link("iPad, iPhone, Apple TV", destination: URL(string: "https://apps.apple.com/app/moonlight-game-streaming/id1000551566")!)+ Link("Android, Google TV", destination: URL(string: "https://play.google.com/store/apps/details?id=com.limelight")!)+ Link("Other devices", destination: URL(string: "https://moonlight-stream.org")!)+ }.font(.system(size: 12))+ }+ step(3, "Connect", done: !status.devices.isEmpty) {+ Text("Open Moonlight and choose \u{201C}Soju\u{201D}. It shows a 4-digit PIN. Type it here.")+ HStack {+ TextField("PIN", text: $pin).textFieldStyle(.roundedBorder).frame(width: 90)+ .onSubmit(pair)+ Button("Connect", action: pair).buttonStyle(.borderedProminent).tint(accent)+ .disabled(model.busy || !status.running || pin.range(of: "^\\d{4}$", options: .regularExpression) == nil)+ if status.pending > 0 { Text("A device is waiting.").font(.system(size: 11)).foregroundStyle(.secondary) }+ }+ if !status.devices.isEmpty {+ VStack(alignment: .leading, spacing: 6) {+ ForEach(status.devices, id: \.self) { name in+ HStack {+ Image(systemName: "display").foregroundStyle(.secondary)+ Text(name)+ Button("Remove") { model.run(["tv", "unpair", name], title: "Removing " + name + "…") }+ .buttonStyle(.link).disabled(model.busy)+ }+ }+ }.padding(.top, 4)+ }+ }+ step(4, "Play", done: false) {+ Text("In Moonlight, open Desktop. You see this Mac's screen: start a game from Soju as usual. Mouse and keyboard work, and a controller on the TV acts as mouse and keys; games that only take a controller may not respond, because the Mac version of Sunshine can't create a virtual controller.")+ }+ }.padding(28).frame(maxWidth: 760, alignment: .leading)+ }+ .onAppear { refresh(); timer = Timer.scheduledTimer(withTimeInterval: 3, repeats: true) { _ in DispatchQueue.main.async { refresh() } } }+ .onDisappear { timer?.invalidate(); timer = nil }+ }++ private func pair() {+ let code = pin.trimmingCharacters(in: .whitespaces)+ guard code.range(of: "^\\d{4}$", options: .regularExpression) != nil else { return }+ pin = ""+ model.run(["tv", "pin", code], title: "Connecting…")+ }++ /// Remembered so Soju can bring Sunshine back if it quits on its own (it can when a stream drops).+ private func wantOn(_ on: Bool) { UserDefaults.standard.set(on, forKey: "tvStreaming") }++ private func refresh() {+ guard !model.busy else { return }+ let process = Process()+ process.executableURL = URL(fileURLWithPath: "/usr/bin/python3")+ process.arguments = [model.root.appendingPathComponent("scripts/stream_tv.py").path, "status"]+ let pipe = Pipe()+ process.standardOutput = pipe+ process.standardError = FileHandle.nullDevice+ process.terminationHandler = { _ in+ let data = pipe.fileHandleForReading.readDataToEndOfFile()+ if let next = try? JSONDecoder().decode(TVStatus.self, from: data) {+ DispatchQueue.main.async {+ status = next+ }+ }+ }+ try? process.run()+ }++ private func step<Content: View>(_ number: Int, _ title: String, done: Bool, @ViewBuilder content: () -> Content) -> some View {+ HStack(alignment: .top, spacing: 14) {+ ZStack {+ Circle().fill(done ? accent : Color.primary.opacity(0.08)).frame(width: 28, height: 28)+ if done { Image(systemName: "checkmark").font(.system(size: 12, weight: .bold)).foregroundStyle(.white) }+ else { Text(String(number)).font(.system(size: 13, weight: .semibold)) }+ }+ VStack(alignment: .leading, spacing: 8) {+ Text(title).font(.system(size: 15, weight: .semibold))+ content().font(.system(size: 12)).fixedSize(horizontal: false, vertical: true)+ }+ }+ }+}diff --git a/docs/DESKTOP.md b/docs/DESKTOP.mdindex 7712252ee86..872d8d99b23 100644--- a/docs/DESKTOP.md+++ b/docs/DESKTOP.md@@ -1,6 +1,6 @@# Soju for Mac-[Download v1.10.8](https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip)+[Download v1.10.9](https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-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.diff --git a/docs/index.html b/docs/index.htmlindex bc53a317b4a..1016da42ab6 100644--- a/docs/index.html+++ b/docs/index.html@@ -54,8 +54,8 @@"@id": "https://didimlabs.com/#soju","name": "Soju","url": "https://didimlabs.com/",- "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip",- "softwareVersion": "1.10.8",+ "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip",+ "softwareVersion": "1.10.9","description": "Free, open-source Mac app that installs the official Windows launchers for Steam, Battle.net, Epic Games, GOG GALAXY 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)",@@ -146,7 +146,7 @@<a href="ko/" lang="ko" hreflang="ko">한국어</a></div></nav><main id="main">-<link rel="preload" as="image" href="assets/soju-logo.png?v=20261109d"/><link rel="preload" as="image" href="assets/soju-library.png?v=20261109d" fetchPriority="high"/><header class="hero"><h1 class="with-logo"><img src="assets/soju-logo.png?v=20261109d" width="72" height="72" alt=""/>Soju</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 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.10.8/Soju-1.10.8-macos-arm64.zip">Download Soju 1.10.8</a><span class="meta">macOS 14+, M1 or newer · open source (GPL-3.0)</span></p><img src="assets/soju-library.png?v=20261109d" 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"/></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. 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, store clients or Apple's Game Porting Toolkit.</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; please <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">report what you try</a>.</p><div class="table-scroll" role="region" aria-label="Tested games" tabindex="0"><table><thead><tr><th scope="col">Game</th><th scope="col">Store</th><th scope="col">Result</th></tr></thead><tbody><tr><th scope="row">Diablo II: Resurrected</th><td>Battle.net</td><td>Plays online. Needs macOS 26.4+. <a href="guides/diablo-2-resurrected-apple-silicon.html">Guide</a></td></tr><tr><th scope="row">Hogwarts Legacy</th><td>Epic</td><td>Installs and plays with D3DMetal.</td></tr><tr><th scope="row">Guilt Free (Unity, D3D11)</th><td>Steam</td><td>Plays with the DXMT setup. <a href="guides/steam-windows-client-apple-silicon.html">Guide</a></td></tr><tr><th scope="row">Retro Classics</th><td>Xbox PC</td><td>Reaches the main menu.</td></tr><tr><th scope="row">GOG GALAXY</th><td>GOG</td><td>Login and library work; few games tried yet.</td></tr></tbody></table></div><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=20261109d" 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=20261109d" 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">$6.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"><li><b>Download the app</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip">Soju-1.10.8-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 need <a href="https://developer.apple.com/games/game-porting-toolkit/">Apple's Game Porting Toolkit</a>, which you download with your Apple ID.</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-logo.png?v=20261109d"/><link rel="preload" as="image" href="assets/soju-library.png?v=20261109d" fetchPriority="high"/><header class="hero"><h1 class="with-logo"><img src="assets/soju-logo.png?v=20261109d" width="72" height="72" alt=""/>Soju</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 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.10.9/Soju-1.10.9-macos-arm64.zip">Download Soju 1.10.9</a><span class="meta">macOS 14+, M1 or newer · open source (GPL-3.0)</span></p><img src="assets/soju-library.png?v=20261109d" 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"/></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. 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, store clients or Apple's Game Porting Toolkit.</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; please <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">report what you try</a>.</p><div class="table-scroll" role="region" aria-label="Tested games" tabindex="0"><table><thead><tr><th scope="col">Game</th><th scope="col">Store</th><th scope="col">Result</th></tr></thead><tbody><tr><th scope="row">Diablo II: Resurrected</th><td>Battle.net</td><td>Plays online. Needs macOS 26.4+. <a href="guides/diablo-2-resurrected-apple-silicon.html">Guide</a></td></tr><tr><th scope="row">Hogwarts Legacy</th><td>Epic</td><td>Installs and plays with D3DMetal.</td></tr><tr><th scope="row">Guilt Free (Unity, D3D11)</th><td>Steam</td><td>Plays with the DXMT setup. <a href="guides/steam-windows-client-apple-silicon.html">Guide</a></td></tr><tr><th scope="row">Retro Classics</th><td>Xbox PC</td><td>Reaches the main menu.</td></tr><tr><th scope="row">GOG GALAXY</th><td>GOG</td><td>Login and library work; few games tried yet.</td></tr></tbody></table></div><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=20261109d" 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=20261109d" 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">$6.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"><li><b>Download the app</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip">Soju-1.10.9-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 need <a href="https://developer.apple.com/games/game-porting-toolkit/">Apple's Game Porting Toolkit</a>, which you download with your Apple ID.</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/sojudiff --git a/docs/ko/index.html b/docs/ko/index.htmlindex 40b689d7dc7..55f75e2d174 100644--- a/docs/ko/index.html+++ b/docs/ko/index.html@@ -88,7 +88,7 @@<a href="../" lang="en" hreflang="en">English</a></div></nav><main id="main">-<link rel="preload" as="image" href="../assets/soju-logo.png?v=20261109d"/><link rel="preload" as="image" href="../assets/soju-library.png?v=20261109d" fetchPriority="high"/><header class="hero"><h1 class="with-logo"><img src="../assets/soju-logo.png?v=20261109d" width="72" height="72" alt=""/>소주 (Soju)</h1><p class="lead">애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip">소주 1.10.8 다운로드</a><span class="meta">macOS 14 이상, M1 이상 · 오픈소스(GPL-3.0)</span></p><img src="../assets/soju-library.png?v=20261109d" alt="디아블로 II: 레저렉션, 고양이는 팔지 마세요, Guilt Free, 호그와트 레거시가 있는 소주 1.10 라이브러리" width="1140" height="780" class="shot" fetchPriority="high"/></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="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">결과를 알려 주세요</a>.</p><div class="table-scroll" role="region" aria-label="실행한 게임" tabindex="0"><table><thead><tr><th scope="col">게임</th><th scope="col">스토어</th><th scope="col">결과</th></tr></thead><tbody><tr><th scope="row">디아블로 II: 레저렉션</th><td>배틀넷</td><td>온라인 플레이 됨. macOS 26.4 이상. <a href="../guides/ko/diablo-2-mac.html">가이드</a></td></tr><tr><th scope="row">호그와트 레거시</th><td>에픽</td><td>D3DMetal로 설치·플레이 됨</td></tr><tr><th scope="row">Guilt Free (Unity, D3D11)</th><td>스팀</td><td>DXMT 설정으로 플레이 됨</td></tr><tr><th scope="row">Retro Classics</th><td>Xbox PC</td><td>메인 화면까지 실행</td></tr><tr><th scope="row">GOG GALAXY</th><td>GOG</td><td>로그인·라이브러리 됨, 게임은 아직 조금만 시험</td></tr></tbody></table></div><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">$6.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"><li><b>앱 받기</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip">Soju-1.10.8-macos-arm64.zip</a>을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다.</p></li><li><b>런처 고르기</b><p>소주를 열고 Platforms에서 쓰는 런처를 고릅니다. 배틀넷·에픽·GOG는 애플 ID로 직접 받은 <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-logo.png?v=20261109d"/><link rel="preload" as="image" href="../assets/soju-library.png?v=20261109d" fetchPriority="high"/><header class="hero"><h1 class="with-logo"><img src="../assets/soju-logo.png?v=20261109d" width="72" height="72" alt=""/>소주 (Soju)</h1><p class="lead">애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip">소주 1.10.9 다운로드</a><span class="meta">macOS 14 이상, M1 이상 · 오픈소스(GPL-3.0)</span></p><img src="../assets/soju-library.png?v=20261109d" alt="디아블로 II: 레저렉션, 고양이는 팔지 마세요, Guilt Free, 호그와트 레거시가 있는 소주 1.10 라이브러리" width="1140" height="780" class="shot" fetchPriority="high"/></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="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">결과를 알려 주세요</a>.</p><div class="table-scroll" role="region" aria-label="실행한 게임" tabindex="0"><table><thead><tr><th scope="col">게임</th><th scope="col">스토어</th><th scope="col">결과</th></tr></thead><tbody><tr><th scope="row">디아블로 II: 레저렉션</th><td>배틀넷</td><td>온라인 플레이 됨. macOS 26.4 이상. <a href="../guides/ko/diablo-2-mac.html">가이드</a></td></tr><tr><th scope="row">호그와트 레거시</th><td>에픽</td><td>D3DMetal로 설치·플레이 됨</td></tr><tr><th scope="row">Guilt Free (Unity, D3D11)</th><td>스팀</td><td>DXMT 설정으로 플레이 됨</td></tr><tr><th scope="row">Retro Classics</th><td>Xbox PC</td><td>메인 화면까지 실행</td></tr><tr><th scope="row">GOG GALAXY</th><td>GOG</td><td>로그인·라이브러리 됨, 게임은 아직 조금만 시험</td></tr></tbody></table></div><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">$6.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"><li><b>앱 받기</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip">Soju-1.10.9-macos-arm64.zip</a>을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다.</p></li><li><b>런처 고르기</b><p>소주를 열고 Platforms에서 쓰는 런처를 고릅니다. 배틀넷·에픽·GOG는 애플 ID로 직접 받은 <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/sojudiff --git a/docs/llms.txt b/docs/llms.txtindex 7b76027c368..2bea5c43fbe 100644--- a/docs/llms.txt+++ b/docs/llms.txt@@ -5,7 +5,7 @@## Soju- [Soju home](https://didimlabs.com/): what Soju does, tested games, install steps, FAQ- [Soju in Korean / 소주 한국어](https://didimlabs.com/ko/)-- [Source code and releases](https://github.com/BCD1210/soju): GPL-3.0-or-later; current version 1.10.8+- [Source code and releases](https://github.com/BCD1210/soju): GPL-3.0-or-later; current version 1.10.9- Supported launchers: Steam, Battle.net, Epic Games, GOG GALAXY, 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), 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/docs/privacy.html b/docs/privacy.htmlindex 2061e234676..8ac51421506 100644--- a/docs/privacy.html+++ b/docs/privacy.html@@ -26,7 +26,7 @@<a href="sponsor.html">Advertise</a></div></nav><main id="main">-<header class="hero"><h1>Privacy</h1><p class="lead">Soju is a Mac app made by Didim Labs. It keeps your game library on your Mac. This page lists everything that leaves it.</p></header><section id="signin" aria-labelledby="signin-title"><h2 id="signin-title">Signing in with Apple or Google</h2><ul><li>We ask Apple or Google only for your email address. We don't ask for contacts, files or anything else.</li><li>We use that email once, to find games you bought from us through Polar, and hand the license keys back to your copy of Soju.</li><li>Our server keeps the result for at most 10 minutes, then deletes it. Soju keeps your email and keys on your Mac (keys in the macOS Keychain).</li><li>If you use Apple's Hide My Email, we only see the relay address, so purchases made with your real email won't be found.</li></ul></section><section id="purchases" aria-labelledby="purchases-title"><h2 id="purchases-title">Buying games</h2><p>Payments go through <a href="https://polar.sh/legal/privacy">Polar</a>, which acts as the seller of record and handles card details, receipts and taxes. We see your email, name, country and what you bought. We never see card numbers.</p></section><section id="app" aria-labelledby="app-title"><h2 id="app-title">What the Soju app sends</h2><ul><li>Soju downloads the store list and the sponsor card from didimlabs.com, and game files from Polar or GitHub.</li><li>Account connections you add (Steam, GOG and others) talk to those services directly from your Mac.</li><li>Soju has no analytics, ads tracking or crash reporting.</li></ul></section><section id="site" aria-labelledby="site-title"><h2 id="site-title">This website</h2><p>didimlabs.com runs on Cloudflare, which keeps standard request logs. The site sets no cookies. If you send the advertising form, we get what you type and reply by email.</p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">Release news emails</h2><p>If you type your email to hear about our next game, we keep that address only for that. We send an email when a new game comes out and nothing else. Write to [email protected] to be removed.</p></section><section id="contact" aria-labelledby="contact-title"><h2 id="contact-title">Questions or deletion</h2><p>Email <a href="mailto:[email protected]">[email protected]</a>. We can tell you what we hold and delete it, except records Polar must keep for tax law. To remove everything from your Mac, sign out in Soju and delete the app.</p></section><section id="ko" aria-labelledby="ko-title"><h2 id="ko-title">개인정보 처리 (요약)</h2><p>애플·구글 로그인은 이메일 주소만 받아, Polar에서 그 이메일로 산 게임의 라이선스 키를 찾는 데 한 번 씁니다. 서버에는 최대 10분만 남고 지워집니다. 결제 정보는 Polar가 처리하며 우리는 카드 번호를 보지 않습니다. 소주 앱에는 분석·추적 기능이 없습니다. 출시 알림을 신청한 이메일은 새 게임 소식에만 씁니다. 문의와 삭제 요청: [email protected]</p></section>+<header class="hero"><h1>Privacy</h1><p class="lead">Soju is a Mac app made by Didim Labs. It keeps your game library on your Mac. This page lists everything that leaves it.</p></header><section id="signin" aria-labelledby="signin-title"><h2 id="signin-title">Signing in with Apple or Google</h2><ul><li>We ask Apple or Google only for your email address. We don't ask for contacts, files or anything else.</li><li>We use that email once, to find games you bought from us through Polar, and hand the license keys back to your copy of Soju.</li><li>Our server keeps the result for at most 10 minutes, then deletes it. Soju keeps your email and keys on your Mac (keys in the macOS Keychain).</li><li>If you use Apple's Hide My Email, we only see the relay address, so purchases made with your real email won't be found.</li></ul></section><section id="purchases" aria-labelledby="purchases-title"><h2 id="purchases-title">Buying games</h2><p>Payments go through <a href="https://polar.sh/legal/privacy">Polar</a>, which acts as the seller of record and handles card details, receipts and taxes. We see your email, name, country and what you bought. We never see card numbers.</p></section><section id="app" aria-labelledby="app-title"><h2 id="app-title">What the Soju app sends</h2><ul><li>Soju downloads the store list and the sponsor card from didimlabs.com, and game files from Polar or GitHub.</li><li>Account connections you add (Steam, GOG and others) talk to those services directly from your Mac.</li><li>If you turn on TV & iPad streaming, Soju installs Sunshine (open source, LizardByte) on your Mac. It streams only to devices you pair with a PIN on your own network, keeps its settings page on your Mac, and only contacts GitHub to check for new versions.</li><li>Soju has no analytics, ads tracking or crash reporting.</li></ul></section><section id="site" aria-labelledby="site-title"><h2 id="site-title">This website</h2><p>didimlabs.com runs on Cloudflare, which keeps standard request logs. The site sets no cookies. If you send the advertising form, we get what you type and reply by email.</p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">Release news emails</h2><p>If you type your email to hear about our next game, we keep that address only for that. We send an email when a new game comes out and nothing else. Write to [email protected] to be removed.</p></section><section id="contact" aria-labelledby="contact-title"><h2 id="contact-title">Questions or deletion</h2><p>Email <a href="mailto:[email protected]">[email protected]</a>. We can tell you what we hold and delete it, except records Polar must keep for tax law. To remove everything from your Mac, sign out in Soju and delete the app.</p></section><section id="ko" aria-labelledby="ko-title"><h2 id="ko-title">개인정보 처리 (요약)</h2><p>애플·구글 로그인은 이메일 주소만 받아, Polar에서 그 이메일로 산 게임의 라이선스 키를 찾는 데 한 번 씁니다. 서버에는 최대 10분만 남고 지워집니다. 결제 정보는 Polar가 처리하며 우리는 카드 번호를 보지 않습니다. 소주 앱에는 분석·추적 기능이 없습니다. 출시 알림을 신청한 이메일은 새 게임 소식에만 씁니다. 문의와 삭제 요청: [email protected]</p></section></main><footer><div class="inner"><p><span>Didim Labs · <a href="mailto:[email protected]">[email protected]</a> · <a href="https://github.com/BCD1210/soju">GitHub</a></span></p>diff --git a/scripts/build-app.sh b/scripts/build-app.shindex 805bb6dd9eb..75a136618dd 100755--- a/scripts/build-app.sh+++ b/scripts/build-app.sh@@ -10,7 +10,7 @@ trap 'rm -rf "$STAGE"' EXITAPP="$STAGE/Soju.app"mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources/soju"swiftc -swift-version 5 -parse-as-library -O -target arm64-apple-macosx14.0 \- "$ROOT/app/Soju.swift" "$ROOT/app/Library.swift" "$ROOT/app/Accounts.swift" "$ROOT/app/Discover.swift" "$ROOT/app/PurchaseLinks.swift" "$ROOT/app/SteamLogin.swift" "$ROOT/app/Store.swift" "$ROOT/app/Sponsor.swift" "$ROOT/app/Notify.swift" -o "$APP/Contents/MacOS/Soju"+ "$ROOT/app/Soju.swift" "$ROOT/app/Library.swift" "$ROOT/app/Accounts.swift" "$ROOT/app/Discover.swift" "$ROOT/app/PurchaseLinks.swift" "$ROOT/app/SteamLogin.swift" "$ROOT/app/Store.swift" "$ROOT/app/Sponsor.swift" "$ROOT/app/Notify.swift" "$ROOT/app/TV.swift" -o "$APP/Contents/MacOS/Soju"for dir in scripts tools patches third_party resources; doditto "$ROOT/$dir" "$APP/Contents/Resources/soju/$dir"donediff --git a/scripts/desktop-action.sh b/scripts/desktop-action.shindex f97349b4ddd..a057614b339 100755--- a/scripts/desktop-action.sh+++ b/scripts/desktop-action.sh@@ -19,6 +19,11 @@ case "$ACTION" incase "${1:-}" in setup|play|status) exec python3 "$ROOT/scripts/d2r-vr.py" "$1" ;;flat) exec python3 "$ROOT/scripts/d2r-vr.py" play --flat ;;*) echo "Unknown VR action."; exit 64 ;; esac ;;+ tv)+ case "${1:-}" in setup|start|stop|status) exec python3 "$ROOT/scripts/stream_tv.py" "$1" ;;+ pin) exec python3 "$ROOT/scripts/stream_tv.py" pin "${2:?Enter the PIN}" ;;+ unpair) exec python3 "$ROOT/scripts/stream_tv.py" unpair "${2:?Choose a device}" ;;+ *) echo "Unknown TV action."; exit 64 ;; esac ;;didim)case "${1:-}" in install) exec python3 "$ROOT/scripts/didim_games.py" install "${2:?Choose the game zip}" ;;remove) exec python3 "$ROOT/scripts/didim_games.py" remove "${2:?Choose a game}" ;;diff --git a/scripts/stream_tv.py b/scripts/stream_tv.pynew file mode 100644index 00000000000..4cfc7a75176--- /dev/null+++ b/scripts/stream_tv.py@@ -0,0 +1,214 @@+#!/usr/bin/env python3+"""Play Soju games on a TV, iPad or phone: Soju sets up Sunshine (open-source game streaming server,+LizardByte) on this Mac, and the other device connects with the free Moonlight app.++ stream_tv.py setup download the pinned Sunshine release, check it, install, configure, start+ stream_tv.py start|stop start or stop Sunshine+ stream_tv.py status JSON: installed, running, permission, devices, pending+ stream_tv.py pin 1234 approve the device that is showing this PIN in Moonlight+ stream_tv.py unpair NAME remove a paired device++Sunshine has no telemetry; its settings page only checks GitHub for new versions. Soju keeps the+web settings reachable from this Mac only and turns UPnP off, so nothing is opened to the internet.+"""+import hashlib+import json+import os+from pathlib import Path+import re+import secrets+import shutil+import ssl+import subprocess+import sys+import tempfile+import time+import urllib.error+import urllib.request++VERSION = 'v2026.914.233613'+DMG_URL = 'https://github.com/LizardByte/Sunshine/releases/download/' + VERSION + '/Sunshine-macOS-arm64.dmg'+DMG_SHA256 = '795f03a389c5726f9a7b15f501dc1ddf204b442cae565859ac83aae027a9e07c'+TEAM_ID = 'F8XQ7XCN2R' # LizardByte LLC+APP = Path.home() / 'Applications' / 'Sunshine.app'+BINARY = APP / 'Contents' / 'MacOS' / 'Sunshine'+CONFIG_DIR = Path.home() / '.config' / 'sunshine'+LOG = CONFIG_DIR / 'sunshine.log'+API = 'https://localhost:47990/api/'+KEYCHAIN = 'Soju Sunshine'+SETTINGS = {'sunshine_name': 'Soju', 'origin_web_ui_allowed': 'pc', 'upnp': 'disabled'}+++def say(text):+ print(text, flush=True)+++def running():+ return subprocess.run(['/usr/bin/pgrep', '-f', str(BINARY)], capture_output=True).returncode == 0+++def password(create=False):+ found = subprocess.run(['/usr/bin/security', 'find-generic-password', '-s', KEYCHAIN, '-a', 'soju', '-w'],+ capture_output=True, text=True)+ if found.returncode == 0:+ return found.stdout.strip()+ if not create:+ return ''+ value = secrets.token_urlsafe(18)+ subprocess.run(['/usr/bin/security', 'add-generic-password', '-U', '-s', KEYCHAIN, '-a', 'soju',+ '-l', 'Soju: Sunshine settings', '-w', value], check=True, capture_output=True)+ return value+++def api(path, body=None, method=None):+ """Sunshine's local settings API (self-signed certificate on localhost)."""+ import base64+ request = urllib.request.Request(API + path, method=method or ('POST' if body is not None else 'GET'),+ data=json.dumps(body).encode() if body is not None else None)+ request.add_header('Authorization', 'Basic ' + base64.b64encode(('soju:' + password()).encode()).decode())+ request.add_header('Content-Type', 'application/json')+ context = ssl.create_default_context()+ context.check_hostname = False+ context.verify_mode = ssl.CERT_NONE+ with urllib.request.urlopen(request, timeout=10, context=context) as response:+ return json.loads(response.read(1024 * 1024) or b'{}')+++def installed_version():+ plist = APP / 'Contents' / 'Info.plist'+ if not plist.exists():+ return ''+ import plistlib+ return plistlib.loads(plist.read_bytes()).get('CFBundleShortVersionString', '')+++def install():+ folder = Path(tempfile.mkdtemp(prefix='soju-sunshine-'))+ try:+ dmg = folder / 'Sunshine.dmg'+ say('Downloading Sunshine ' + VERSION + '…')+ request = urllib.request.Request(DMG_URL, headers={'User-Agent': 'Soju'})+ sha = hashlib.sha256()+ with urllib.request.urlopen(request, timeout=60) as response, dmg.open('wb') as out:+ while chunk := response.read(1024 * 1024):+ out.write(chunk); sha.update(chunk)+ if sha.hexdigest() != DMG_SHA256:+ raise ValueError('The Sunshine download did not match the expected checksum.')+ mount = folder / 'mnt'+ subprocess.run(['/usr/bin/hdiutil', 'attach', '-nobrowse', '-readonly', '-mountpoint', str(mount), str(dmg)],+ check=True, capture_output=True)+ try:+ source = mount / 'Sunshine.app'+ sign = subprocess.run(['/usr/bin/codesign', '-dv', '--verbose=2', str(source)], capture_output=True, text=True)+ if 'TeamIdentifier=' + TEAM_ID not in sign.stderr:+ raise ValueError('Sunshine is not signed by LizardByte.')+ gate = subprocess.run(['/usr/sbin/spctl', '-a', '-vv', str(source)], capture_output=True, text=True)+ if 'Notarized Developer ID' not in gate.stderr:+ raise ValueError('Sunshine is not notarized by Apple.')+ stop()+ APP.parent.mkdir(parents=True, exist_ok=True)+ if APP.exists():+ shutil.rmtree(APP)+ subprocess.run(['/usr/bin/ditto', str(source), str(APP)], check=True)+ finally:+ subprocess.run(['/usr/bin/hdiutil', 'detach', str(mount)], capture_output=True)+ finally:+ shutil.rmtree(folder, ignore_errors=True)+++def configure():+ CONFIG_DIR.mkdir(parents=True, exist_ok=True, mode=0o700)+ conf = CONFIG_DIR / 'sunshine.conf'+ lines = [l for l in (conf.read_text().splitlines() if conf.exists() else [])+ if l.split('=')[0].strip() not in SETTINGS]+ lines += [k + ' = ' + v for k, v in SETTINGS.items()]+ conf.write_text('\n'.join(lines) + '\n')+ os.chmod(conf, 0o600)+ if not password():+ subprocess.run([str(BINARY), '--creds', 'soju', password(create=True)], check=True, capture_output=True)+++def needs_permission():+ if not LOG.exists():+ return False+ text = LOG.read_text(errors='replace')[-200000:]+ last_start = text.rfind('Info: Sunshine version')+ return 'No screen capture permission' in (text[last_start:] if last_start >= 0 else text)+++def start():+ if not APP.exists():+ raise ValueError('Set up streaming first.')+ if running():+ return+ subprocess.run(['/usr/bin/open', '-g', str(APP)], check=True)+ for _ in range(30):+ time.sleep(0.5)+ try:+ api('clients/list'); break+ except (urllib.error.URLError, OSError, ValueError):+ continue+ if needs_permission():+ subprocess.run(['/usr/bin/open', 'x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_ScreenCapture'])+ say('Turn on Sunshine under Screen & System Audio Recording, then press Start again.')+++def stop():+ subprocess.run(['/usr/bin/pkill', '-f', str(BINARY)], capture_output=True)+++def status():+ result = {'installed': APP.exists(), 'version': installed_version(), 'running': running(),+ 'permission': not needs_permission(), 'devices': [], 'pending': 0}+ if result['running'] and password():+ try:+ result['devices'] = [c.get('name', '') for c in api('clients/list').get('named_certs', [])]+ result['pending'] = len(api('pin').get('pairings', []))+ except (urllib.error.URLError, OSError, ValueError):+ pass+ print(json.dumps(result))+++def pin(code):+ if not re.fullmatch(r'\d{4}', code or ''):+ raise ValueError('Enter the 4-digit PIN that Moonlight shows.')+ pending = api('pin').get('pairings', [])+ if not pending:+ raise ValueError('No device is waiting. In Moonlight, choose this Mac first, then enter the PIN it shows.')+ request = pending[-1]+ name = re.sub(r'[^\w .-]', '', request.get('name') or 'Moonlight')[:40] or 'Moonlight'+ if not api('pin', {'pairing_id': request['id'], 'pin': code, 'name': name}).get('status'):+ raise ValueError('Sunshine did not accept that PIN.')+ say('Paired ' + name + '.')+++def unpair(name):+ for client in api('clients/list').get('named_certs', []):+ if client.get('name') == name:+ api('clients/unpair', {'uuid': client['uuid']})+ say('Removed ' + name + '.')+ return+ raise ValueError('No paired device called ' + name + '.')+++def main():+ action = sys.argv[1] if len(sys.argv) > 1 else 'status'+ try:+ if action == 'setup':+ if installed_version() != VERSION.lstrip('v'):+ install()+ configure()+ start()+ say('Streaming is set up.' if running() else 'Sunshine did not start.')+ elif action == 'start': start()+ elif action == 'stop': stop()+ elif action == 'status': status()+ elif action == 'pin': pin(sys.argv[2] if len(sys.argv) > 2 else '')+ elif action == 'unpair': unpair(sys.argv[2] if len(sys.argv) > 2 else '')+ else: raise ValueError('Unknown action.')+ except (OSError, ValueError, subprocess.CalledProcessError, urllib.error.URLError) as error:+ print('soju: ' + str(error), file=sys.stderr); sys.exit(1)+++if __name__ == '__main__':+ main()diff --git a/site/content/index.json b/site/content/index.jsonindex 679267e7472..93c767227f0 100644--- a/site/content/index.json+++ b/site/content/index.json@@ -90,8 +90,8 @@"@id": "https://didimlabs.com/#soju","name": "Soju","url": "https://didimlabs.com/",- "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip",- "softwareVersion": "1.10.8",+ "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip",+ "softwareVersion": "1.10.9","description": "Free, open-source Mac app that installs the official Windows launchers for Steam, Battle.net, Epic Games, GOG GALAXY 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)",@@ -120,8 +120,8 @@"lead": "A free Mac app for playing Windows games on Apple Silicon. It installs the real Steam, Battle.net, Epic, GOG GALAXY and Xbox PC launchers, keeps each in its own Wine setup, and lists every installed game in one library.","actions": [{- "label": "Download Soju 1.10.8",- "href": "https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip",+ "label": "Download Soju 1.10.9",+ "href": "https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip","primary": true}],@@ -274,7 +274,7 @@"items": [{"title": "Download the app",- "text": "[Soju-1.10.8-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-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.10.9-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-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",diff --git a/site/content/ko.json b/site/content/ko.jsonindex fa03a7d8f4d..ebd2bf5f7b2 100644--- a/site/content/ko.json+++ b/site/content/ko.json@@ -64,8 +64,8 @@"lead": "애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.","actions": [{- "label": "소주 1.10.8 다운로드",- "href": "https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip",+ "label": "소주 1.10.9 다운로드",+ "href": "https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip","primary": true}],@@ -208,7 +208,7 @@"items": [{"title": "앱 받기",- "text": "[Soju-1.10.8-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.10.8/Soju-1.10.8-macos-arm64.zip)을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."+ "text": "[Soju-1.10.9-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.10.9/Soju-1.10.9-macos-arm64.zip)을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."},{"title": "런처 고르기",diff --git a/site/content/privacy.json b/site/content/privacy.jsonindex 6c0daa1b28a..94cc5463f9b 100644--- a/site/content/privacy.json+++ b/site/content/privacy.json@@ -79,6 +79,7 @@"items": ["Soju downloads the store list and the sponsor card from didimlabs.com, and game files from Polar or GitHub.","Account connections you add (Steam, GOG and others) talk to those services directly from your Mac.",+ "If you turn on TV & iPad streaming, Soju installs Sunshine (open source, LizardByte) on your Mac. It streams only to devices you pair with a PIN on your own network, keeps its settings page on your Mac, and only contacts GitHub to check for new versions.","Soju has no analytics, ads tracking or crash reporting."]}