Skip to content

armgit / soju

Public Imported from GitHub
0

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.

EA app, Rockstar Games Launcher and Ubisoft Connect (#89)

Mikek95110ca9051f
diff --git a/README.ko.md b/README.ko.md
index 740cbf49cba..9ed772df6bd 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -4,11 +4,11 @@
> **Apple Silicon 맥에서 Windows 게임을 하는 무료 오픈소스 앱.**
-Soju는 M1 이후 맥에 **Battle.net·Steam·Epic Games·GOG GALAXY** 공식 Windows 런처를 설치하고, 런처마다 Wine 환경을 따로 두고, 게임을 맥 라이브러리 한 곳에 모아 보여줍니다. CrossOver 없이 Battle.net과 디아블로 2: 레저렉션을 돌리려고 시작한 프로젝트입니다.
+Soju는 M1 이후 맥에 **Battle.net·Steam·Epic Games·GOG GALAXY·EA 앱·Rockstar Games Launcher·Ubisoft Connect** 공식 Windows 런처를 설치하고, 런처마다 Wine 환경을 따로 두고, 게임을 맥 라이브러리 한 곳에 모아 보여줍니다. CrossOver 없이 Battle.net과 디아블로 2: 레저렉션을 돌리려고 시작한 프로젝트입니다.
![Soju 통합 게임 라이브러리](docs/assets/soju-library.png)
-**[Soju 1.10.13 맥 앱 받기](https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip)**, 또는 터미널에서 설치:
+**[Soju 1.11.0 맥 앱 받기](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip)**, 또는 터미널에서 설치:
```bash
brew install BCD1210/soju/soju
@@ -37,6 +37,9 @@ soju install
| Battle.net | ✅ | ✅ | Agent 동작, `BLZBNTBNA00000005`는 서명 exe 시딩으로 해결 |
| Epic Games Launcher | ✅ | ✅ | 창을 닫으면 메뉴바 트레이로 |
| GOG GALAXY | ✅ | ✅ | 로그인·라이브러리까지, 게임은 아직 폭넓게 테스트 안 됨 |
+| EA 앱 | 로그인 창 | 아직 테스트 안 함 | 1.11 신규, 런처 엔진(DXMT) |
+| Rockstar Games Launcher | 로그인 창 | 아직 테스트 안 함 | 1.11 신규, 런처 엔진(DXMT) |
+| Ubisoft Connect | 로그인 창 | 아직 테스트 안 함 | 1.11 신규, 런처 엔진(DXMT) |
| Steam (Windows 클라이언트) | ✅ | ✅ | 별도 Wine 11 + DXMT 보틀 |
| Xbox PC / Microsoft Store | ✅ | ✅ | Xodus 백엔드, 게임 실행은 실험 기능 (Retro Classics 메뉴까지 확인) |
@@ -61,12 +64,12 @@ Homebrew로도 됩니다:
```bash
brew install BCD1210/soju/soju
-soju install # 이후: soju battlenet / soju d2r / soju steam / soju epic / soju gog
+soju install # 이후: soju battlenet / soju d2r / soju steam / soju epic / soju gog / soju ea / soju rockstar / soju ubisoft
```
설치기는 **다운로드 전에 원하는 런처부터 선택**합니다. 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.13/Soju-1.10.13-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.
+[Soju 맥 앱 다운로드](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.
## 일상 명령
@@ -139,6 +142,16 @@ scripts/play.sh epic-kill # Epic 보틀 종료 (창을 닫으면 런처
검증 2026-08-30: 런처에서 Hogwarts Legacy 71GB 설치 후 인게임까지(UE4, D3DMetal 경유 D3D12). 알아두실 점 두 가지: 한글/일본어/중국어 입력기는 이제 상관없습니다(engine-v1.5부터 Windows처럼 입력기 밑의 영문 레이아웃으로 키 테이블을 만들어서, 게임 중 한글로 바꿨다 돌아와도 됩니다). 게임이 전체화면으로 뜨면 게임 자체 디스플레이 설정에서 창 모드로 바꾸면 됩니다(Soju가 강제하지 않습니다). wine 11.0의 알려진 문제 하나: 여러 Wine 창(런처, 게임, 다른 보틀)을 오간 뒤 게임이 키보드 입력을 못 받는 경우가 있으며 재시작해야 풀립니다. upstream은 wine 11.11에서 수정했습니다.
+### EA 앱, Rockstar Games Launcher, Ubisoft Connect
+
+```bash
+soju ea-install # 또는 rockstar-install / ubisoft-install: 별도 보틀, 공식 설치 프로그램
+soju ea # 또는 rockstar / ubisoft: 로그인, 게임 설치, 실행
+soju ea-kill # 또는 rockstar-kill / ubisoft-kill
+```
+
+검증 2026-11-10: 세 런처 모두 설치와 로그인 창까지(계정 로그인과 게임은 아직 테스트 안 함). 이 런처들의 창은 Chromium 브라우저이고, GPU 프로세스가 다른 프로세스의 창에 그림을 그립니다. Wine의 맥 드라이버는 이걸 화면에 못 내보내서 CX 엔진에서는 창이 하얗거나 까맣게 나옵니다. 그래서 맥에서 CX 엔진을 복제(APFS 복제라 디스크를 더 쓰지 않음)한 두 번째 엔진에서 돌립니다. 여기에 launcher-support 구성요소, 즉 `patches/winemac-cross-process-swapchains.patch`(Highball, Wine 버그 60263)를 넣은 맥 드라이버와 프로세스 간 출력이 되는 Direct3D 10/11용 DXMT를 얹습니다. Battle.net·Epic·GOG는 CX 엔진을 그대로 씁니다. EA 앱은 처음 켤 때 스스로 업데이트하는데, 그 뒤 창이 비어 있으면 껐다가 다시 여세요.
+
### GOG GALAXY
```bash
diff --git a/README.md b/README.md
index 43bc7ade5a1..4b2b61c46bd 100644
--- a/README.md
+++ b/README.md
@@ -4,11 +4,11 @@
> **Play Windows games on Apple Silicon Macs. Free and open source.**
-Soju installs the official Windows launchers for **Battle.net, Steam, Epic Games and GOG GALAXY** on M1-or-newer Macs, keeps each one in its own Wine setup, and lists your games in one Mac library. It began as a way to run Battle.net and Diablo II: Resurrected without CrossOver.
+Soju installs the official Windows launchers for **Battle.net, Steam, Epic Games, GOG GALAXY, EA app, Rockstar Games Launcher and Ubisoft Connect** on M1-or-newer Macs, keeps each one in its own Wine setup, and lists your games in one Mac library. It began as a way to run Battle.net and Diablo II: Resurrected without CrossOver.
![Soju unified game library](docs/assets/soju-library.png)
-**[Download Soju 1.10.13 for Mac](https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip)**, or install from the terminal:
+**[Download Soju 1.11.0 for Mac](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip)**, or install from the terminal:
```bash
brew install BCD1210/soju/soju
@@ -37,6 +37,9 @@ All verified on an M4 Pro running macOS 26.5. Separate bottles for each launcher
| Battle.net | ✅ | ✅ | Agent works; `BLZBNTBNA00000005` fixed by the caller-signature seed |
| Epic Games Launcher | ✅ | ✅ | parks in the menu bar tray on close |
| GOG GALAXY | ✅ | ✅ | login + library; games not broadly tested yet |
+| EA app | sign-in window | not tested yet | new in 1.11; launcher engine (DXMT) |
+| Rockstar Games Launcher | sign-in window | not tested yet | new in 1.11; launcher engine (DXMT) |
+| Ubisoft Connect | sign-in window | not tested yet | new in 1.11; launcher engine (DXMT) |
| Steam (Windows client) | ✅ | ✅ | private Wine 11 + DXMT bottle |
| Xbox PC / Microsoft Store | ✅ | ✅ | Xodus backend; game launch experimental (Retro Classics reaches its menu) |
@@ -65,12 +68,12 @@ Or via Homebrew:
```bash
brew install BCD1210/soju/soju
-soju install # then: soju battlenet / soju d2r / soju steam / soju epic / soju gog
+soju install # then: soju battlenet / soju d2r / soju steam / soju epic / soju gog / soju ea / soju rockstar / soju ubisoft
```
The 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.13/Soju-1.10.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).
+[Download Soju for Mac](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-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
@@ -155,6 +158,16 @@ scripts/play.sh epic-kill # stop the Epic bottle (closing the window park
Verified 2026-08-30: 71 GB install of Hogwarts Legacy (UE4, D3D12 through D3DMetal) from the launcher, then in-game. Two things to know: a Korean/Japanese/Chinese input source no longer matters (engine-v1.5 builds the key tables from the ASCII layout the input method sits on, as Windows does, so you can switch to Korean and back mid-game); and if a game starts full screen, set windowed mode in its own display settings (Soju does not force it). One known wine 11.0 issue: after switching between several Wine windows (a launcher, a game, another bottle) a game can stop receiving keyboard input until it is restarted; upstream fixed this in wine 11.11.
+### EA app, Rockstar Games Launcher, Ubisoft Connect
+
+```bash
+soju ea-install # or rockstar-install / ubisoft-install: separate bottle, official installer
+soju ea # or rockstar / ubisoft: log in, install and play
+soju ea-kill # or rockstar-kill / ubisoft-kill
+```
+
+Verified 2026-11-10: install and sign-in window for all three (not signed in to an account; games not tested yet). Their windows are Chromium browsers whose GPU process draws into a window another process owns. Wine's Mac driver cannot present that, so on the CX engine these launchers stay white or black. They run on a second engine instead, made on your Mac from the CX engine (an APFS clone, no extra space) plus the launcher-support component: the Mac driver with `patches/winemac-cross-process-swapchains.patch` (from Highball, Wine bug 60263) and DXMT for Direct3D 10/11, which can present across processes. Battle.net, Epic and GOG keep the CX engine unchanged. The EA app updates itself on its first start; if its window then stays empty, quit it and open it again.
+
### GOG GALAXY
```bash
diff --git a/README.zh.md b/README.zh.md
index d0254af944b..5539a38df29 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -4,11 +4,11 @@
> **在 Apple Silicon Mac 上玩 Windows 游戏,免费开源。**
-Soju 在 M1 及更新的 Mac 上安装 **Battle.net、Steam、Epic Games 和 GOG GALAXY** 的官方 Windows 客户端,每个客户端使用独立的 Wine 环境,并把游戏集中显示在一个 Mac 游戏库里。项目最初是为了不用 CrossOver 也能运行战网和 Diablo II: Resurrected。
+Soju 在 M1 及更新的 Mac 上安装 **Battle.net、Steam、Epic Games、GOG GALAXY、EA app、Rockstar Games Launcher 和 Ubisoft Connect** 的官方 Windows 客户端,每个客户端使用独立的 Wine 环境,并把游戏集中显示在一个 Mac 游戏库里。项目最初是为了不用 CrossOver 也能运行战网和 Diablo II: Resurrected。
![Soju 统一游戏库](docs/assets/soju-library.png)
-**[下载 Soju 1.10.13(Mac)](https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip)**,或在终端安装:
+**[下载 Soju 1.11.0(Mac)](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip)**,或在终端安装:
```bash
brew install BCD1210/soju/soju
@@ -37,6 +37,9 @@ soju install
| 战网(Battle.net) | ✅ | ✅ | Agent 正常;`BLZBNTBNA00000005` 通过签名 exe 播种解决 |
| Epic Games Launcher | ✅ | ✅ | 关闭窗口后驻留菜单栏托盘 |
| GOG GALAXY | ✅ | ✅ | 登录和游戏库可用;游戏尚未广泛测试 |
+| EA app | 登录窗口 | 尚未测试 | 1.11 新增,启动器引擎(DXMT) |
+| Rockstar Games Launcher | 登录窗口 | 尚未测试 | 1.11 新增,启动器引擎(DXMT) |
+| Ubisoft Connect | 登录窗口 | 尚未测试 | 1.11 新增,启动器引擎(DXMT) |
| Steam(Windows 客户端) | ✅ | ✅ | 独立的 Wine 11 + DXMT bottle |
| Xbox PC / Microsoft Store | ✅ | ✅ | Xodus 后端;游戏启动为实验功能(Retro Classics 可进入主菜单) |
@@ -61,12 +64,12 @@ curl -fsSL didimlabs.com/install.sh | bash
```bash
brew install BCD1210/soju/soju
-soju install # 然后:soju battlenet / soju d2r / soju steam / soju epic / soju gog
+soju install # 然后:soju battlenet / soju d2r / soju steam / soju epic / soju gog / soju ea / soju rockstar / soju ubisoft
```
安装器会**先询问要安装哪些启动器,再下载对应组件**。仅选择 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.13/Soju-1.10.13-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。
+[下载 Soju Mac 应用](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。
## 日常维护
@@ -145,6 +148,16 @@ scripts/play.sh epic-kill # 停止 Epic bottle(关窗口会缩到菜单
2026-08-30 验证:从登录器安装 71 GB 的《霍格沃茨之遗》(UE4,D3D12 走 D3DMetal),进入游戏。两点提示:中日韩输入法已经不影响了(engine-v1.5 起像 Windows 一样,用输入法底下的英文布局生成键表,游戏中切到中文再切回来也没问题);如果游戏以全屏启动,请在游戏自己的显示设置里改成窗口模式(Soju 不强制)。wine 11.0 的一个已知问题:在多个 Wine 窗口(登录器、游戏、另一个 bottle)之间切换几次后,游戏可能收不到键盘输入,重启游戏即可;上游在 wine 11.11 修复。
+### EA app、Rockstar Games Launcher、Ubisoft Connect
+
+```bash
+soju ea-install # 或 rockstar-install / ubisoft-install:独立 bottle,官方安装程序
+soju ea # 或 rockstar / ubisoft:登录、安装和游玩
+soju ea-kill # 或 rockstar-kill / ubisoft-kill
+```
+
+2026-11-10 验证:三个客户端都能安装并打开登录窗口(未登录账户,游戏尚未测试)。它们的窗口是 Chromium 浏览器,GPU 进程把画面画到另一个进程的窗口里,Wine 的 Mac 驱动无法显示,所以在 CX 引擎上窗口是白色或黑色。因此它们运行在第二个引擎上:在你的 Mac 上从 CX 引擎克隆(APFS 克隆,不额外占用空间),再加上 launcher-support 组件,即带 `patches/winemac-cross-process-swapchains.patch`(来自 Highball,Wine bug 60263)的 Mac 驱动,以及可跨进程显示的 Direct3D 10/11 DXMT。战网、Epic 和 GOG 仍使用原来的 CX 引擎。EA app 首次启动会自我更新;之后如果窗口是空的,退出再打开即可。
+
### GOG GALAXY
```bash
diff --git a/VERSION b/VERSION
index fb0f39ef5fd..1cac385c6cb 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.10.13
+1.11.0
diff --git a/app/Library.swift b/app/Library.swift
index 1aaf73cc710..3ccd0f610da 100644
--- a/app/Library.swift
+++ b/app/Library.swift
@@ -227,6 +227,9 @@ private extension Launcher {
case .steam: return Color(red: 0.36, green: 0.67, blue: 0.77)
case .epic: return Color(red: 0.82, green: 0.64, blue: 0.40)
case .gog: return Color(red: 0.70, green: 0.47, blue: 0.87)
+ case .ea: return Color(red: 0.29, green: 0.42, blue: 0.95)
+ case .rockstar: return Color(red: 0.96, green: 0.70, blue: 0.20)
+ case .ubisoft: return Color(red: 0.36, green: 0.55, blue: 0.98)
case .xbox: return Color(red: 0.24, green: 0.66, blue: 0.33)
case .didim: return Color(red: 0.79, green: 0.36, blue: 0.27)
}
diff --git a/app/Soju.swift b/app/Soju.swift
index 5d6f513118a..0715935c21d 100644
--- a/app/Soju.swift
+++ b/app/Soju.swift
@@ -3,7 +3,7 @@ import AppKit
import UniformTypeIdentifiers
enum Launcher: String, CaseIterable, Identifiable {
- case battlenet, steam, epic, gog, xbox, didim
+ case battlenet, steam, epic, gog, ea, rockstar, ubisoft, xbox, didim
var id: String { rawValue }
/// Platforms with something to install on the Platforms page (not native Didim Labs games).
static var installable: [Launcher] { allCases.filter { $0 != .didim } }
@@ -15,6 +15,9 @@ enum Launcher: String, CaseIterable, Identifiable {
case .steam: return "Steam"
case .epic: return "Epic Games"
case .gog: return "GOG GALAXY"
+ case .ea: return "EA app"
+ case .rockstar: return "Rockstar Games"
+ case .ubisoft: return "Ubisoft Connect"
case .xbox: return "Xbox PC"
case .didim: return "Didim Labs"
}
@@ -22,6 +25,7 @@ enum Launcher: String, CaseIterable, Identifiable {
var detail: String {
switch self {
case .steam: return "Windows library · D3D11 with DXMT"
+ case .ea, .rockstar, .ubisoft: return "Windows library · DXMT, new"
case .xbox: return "Microsoft Store library · experimental"
case .didim: return "Native Mac games"
default: return "Windows library · Apple D3DMetal"
@@ -33,6 +37,9 @@ enum Launcher: String, CaseIterable, Identifiable {
switch self {
case .steam: return "Steam account"
case .gog: return "GOG account"
+ case .ea: return "EA account"
+ case .rockstar: return "Rockstar Games account"
+ case .ubisoft: return "Ubisoft account"
case .epic: return "Epic account"
case .battlenet: return "Blizzard account"
case .xbox: return "Microsoft account"
@@ -55,6 +62,9 @@ enum Launcher: String, CaseIterable, Identifiable {
case .steam: return "gamecontroller.fill"
case .epic: return "shield.lefthalf.filled"
case .gog: return "square.grid.2x2.fill"
+ case .ea: return "e.circle.fill"
+ case .rockstar: return "star.circle.fill"
+ case .ubisoft: return "u.circle.fill"
case .xbox: return "xbox.logo"
case .didim: return "cat.fill"
}
@@ -65,6 +75,10 @@ enum Launcher: String, CaseIterable, Identifiable {
case .steam: return "steam-bottle/drive_c/Program Files (x86)/Steam/steam.exe"
case .epic: return "epic-bottle/drive_c/Program Files/Epic Games/Launcher/Portal/Binaries/Win64/EpicGamesLauncher.exe"
case .gog: return "gog-bottle/drive_c/Program Files/GOG Galaxy/GalaxyClient.exe"
+ // The client sits behind a junction only Wine resolves; the folder is the install.
+ case .ea: return "ea-bottle/drive_c/Program Files/Electronic Arts/EA Desktop"
+ case .rockstar: return "rockstar-bottle/drive_c/Program Files/Rockstar Games/Launcher/Launcher.exe"
+ case .ubisoft: return "ubisoft-bottle/drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe"
case .xbox: return "xbox-bottle/drive_c/ProgramData/Soju/xbox.json"
case .didim: return "didim-games"
}
diff --git a/docs/DESKTOP.md b/docs/DESKTOP.md
index 788e2fefd1a..043af2c4eb8 100644
--- a/docs/DESKTOP.md
+++ b/docs/DESKTOP.md
@@ -1,6 +1,6 @@
# Soju for Mac
-[Download v1.10.13](https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip)
+[Download v1.11.0](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-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.html
index 031fbd5ba41..e805708fd8d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -3,15 +3,15 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Soju – play Windows games from Steam, Battle.net, Epic, GOG and Xbox on Apple Silicon Macs</title>
-<meta name="description" content="Soju is a free, open-source Mac app from Didim Labs that installs the official Windows launchers (Steam, Battle.net, Epic, GOG, Xbox PC) on M1–M4 Macs and puts all your games in one library.">
+<title>Soju – play Windows games from Steam, Battle.net, Epic, GOG, EA, Rockstar, Ubisoft and Xbox on Apple Silicon Macs</title>
+<meta name="description" content="Soju is a free, open-source Mac app from Didim Labs that installs the official Windows launchers (Steam, Battle.net, Epic, GOG, EA app, Rockstar, Ubisoft Connect, Xbox PC) on M1–M4 Macs and puts all your games in one library.">
<link rel="canonical" href="https://didimlabs.com/">
<link rel="alternate" hreflang="en" href="https://didimlabs.com/">
<link rel="alternate" hreflang="ko" href="https://didimlabs.com/ko/">
<link rel="alternate" hreflang="x-default" href="https://didimlabs.com/">
<meta property="og:site_name" content="Didim Labs">
<meta property="og:title" content="Soju: Windows game launchers on Apple Silicon Macs">
-<meta property="og:description" content="Free, open-source. Steam, Battle.net, Epic, GOG and Xbox PC games in one Mac library.">
+<meta property="og:description" content="Free, open-source. Steam, Battle.net, Epic, GOG, EA, Rockstar, Ubisoft and Xbox PC games in one Mac library.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://didimlabs.com/">
<meta property="og:image" content="https://didimlabs.com/assets/soju-share.png">
@@ -54,9 +54,9 @@
"@id": "https://didimlabs.com/#soju",
"name": "Soju",
"url": "https://didimlabs.com/",
- "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip",
- "softwareVersion": "1.10.13",
- "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.",
+ "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip",
+ "softwareVersion": "1.11.0",
+ "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)",
"license": "https://www.gnu.org/licenses/gpl-3.0.html",
@@ -89,7 +89,7 @@
"@type": "HowToStep",
"position": 1,
"name": "Download the app",
- "text": "Soju-1.10.13-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."
+ "text": "Soju-1.11.0-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."
},
{
"@type": "HowToStep",
@@ -177,11 +177,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=20261110b"/><link rel="preload" as="image" href="assets/soju-library.png?v=20261110b" 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 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.13/Soju-1.10.13-macos-arm64.zip">Download Soju 1.10.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>Xbox PC</li></ul></div><img src="assets/soju-app-icon.png?v=20261110b" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="assets/soju-library.png?v=20261110b" alt="Soju 1.10 library with Diablo II: Resurrected, Don&#x27;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&#x27; sources</a> with Apple&#x27;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&#x27;t bundle games or store clients, and it downloads Apple&#x27;s Game Porting Toolkit files during setup.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">Games we&#x27;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><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">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&#x27;t run. The Steam edition of Diablo II: Resurrected hasn&#x27;t been checked.</p><figure class="video"><video controls="" playsInline="" preload="none" poster="assets/soju-gameplay-demo-poster.jpg?v=20261110b" 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=20261110b" 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&#x27;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&#x27;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&#x27;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.10.13/Soju-1.10.13-macos-arm64.zip">Soju-1.10.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&#x27;s Game Porting Toolkit</a>; Soju downloads Apple&#x27;s files and checks Apple&#x27;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&#x27;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=20261110b"/><link rel="preload" as="image" href="assets/soju-library.png?v=20261110b" 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.11.0/Soju-1.11.0-macos-arm64.zip">Download Soju 1.11.0</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=20261110b" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="assets/soju-library.png?v=20261110b" alt="Soju 1.10 library with Diablo II: Resurrected, Don&#x27;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&#x27; sources</a> with Apple&#x27;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&#x27;t bundle games or store clients, and it downloads Apple&#x27;s Game Porting Toolkit files during setup.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">Games we&#x27;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><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">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&#x27;t run. The Steam edition of Diablo II: Resurrected hasn&#x27;t been checked.</p><figure class="video"><video controls="" playsInline="" preload="none" poster="assets/soju-gameplay-demo-poster.jpg?v=20261110b" 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=20261110b" 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&#x27;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&#x27;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&#x27;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.11.0/Soju-1.11.0-macos-arm64.zip">Soju-1.11.0-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&#x27;s Game Porting Toolkit</a>; Soju downloads Apple&#x27;s files and checks Apple&#x27;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&#x27;ll need Rosetta 2, the Xcode Command Line Tools and Homebrew.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash
# or
brew 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="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/steam-windows-client-apple-silicon.html">The Windows Steam client on Apple Silicon</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&#x27;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&#x27;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&#x27;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&#x27; 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&#x27;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=20261110b" 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.10.13/Soju-1.10.13-macos-arm64.zip">Download Soju 1.10.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&#x27;s out, nothing else." data-failed="Couldn&#x27;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="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/steam-windows-client-apple-silicon.html">The Windows Steam client on Apple Silicon</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&#x27;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&#x27;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&#x27;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&#x27; 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&#x27;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=20261110b" 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.11.0/Soju-1.11.0-macos-arm64.zip">Download Soju 1.11.0</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&#x27;s out, nothing else." data-failed="Couldn&#x27;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.html
index bd4cabf4d20..1d42c31305c 100644
--- a/docs/ko/index.html
+++ b/docs/ko/index.html
@@ -4,14 +4,14 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>소주(Soju) – 애플 실리콘 맥에서 스팀·배틀넷·에픽·GOG·Xbox 윈도우 게임 실행</title>
-<meta name="description" content="소주는 Didim Labs가 만든 무료 오픈소스 맥 앱입니다. M1~M4 맥에 스팀, 배틀넷, 에픽, GOG, Xbox PC 윈도우 런처를 설치하고 모든 게임을 한 라이브러리에서 실행합니다.">
+<meta name="description" content="소주는 Didim Labs가 만든 무료 오픈소스 맥 앱입니다. M1~M4 맥에 스팀, 배틀넷, 에픽, GOG, EA, 락스타, 유비소프트, Xbox PC 윈도우 런처를 설치하고 모든 게임을 한 라이브러리에서 실행합니다.">
<link rel="canonical" href="https://didimlabs.com/ko/">
<link rel="alternate" hreflang="ko" href="https://didimlabs.com/ko/">
<link rel="alternate" hreflang="en" href="https://didimlabs.com/">
<link rel="alternate" hreflang="x-default" href="https://didimlabs.com/">
<meta property="og:site_name" content="Didim Labs">
<meta property="og:title" content="소주: 맥에서 윈도우 게임 런처 실행">
-<meta property="og:description" content="무료 오픈소스. 스팀, 배틀넷, 에픽, GOG, Xbox PC 게임을 맥 라이브러리 하나로.">
+<meta property="og:description" content="무료 오픈소스. 스팀, 배틀넷, 에픽, GOG, EA, 락스타, 유비소프트, Xbox PC 게임을 맥 라이브러리 하나로.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://didimlabs.com/ko/">
<meta property="og:image" content="https://didimlabs.com/assets/soju-share.png">
@@ -35,7 +35,7 @@
"@type": "HowToStep",
"position": 1,
"name": "앱 받기",
- "text": "Soju-1.10.13-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
+ "text": "Soju-1.11.0-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
},
{
"@type": "HowToStep",
@@ -114,11 +114,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=20261110b"/><link rel="preload" as="image" href="../assets/soju-library.png?v=20261110b" 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, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip">소주 1.10.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>Xbox PC</li></ul></div><img src="../assets/soju-app-icon.png?v=20261110b" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="../assets/soju-library.png?v=20261110b" 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="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">에픽</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.10.13/Soju-1.10.13-macos-arm64.zip">Soju-1.10.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
+<link rel="preload" as="image" href="../assets/soju-app-icon.png?v=20261110b"/><link rel="preload" as="image" href="../assets/soju-library.png?v=20261110b" 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.11.0/Soju-1.11.0-macos-arm64.zip">소주 1.11.0 다운로드</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=20261110b" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="../assets/soju-library.png?v=20261110b" 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="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">에픽</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.11.0/Soju-1.11.0-macos-arm64.zip">Soju-1.11.0-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=20261110b" 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.10.13/Soju-1.10.13-macos-arm64.zip">소주 1.10.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');
+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=20261110b" 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.11.0/Soju-1.11.0-macos-arm64.zip">소주 1.11.0 다운로드</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.txt
index f12f179dda2..a45ec54bb6c 100644
--- a/docs/llms.txt
+++ b/docs/llms.txt
@@ -3,13 +3,13 @@
> Didim Labs makes Soju, a free open-source Mac app for running Windows game launchers on Apple Silicon, and small games for Mac and Windows.
## Soju
-- What it is: Soju is a Mac app (with a `soju` command-line tool) that installs the official Windows launchers for Battle.net, Steam, Epic Games, GOG GALAXY and Xbox PC on Apple Silicon and lists their games in one library. This Soju is the game launcher from Didim Labs; it is not the soju IRC bouncer and not the Korean drink.
+- What it is: Soju is a Mac app (with a `soju` command-line tool) that installs the official Windows launchers for Battle.net, Steam, Epic Games, GOG GALAXY, EA app, Rockstar Games Launcher, Ubisoft Connect and Xbox PC on Apple Silicon and lists their games in one library. This Soju is the game launcher from Didim Labs; it is not the soju IRC bouncer and not the Korean drink.
- Problems it solves: Diablo II: Resurrected hanging at launch on M-series Macs (its loader needs AVX, which Rosetta 2 only advertises when ROSETTA_ADVERTISE_AVX=1 is set); Battle.net error BLZBNTBNA00000005 on free Wine builds; the Windows Steam client showing a black window under Wine.
- Since 1.10.11 the app is signed with a Developer ID and notarized by Apple. Since 1.10.13 it downloads Apple's Game Porting Toolkit files itself, so no Apple ID download is needed.
- [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.13
-- 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+.
+- [Source code and releases](https://github.com/BCD1210/soju): GPL-3.0-or-later; current version 1.11.0
+- 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/install.sh b/install.sh
index 0b13199f362..e0351c4c993 100644
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Soju one-line installer: Battle.net, Steam, Epic and GOG launchers (plus Xbox PC, experimental) on Apple Silicon, no CrossOver.
+# Soju one-line installer: Battle.net, Steam, Epic, GOG, EA app, Rockstar and Ubisoft Connect launchers (plus Xbox PC, experimental) on Apple Silicon, no CrossOver.
# curl -fsSL didimlabs.com/install.sh | bash
# curl -fsSL https://didimlabs.com/install.sh | SOJU_PLATFORMS=battlenet,epic,gog bash (non-interactive selection)
#
@@ -66,7 +66,7 @@ latest_release(){
}
# ---------- 1. Choose launchers before any download ----------
-ALL="battlenet steam epic gog xbox"
+ALL="battlenet steam epic gog xbox ea rockstar ubisoft"
if [ -n "${SOJU_PLATFORMS:-}" ]; then
PLATFORMS="$(echo "$SOJU_PLATFORMS" | tr ',' ' ')"
else
@@ -78,6 +78,9 @@ else
4) GOG GALAXY
5) Xbox PC / Microsoft Store (Xodus backend, experimental: sign-in, library,
downloads and play on the CX engine; builds from source, a few minutes)
+ 6) EA app
+ 7) Rockstar Games Launcher
+ 8) Ubisoft Connect
EOT
read -r -p " Your choice [1]: " choice < "$TTY" || choice=1
[ -n "$choice" ] || choice=1
@@ -89,6 +92,9 @@ EOT
3|epic) PLATFORMS="$PLATFORMS epic" ;;
4|gog) PLATFORMS="$PLATFORMS gog" ;;
5|xbox) PLATFORMS="$PLATFORMS xbox" ;;
+ 6|ea) PLATFORMS="$PLATFORMS ea" ;;
+ 7|rockstar) PLATFORMS="$PLATFORMS rockstar" ;;
+ 8|ubisoft) PLATFORMS="$PLATFORMS ubisoft" ;;
*) echo "Unknown choice: $c"; exit 64 ;;
esac
done
@@ -171,7 +177,7 @@ carry_gptk(){ # from, to
fi
done
}
-# ---------- 2. Engine (Battle.net / Epic / GOG only) ----------
+# ---------- 2. Engine (every platform but Steam) ----------
if [ "$NEEDS_CX" = 1 ]; then
# bin/wine alone can be left behind by an interrupted extract; only an engine
# that actually starts counts as present.
@@ -199,7 +205,7 @@ fi
fi # NEEDS_CX
-# ---------- Apple GPTK (Battle.net / Epic / GOG only) ----------
+# ---------- Apple GPTK (every platform but Steam) ----------
if [ "$NEEDS_CX" = 1 ]; then
# scripts/get-gptk.sh finds the payload (mounted toolkit dmg, or CrossOver),
# verifies every file (Apple's signature on the Mach-O parts, known Apple
@@ -276,6 +282,10 @@ for p in $PLATFORMS; do
xbox)
say "Xbox PC: building the Xodus backend from source (Rust; a few minutes the first time)"
bash "$SOJU_DIR/scripts/xbox.sh" install ;;
+ ea|rockstar|ubisoft)
+ case "$p" in ea) n="EA app" ;; rockstar) n="Rockstar Games Launcher" ;; *) n="Ubisoft Connect" ;; esac
+ say "$n: creating the bottle + running the official installer"
+ SOJU_BASE="$BASE" SOJU_CX_ENGINE="$ENGINE" bash "$SOJU_DIR/scripts/create-launcher-bottle.sh" "$p" ;;
esac
# The client EXE does not prove its helper build completed.
case "$p" in
@@ -314,12 +324,15 @@ for p in $PLATFORMS; do
steam) make_app "Steam (Windows)" steam app.soju.steam ;;
epic) make_app "Epic Games Launcher" epic app.soju.epic ;;
gog) make_app "GOG GALAXY" gog app.soju.gog ;;
+ ea) make_app "EA app" ea app.soju.ea ;;
+ rockstar) make_app "Rockstar Games Launcher" rockstar app.soju.rockstar ;;
+ ubisoft) make_app "Ubisoft Connect" ubisoft app.soju.ubisoft ;;
xbox) echo " Xbox PC has no launcher app: sign in from Soju > Accounts, or run soju xbox-login" ;;
esac
done
say "Done! 🍶 Double-click the app(s) above, log in, install and play."
-echo "Command line: $SOJU_DIR/scripts/soju (battlenet | d2r | kill | epic | epic-kill | gog | gog-kill | steam | steam-kill | doctor | update)"
+echo "Command line: $SOJU_DIR/scripts/soju (battlenet | d2r | kill | epic | gog | ea | rockstar | ubisoft | steam | <name>-kill | doctor | update)"
[ "$NEEDS_CX" = 0 ] || GPTK_OK || echo "NOTE: GPTK was skipped - before launching a game, mount the GPTK dmg and run: $SOJU_DIR/scripts/soju gptk"
echo
echo "Something broke? Run 'soju doctor' and paste its output in an issue: https://github.com/BCD1210/soju/issues"
diff --git a/patches/winemac-cross-process-swapchains.patch b/patches/winemac-cross-process-swapchains.patch
new file mode 100644
index 00000000000..ddb44464c5d
--- /dev/null
+++ b/patches/winemac-cross-process-swapchains.patch
@@ -0,0 +1,1437 @@
+Soju: taken from Highball (github.com/gauthierpiarrette/highball-engine, LGPL-2.1,
+patches/0007-winemac-cross-process-child-swapchains.patch), unchanged below this note.
+Used for the EA app, Rockstar Games Launcher and Ubisoft Connect engine (scripts/launcher-engine.sh).
+
+Highball: winemac.drv presents a Metal swapchain for a window whose root another process owns.
+
+Wine bug 60263. A CEF GPU process (Rockstar's SocialClubHelper, Steam's steamwebhelper, Ubisoft
+Connect) asks D3DMetal/DXMT for a swapchain on a child window whose root window belongs to the
+CEF browser process. The driver's win data is per process, so get_win_data() cannot see the
+root, the macdrv_functions shim handed DXMT no view, the swapchain failed and Chromium restarted
+the GPU process until it gave up: a black launcher window. Launch switches do not help.
+
+The rendering process now draws into a CAMetalLayer exported through a CAContext, and the
+process that owns the root window hosts that layer in its content view through a CALayerHost,
+positioned on the child's rect, clipped to it, stacked in Win32 paint order and kept in place
+as the child and the root move. This is upstream Wine's CAContext/CALayerHost route (11.11+,
+reached there only from vulkan.c) backported to this wine-11.0 base, plus the child window
+geometry, z-order, 0x0 and lifetime handling from the bug's reference patch, wired into the
+macdrv_functions shim that D3DMetal and DXMT use, so DXMT needs no change. Messages:
+WM_MACDRV_CREATE_REMOTE_LAYER / RELEASE / UPDATE, posted to the root window's owner. vulkan.c
+takes the same route through macdrv_client_surface_acquire_metal_swapchain().
+
+Applies on top of 0001-0003, 0005 and 0006 with 0004 (the overlay-window attempt at the same
+problem) dropped; none of those touch dlls/winemac.drv. Compile-checked with clang -fsyntax-only
+against the CrossOver 26.3 include tree and link-checked for the private CoreAnimation symbols;
+not yet run. Upstream status: bug open, reference implementation attached to the bug by its
+author, not submitted.
+
+--- a/dlls/winemac.drv/macdrv.h
++++ b/dlls/winemac.drv/macdrv.h
+@@ -100,6 +100,12 @@
+ {
+ WM_MACDRV_SET_WIN_REGION = WM_WINE_FIRST_DRIVER_MSG,
+ WM_MACDRV_ACTIVATE_ON_FOLLOWING_FOCUS,
++ /* Highball: cross-process Metal swapchains (Wine bug 60263). Posted to the window that owns
++ * the NSWindow; wParam is the child hwnd the layer belongs to (0 for the window itself),
++ * lParam the CAContext id. */
++ WM_MACDRV_CREATE_REMOTE_LAYER,
++ WM_MACDRV_RELEASE_REMOTE_LAYER,
++ WM_MACDRV_UPDATE_REMOTE_LAYER,
+ };
+
+ struct macdrv_thread_data
+@@ -194,17 +200,21 @@
+ unsigned int per_pixel_alpha : 1; /* is window using per-pixel alpha? */
+ unsigned int minimized : 1; /* is window minimized? */
+ unsigned int fullscreen : 1; /* is the window visible rect fullscreen? (unrelated to native AppKit/Cocoa fullscreen) */
++ unsigned int remote_swapchain : 1; /* Highball: renders into a layer hosted by the root's owner (another process) */
+
+ /* CW HACK 22435 */
+ CFMutableArrayRef d3dmetal_client_surfaces;
++
++ /* Highball: CAContextID -> child HWND for the cross-process layers hosted on this window,
++ * so they can be repositioned and restacked as the children move (Wine bug 60263). */
++ CFMutableDictionaryRef remote_layer_children;
+ };
+
+ struct macdrv_client_surface
+ {
+ struct client_surface client;
+ macdrv_view cocoa_view;
+- macdrv_metal_device metal_device;
+- macdrv_metal_view metal_view;
++ macdrv_metal_swapchain metal_swapchain;
+ };
+
+ static inline struct macdrv_client_surface *impl_from_client_surface(struct client_surface *client)
+@@ -213,6 +223,9 @@
+ }
+
+ extern struct macdrv_client_surface *macdrv_client_surface_create(HWND hwnd);
++extern BOOL macdrv_client_surface_acquire_metal_swapchain(struct macdrv_client_surface *surface,
++ macdrv_metal_device device);
++extern BOOL macdrv_window_has_foreign_root(HWND hwnd, HWND *root);
+
+ extern struct macdrv_win_data *get_win_data(HWND hwnd);
+ extern void release_win_data(struct macdrv_win_data *data);
+--- a/dlls/winemac.drv/macdrv_cocoa.h
++++ b/dlls/winemac.drv/macdrv_cocoa.h
+@@ -122,6 +122,7 @@
+ typedef struct macdrv_opaque_metal_device* macdrv_metal_device;
+ typedef struct macdrv_opaque_metal_view* macdrv_metal_view;
+ typedef struct macdrv_opaque_metal_layer* macdrv_metal_layer;
++typedef struct macdrv_opaque_metal_swapchain* macdrv_metal_swapchain;
+ typedef struct macdrv_opaque_status_item* macdrv_status_item;
+ struct macdrv_event;
+ struct macdrv_query;
+@@ -559,6 +560,19 @@
+ extern macdrv_metal_view macdrv_view_create_metal_view(macdrv_view v, macdrv_metal_device d);
+ extern macdrv_metal_layer macdrv_view_get_metal_layer(macdrv_metal_view v);
+ extern void macdrv_view_release_metal_view(macdrv_metal_view v);
++/* Highball: Metal swapchains that can live in a window another process owns (Wine bug 60263) */
++extern macdrv_metal_swapchain macdrv_create_view_swapchain(macdrv_view v, macdrv_metal_device device);
++extern macdrv_metal_swapchain macdrv_create_offscreen_swapchain(void* hwnd, void* child, CGRect bounds,
++ macdrv_metal_device device);
++extern macdrv_metal_layer macdrv_swapchain_get_layer(macdrv_metal_swapchain swapchain);
++extern void macdrv_destroy_swapchain(macdrv_metal_swapchain swapchain);
++extern void macdrv_window_create_ca_layer_host_view(macdrv_window w, unsigned int context_id,
++ CGRect frame, double zpos, int zpos_valid);
++extern void macdrv_window_update_ca_layer_host_frame(macdrv_window w, unsigned int context_id,
++ CGRect frame, double zpos, int zpos_valid);
++extern void macdrv_window_release_ca_layer_host_view(macdrv_window w, unsigned int context_id);
++extern void macdrv_create_remote_layer(void* hwnd, void* child, unsigned int context_id);
++extern void macdrv_release_remote_layer(void* hwnd, unsigned int context_id);
+ extern bool macdrv_get_view_backing_size(macdrv_view v, int backing_size[2]);
+ extern void macdrv_set_view_backing_size(macdrv_view v, const int backing_size[2]);
+ extern uint32_t macdrv_window_background_color(void);
+--- a/dlls/winemac.drv/cocoa_window.m
++++ b/dlls/winemac.drv/cocoa_window.m
+@@ -43,10 +43,31 @@
+ * NSWindowStyleMaskNonactivatingPanel.
+ * Available since at least macOS 10.6. */
+ - (void)_setPreventsActivation:(BOOL)flag;
++
++@end
++
++/* Highball: private CoreAnimation API used to host a layer rendered by another process
++ * (Wine bug 60263). Backported from upstream Wine 11.11+ (dlls/winemac.drv/cocoa_window.m). */
++typedef uint32_t CGSConnectionID;
++extern CGSConnectionID CGSMainConnectionID(void);
++
++typedef uint32_t CAContextID;
++
++@interface CAContext : NSObject
++
+++ (id) contextWithCGSConnection:(CGSConnectionID)connection options:(NSDictionary*)options;
++@property(readonly) CAContextID contextId;
++@property(retain) CALayer* layer;
+
+ @end
+
++@interface CALayerHost : CALayer
+
++- (void) setContextId:(CAContextID)contextId;
++
++@end
++
++
+ static NSUInteger style_mask_for_features(const struct macdrv_window_features* wf)
+ {
+ NSUInteger style_mask;
+@@ -375,6 +396,7 @@
+ int backingSize[2];
+
+ WineMetalView *_metalView;
++ NSMutableDictionary<NSNumber*, CALayerHost*>* _caLayerHosts; /* Highball: Wine bug 60263 */
+
+ @public void *d3dmetal_client_surface; /* CW HACK 22435 */
+ }
+@@ -389,6 +411,10 @@
+ - (void) wine_setBackingSize:(const int*)newBackingSize;
+
+ - (WineMetalView*) newMetalViewWithDevice:(id<MTLDevice>)device;
++ - (void) addCALayerHostViewWithContextId:(CAContextID)contextId frame:(CGRect)frame;
++ - (void) updateCALayerHostFrame:(CAContextID)contextId frame:(CGRect)frame;
++ - (void) setCALayerHostZPosition:(CAContextID)contextId zPosition:(double)zpos;
++ - (void) removeCALayerHostView:(CAContextID)contextId;
+
+ @end
+
+@@ -477,6 +503,35 @@
+ @end
+
+
++/* Highball: Win32 speaks raw pixels and Cocoa points (two to one on Retina), so an odd pixel
++ * dimension is a half point, and a hosted layer that Win32 says reaches the window edge stops one
++ * device pixel short of it, showing the window beneath as a hairline. Snapped only at the edges so
++ * an interior sibling keeps its exact geometry. */
++static CGRect snap_host_frame_to_view_edges(CGRect frame, CGRect view)
++{
++ /* one device pixel in points; a fixed 1.0 would also close a gap the app asked for */
++ const CGFloat px = retina_on ? 0.5 : 1.0;
++
++ if (CGRectIsNull(frame) || CGRectIsEmpty(frame) || CGRectIsEmpty(view)) return frame;
++
++ if (frame.origin.x > 0.0 && frame.origin.x <= px)
++ {
++ frame.size.width += frame.origin.x;
++ frame.origin.x = 0.0;
++ }
++ if (frame.origin.y > 0.0 && frame.origin.y <= px)
++ {
++ frame.size.height += frame.origin.y;
++ frame.origin.y = 0.0;
++ }
++ if (CGRectGetMaxX(frame) >= view.size.width - px)
++ frame.size.width = view.size.width - frame.origin.x;
++ if (CGRectGetMaxY(frame) >= view.size.height - px)
++ frame.size.height = view.size.height - frame.origin.y;
++ return frame;
++}
++
++
+ @implementation WineContentView
+
+ @synthesize everHadGLContext = _everHadGLContext;
+@@ -499,6 +554,7 @@
+ [markedText release];
+ [glContexts release];
+ [pendingGlContexts release];
++ [_caLayerHosts release];
+ CGImageRelease(colorImage);
+ CGImageRelease(shapeImage);
+ [super dealloc];
+@@ -702,6 +758,97 @@
+ return _metalView;
+ }
+
++ /* Highball: host a layer another process renders into, keyed by its CAContext id
++ * (Wine bug 60263). frame is in points, in this view's coordinate space; CGRectNull means
++ * "no child rect supplied" and fills the view, which is the top-level window case. */
++ - (void) addCALayerHostViewWithContextId:(CAContextID)contextId frame:(CGRect)frame
++ {
++ if (!_caLayerHosts)
++ _caLayerHosts = [[NSMutableDictionary alloc] init];
++
++ [self removeCALayerHostView:contextId];
++
++ CALayerHost* host = [CALayerHost layer];
++ [host setContextId:contextId];
++ host.magnificationFilter = kCAFilterNearest;
++ host.contentsScale = retina_on ? 2.0 : 1.0;
++ frame = snap_host_frame_to_view_edges(frame, self.layer.bounds);
++ /* A host given a real child rect is positioned and clipped to it, so siblings on one
++ * window stop occluding one another. Three cases: CGRectIsEmpty cannot tell "no rect
++ * supplied" from "really 0x0", and a 0x0 layer stretched over the content view with
++ * nothing drawn in it blacks out everything below; a window with no area is hidden. */
++ if (CGRectIsNull(frame))
++ {
++ host.frame = self.layer.bounds;
++ host.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable;
++ }
++ else if (CGRectIsEmpty(frame))
++ {
++ host.frame = CGRectZero;
++ host.masksToBounds = YES;
++ host.hidden = YES;
++ }
++ else
++ {
++ host.frame = frame;
++ host.masksToBounds = YES;
++ }
++
++ [self.layer addSublayer:host];
++ [_caLayerHosts setObject:host forKey:@(contextId)];
++
++ [(WineWindow*)self.window windowDidDrawContent];
++ }
++
++ - (void) updateCALayerHostFrame:(CAContextID)contextId frame:(CGRect)frame
++ {
++ CALayerHost* host = [_caLayerHosts objectForKey:@(contextId)];
++
++ if (!host || CGRectIsNull(frame)) return;
++ frame = snap_host_frame_to_view_edges(frame, self.layer.bounds);
++ [CATransaction begin];
++ [CATransaction setDisableActions:YES];
++ if (CGRectIsEmpty(frame))
++ {
++ /* Became 0x0 while hosted: left alone, the layer keeps its last size and still
++ * covers live content. */
++ host.hidden = YES;
++ host.frame = CGRectZero;
++ }
++ else
++ {
++ /* The child it mirrors can move or resize in the other process. Visibility and
++ * geometry are independent: a window that reports 0x0 and returns to its old size
++ * must come back. */
++ if (!CGRectEqualToRect(host.frame, frame)) host.frame = frame;
++ if (host.hidden) host.hidden = NO;
++ }
++ [CATransaction commit];
++ }
++
++ /* Stack the hosted layers the way the windows they mirror stack: insertion order is not that
++ * order, since a client that recreates a swapchain on every resize puts the last-recreated
++ * layer on top of live content. */
++ - (void) setCALayerHostZPosition:(CAContextID)contextId zPosition:(double)zpos
++ {
++ CALayerHost* host = [_caLayerHosts objectForKey:@(contextId)];
++
++ if (host && host.zPosition != zpos)
++ {
++ [CATransaction begin];
++ [CATransaction setDisableActions:YES];
++ host.zPosition = zpos;
++ [CATransaction commit];
++ }
++ }
++
++ - (void) removeCALayerHostView:(CAContextID)contextId
++ {
++ NSNumber* key = @(contextId);
++ [[_caLayerHosts objectForKey:key] removeFromSuperlayer];
++ [_caLayerHosts removeObjectForKey:key];
++ }
++
+ - (void) setLayerRetinaProperties:(BOOL)mode
+ {
+ [self layer].contentsScale = mode ? 2.0 : 1.0;
+@@ -741,6 +888,9 @@
+ [self updateGLContexts];
+ [self setLayerRetinaProperties:mode];
+
++ for (CALayerHost* host in [_caLayerHosts allValues])
++ host.contentsScale = mode ? 2.0 : 1.0;
++
+ [super setRetinaMode:mode];
+ }
+
+@@ -4064,9 +4214,249 @@
+ OnMainThread(^{
+ [view removeFromSuperview];
+ [view release];
++ });
++}
++
++/* Highball: Metal swapchains (Wine bug 60263). Backported from upstream Wine 11.11+, with the
++ * child-window geometry and z-order from the bug's reference patch. A MetalViewSwapChain is the
++ * in-process case, a WineMetalView in one of our views. A CAContextSwapChain is the cross-process
++ * case: the CAMetalLayer is exported through a CAContext and the process owning the target
++ * window hosts it in its content view through a CALayerHost. */
++
++@protocol WineMetalSwapChain <NSObject>
++
++- (CAMetalLayer*) layer;
++
++@end
++
++@interface MetalViewSwapChain : NSObject <WineMetalSwapChain>
++{
++ macdrv_metal_device device;
++ macdrv_metal_view metal_view;
++}
++
++- (instancetype) initWithView:(macdrv_view)view device:(macdrv_metal_device)dev;
++
++@end
++
++@implementation MetalViewSwapChain
++
++- (instancetype) initWithView:(macdrv_view)view device:(macdrv_metal_device)dev
++{
++ self = [super init];
++ if (!self) return nil;
++
++ /* The renderer's own device when it hands one over (D3DMetal, DXMT), the system default
++ * otherwise (Vulkan). Either way one reference is ours to release. */
++ if (dev)
++ device = (macdrv_metal_device)[(id<MTLDevice>)dev retain];
++ else if (!(device = macdrv_create_metal_device()))
++ {
++ [self release];
++ return nil;
++ }
++ if (!(metal_view = macdrv_view_create_metal_view(view, device)))
++ {
++ macdrv_release_metal_device(device);
++ device = NULL;
++ [self release];
++ return nil;
++ }
++ return self;
++}
++
++- (CAMetalLayer*) layer
++{
++ return (CAMetalLayer*)macdrv_view_get_metal_layer(metal_view);
++}
++
++- (void) dealloc
++{
++ if (metal_view) macdrv_view_release_metal_view(metal_view);
++ if (device) macdrv_release_metal_device(device);
++ [super dealloc];
++}
++
++@end
++
++@interface CAContextSwapChain : NSObject <WineMetalSwapChain>
++{
++ void* hwnd; /* the window whose owner hosts the layer */
++ void* child_hwnd; /* the cross-process child this layer belongs to (may be NULL) */
++ macdrv_metal_device device;
++ CAMetalLayer* offscreen_layer;
++ CAContext* remote_context;
++ CAContextID context_id;
++}
++
++- (instancetype) initWithHwnd:(void*)hwnd child:(void*)child bounds:(CGRect)bounds
++ device:(macdrv_metal_device)dev;
++
++@end
++
++@implementation CAContextSwapChain
++
++- (instancetype) initWithHwnd:(void*)newHwnd child:(void*)newChild bounds:(CGRect)bounds
++ device:(macdrv_metal_device)dev
++{
++ self = [super init];
++ if (!self) return nil;
++
++ hwnd = newHwnd;
++ child_hwnd = newChild;
++ if (dev)
++ device = (macdrv_metal_device)[(id<MTLDevice>)dev retain];
++ else if (!(device = macdrv_create_metal_device()))
++ {
++ [self release];
++ return nil;
++ }
++
++ offscreen_layer = [[CAMetalLayer alloc] init];
++ if (!offscreen_layer)
++ {
++ macdrv_release_metal_device(device);
++ device = NULL;
++ [self release];
++ return nil;
++ }
++
++ offscreen_layer.device = (id<MTLDevice>)device;
++ offscreen_layer.framebufferOnly = YES;
++ offscreen_layer.magnificationFilter = kCAFilterNearest;
++ offscreen_layer.backgroundColor = CGColorGetConstantColor(kCGColorBlack);
++ offscreen_layer.contentsScale = retina_on ? 2.0 : 1.0;
++ [offscreen_layer setBounds:cgrect_mac_from_win(bounds)];
++ [offscreen_layer setAnchorPoint:CGPointMake(0, 0)];
++
++ /* Export the CAMetalLayer from the rendering process, then have the
++ * target HWND's owner host it using CALayerHost. */
++ OnMainThread(^{
++ remote_context = [[CAContext contextWithCGSConnection:CGSMainConnectionID()
++ options:[NSDictionary dictionary]] retain];
++ [remote_context setLayer:offscreen_layer];
++ context_id = [remote_context contextId];
+ });
++
++ if (!remote_context || !context_id)
++ {
++ [self release];
++ return nil;
++ }
++
++ macdrv_create_remote_layer(hwnd, child_hwnd, context_id);
++ return self;
+ }
+
++- (CAMetalLayer*) layer
++{
++ return offscreen_layer;
++}
++
++- (void) dealloc
++{
++ if (context_id) macdrv_release_remote_layer(hwnd, context_id);
++ CAContext *context = remote_context;
++ CAMetalLayer *layer = offscreen_layer;
++ macdrv_metal_device dev = device;
++
++ OnMainThreadAsync(^{
++ [context setLayer:nil];
++ [context release];
++ [layer release];
++ if (dev) macdrv_release_metal_device(dev);
++ });
++
++ [super dealloc];
++}
++
++@end
++
++macdrv_metal_swapchain macdrv_create_view_swapchain(macdrv_view v, macdrv_metal_device device)
++{
++ return (macdrv_metal_swapchain)[[MetalViewSwapChain alloc] initWithView:v device:device];
++}
++
++macdrv_metal_swapchain macdrv_create_offscreen_swapchain(void* hwnd, void* child, CGRect bounds,
++ macdrv_metal_device device)
++{
++ return (macdrv_metal_swapchain)[[CAContextSwapChain alloc] initWithHwnd:hwnd child:child
++ bounds:bounds device:device];
++}
++
++macdrv_metal_layer macdrv_swapchain_get_layer(macdrv_metal_swapchain swapchain)
++{
++ return (macdrv_metal_layer)[(id<WineMetalSwapChain>)swapchain layer];
++}
++
++void macdrv_destroy_swapchain(macdrv_metal_swapchain swapchain)
++{
++ [(id<WineMetalSwapChain>)swapchain release];
++}
++
++/* The frame arrives in Win32 raw pixels relative to the content view and CALayer.frame is in
++ * points: window.c works in Win32 space and the Cocoa side converts. A null frame (no child rect)
++ * stays null and selects the whole-view case. */
++void macdrv_window_create_ca_layer_host_view(macdrv_window w, unsigned int context_id,
++ CGRect frame, double zpos, int zpos_valid)
++{
++@autoreleasepool
++{
++ WineWindow* window = (WineWindow*)w;
++
++ OnMainThread(^{
++ NSView* content_view = [window contentView];
++
++ if ([content_view isKindOfClass:[WineContentView class]])
++ {
++ CGRect mac_frame = CGRectIsNull(frame) ? CGRectNull : cgrect_mac_from_win(frame);
++
++ [(WineContentView*)content_view addCALayerHostViewWithContextId:context_id
++ frame:mac_frame];
++ if (zpos_valid)
++ [(WineContentView*)content_view setCALayerHostZPosition:context_id zPosition:zpos];
++ }
++ });
++}
++}
++
++void macdrv_window_update_ca_layer_host_frame(macdrv_window w, unsigned int context_id,
++ CGRect frame, double zpos, int zpos_valid)
++{
++@autoreleasepool
++{
++ WineWindow* window = (WineWindow*)w;
++
++ OnMainThread(^{
++ NSView* content_view = [window contentView];
++
++ if ([content_view isKindOfClass:[WineContentView class]])
++ {
++ CGRect mac_frame = CGRectIsNull(frame) ? CGRectNull : cgrect_mac_from_win(frame);
++
++ [(WineContentView*)content_view updateCALayerHostFrame:context_id frame:mac_frame];
++ if (zpos_valid)
++ [(WineContentView*)content_view setCALayerHostZPosition:context_id zPosition:zpos];
++ }
++ });
++}
++}
++
++void macdrv_window_release_ca_layer_host_view(macdrv_window w, unsigned int context_id)
++{
++@autoreleasepool
++{
++ WineWindow* window = (WineWindow*)w;
++
++ OnMainThread(^{
++ NSView* content_view = [window contentView];
++
++ if ([content_view isKindOfClass:[WineContentView class]])
++ [(WineContentView*)content_view removeCALayerHostView:context_id];
++ });
++}
++}
++
+ bool macdrv_get_view_backing_size(macdrv_view v, int backing_size[2])
+ {
+ WineContentView* view = (WineContentView*)v;
+--- a/dlls/winemac.drv/window.c
++++ b/dlls/winemac.drv/window.c
+@@ -244,6 +244,31 @@
+ void release_win_data(struct macdrv_win_data *data)
+ {
+ if (data) pthread_mutex_unlock(&win_data_mutex);
++}
++
++
++/***********************************************************************
++ * macdrv_window_has_foreign_root
++ *
++ * Highball: TRUE when the root window of hwnd has no win data in this
++ * process, which is when another process created it: win_datas is per
++ * process, so get_win_data() cannot see a foreign window by construction.
++ * That is how a CEF GPU process (Steam, Rockstar, Ubisoft Connect) asks for
++ * a swapchain on a child of the browser process's window (Wine bug 60263).
++ */
++BOOL macdrv_window_has_foreign_root(HWND hwnd, HWND *root_ret)
++{
++ HWND root = NtUserGetAncestor(hwnd, GA_ROOT);
++ struct macdrv_win_data *data;
++
++ if (root_ret) *root_ret = root;
++ if (!root || root == NtUserGetDesktopWindow()) return FALSE;
++ if ((data = get_win_data(root)))
++ {
++ release_win_data(data);
++ return FALSE;
++ }
++ return TRUE;
+ }
+
+
+@@ -1146,8 +1171,7 @@
+
+ TRACE("%s\n", debugstr_client_surface(client));
+
+- if (surface->metal_view) macdrv_view_release_metal_view(surface->metal_view);
+- if (surface->metal_device) macdrv_release_metal_device(surface->metal_device);
++ if (surface->metal_swapchain) macdrv_destroy_swapchain(surface->metal_swapchain);
+ }
+
+ static void macdrv_client_surface_detach(struct client_surface *client)
+@@ -1235,6 +1259,52 @@
+ }
+
+ return surface;
++}
++
++/***********************************************************************
++ * macdrv_client_surface_acquire_metal_swapchain
++ *
++ * Highball: the Metal layer a client surface renders into. In our own
++ * windows that is a WineMetalView in the surface's view. When the root
++ * window belongs to another process (Wine bug 60263) there is no window of
++ * ours to put a view in, so the layer is exported through a CAContext and
++ * the root's owner hosts it in its content view (WM_MACDRV_CREATE_REMOTE_LAYER).
++ * device may be NULL, in which case the swapchain creates its own.
++ */
++BOOL macdrv_client_surface_acquire_metal_swapchain(struct macdrv_client_surface *surface,
++ macdrv_metal_device device)
++{
++ HWND hwnd = surface->client.hwnd, root;
++ struct macdrv_win_data *data;
++ RECT rect;
++
++ if (surface->metal_swapchain) return TRUE;
++
++ if (!macdrv_window_has_foreign_root(hwnd, &root))
++ {
++ surface->metal_swapchain = macdrv_create_view_swapchain(surface->cocoa_view, device);
++ return surface->metal_swapchain != NULL;
++ }
++
++ /* The layer's bounds only need the child's size; the root's owner positions the hosted
++ * layer from the child's window rect (see WM_MACDRV_CREATE_REMOTE_LAYER). */
++ if (!NtUserGetClientRect(hwnd, &rect, NtUserGetWinMonitorDpi(hwnd, MDT_RAW_DPI))) return FALSE;
++ OffsetRect(&rect, -rect.left, -rect.top);
++
++ TRACE("%s: root %p belongs to another process, hosting a remote layer there, bounds %s\n",
++ debugstr_client_surface(&surface->client), root, wine_dbgstr_rect(&rect));
++ surface->metal_swapchain = macdrv_create_offscreen_swapchain(root, root == hwnd ? NULL : hwnd,
++ cgrect_from_rect(rect), device);
++ if (!surface->metal_swapchain) return FALSE;
++
++ /* A child this process created has win data; its moves are relayed to the root's owner from
++ * WindowPosChanged so the hosted layer follows. */
++ if ((data = get_win_data(hwnd)))
++ {
++ data->remote_swapchain = 1;
++ release_win_data(data);
++ }
++ return TRUE;
+ }
+
+ /**********************************************************************
+@@ -1336,6 +1406,8 @@
+ /* CW HACK 22435 */
+ if (data->d3dmetal_client_surfaces) CFRelease(data->d3dmetal_client_surfaces);
+
++ if (data->remote_layer_children) CFRelease(data->remote_layer_children);
++
+ CFDictionaryRemoveValue(win_datas, hwnd);
+ release_win_data(data);
+ free(data);
+@@ -1591,10 +1663,314 @@
+ /* The ULW flags are a superset of the LWA flags. */
+ sync_window_opacity(data, alpha, TRUE, flags);
+ release_win_data(data);
++ }
++}
++
++
++/* Highball: hosting of layers rendered by another process (Wine bug 60263). The rendering
++ * process exports a CAContext and posts WM_MACDRV_CREATE_REMOTE_LAYER to the window that owns
++ * the NSWindow; this side hosts it, places it on the child's rect, stacks it in Win32 paint
++ * order and keeps it there as the child moves. */
++
++/* Win32 paint order for the hosted children of one root; higher index = nearer the viewer.
++ * Siblings are walked bottom to top (GW_HWNDNEXT runs top to bottom) and a window is recorded
++ * before its own children, so a child sits above its parent and an upper sibling above the whole
++ * subtree of a lower one. Built once per update, not once per layer: this runs during a drag. */
++#define PAINT_ORDER_DEPTH 32
++
++struct paint_order
++{
++ HWND *hwnds; /* index 0 = furthest back; grown by doubling */
++ int count, capacity;
++ BOOL truncated; /* a bound was hit; z-order below is incomplete */
++};
++
++static void paint_order_truncated(struct paint_order *po, const char *why, HWND at)
++{
++ static BOOL warned;
++
++ if (!warned)
++ {
++ FIXME("%s below %p, paint order incomplete, hosted layers past the cap keep their z\n",
++ why, at);
++ warned = TRUE;
++ }
++ po->truncated = TRUE;
++}
++
++static BOOL paint_order_add(struct paint_order *po, HWND hwnd)
++{
++ if (po->count == po->capacity)
++ {
++ int capacity = po->capacity ? po->capacity * 2 : 32;
++ HWND *hwnds = realloc(po->hwnds, capacity * sizeof(*hwnds));
++
++ if (!hwnds)
++ {
++ paint_order_truncated(po, "out of memory", hwnd);
++ return FALSE;
++ }
++ po->hwnds = hwnds;
++ po->capacity = capacity;
++ }
++ po->hwnds[po->count++] = hwnd;
++ return TRUE;
++}
++
++/* GW_CHILD gives the topmost child and GW_HWNDLAST the bottommost sibling, so GW_HWNDPREV from
++ * there walks bottom to top. */
++static void paint_order_walk(HWND parent, struct paint_order *po, int depth)
++{
++ HWND k;
++
++ if (depth >= PAINT_ORDER_DEPTH)
++ {
++ paint_order_truncated(po, "window tree too deep", parent);
++ return;
++ }
++
++ if (!(k = NtUserGetWindowRelative(parent, GW_CHILD))) return;
++
++ for (k = NtUserGetWindowRelative(k, GW_HWNDLAST); k;
++ k = NtUserGetWindowRelative(k, GW_HWNDPREV))
++ {
++ if (!paint_order_add(po, k)) return;
++ paint_order_walk(k, po, depth + 1);
++ }
++}
++
++static void build_paint_order(HWND root, struct paint_order *po)
++{
++ po->hwnds = NULL;
++ po->count = po->capacity = 0;
++ po->truncated = FALSE;
++ if (root) paint_order_walk(root, po, 0);
++}
++
++static void paint_order_free(struct paint_order *po)
++{
++ free(po->hwnds);
++ po->hwnds = NULL;
++ po->count = po->capacity = 0;
++}
++
++/* TRUE + *zpos on success; on failure the caller must leave zPosition alone. Returning 0.0 for
++ * "not found" would be indistinguishable from a legitimate bottom-most position. */
++static BOOL paint_order_zpos(const struct paint_order *po, HWND child, double *zpos)
++{
++ int i;
++
++ for (i = 0; i < po->count; i++)
++ if (po->hwnds[i] == child) { *zpos = (double)(i + 1); return TRUE; }
++ return FALSE;
++}
++
++/* The child's window rect in the root's content view space, in Win32 pixels: the child's rect
++ * in the root's client coordinates, offset the way macdrv_client_surface_update() places a
++ * same-process child's view. FALSE when the child is gone. A hidden child gets an empty rect,
++ * which hides its layer. */
++static BOOL get_remote_layer_frame(struct macdrv_win_data *data, HWND child, RECT *frame)
++{
++ UINT dpi = NtUserGetWinMonitorDpi(data->hwnd, MDT_RAW_DPI);
++ RECT rect;
++
++ if (!NtUserGetWindowRect(child, &rect, dpi)) return FALSE;
++ if (!(NtUserGetWindowLongW(child, GWL_STYLE) & WS_VISIBLE))
++ SetRectEmpty(&rect);
++ else
++ {
++ NtUserMapWindowPoints(0, data->hwnd, (POINT *)&rect, 2, dpi);
++ OffsetRect(&rect, data->rects.client.left - data->rects.visible.left,
++ data->rects.client.top - data->rects.visible.top);
++ }
++ *frame = rect;
++ return TRUE;
++}
++
++static CGRect cgrect_from_frame(const RECT *rect)
++{
++ return CGRectMake(rect->left, rect->top, rect->right - rect->left, rect->bottom - rect->top);
++}
++
++/* Retire every other hosted layer mirroring the same child, called once the replacement is in
++ * the layer tree. Retiring on the old swapchain's death instead leaves the child unhosted until
++ * the replacement's own message arrives, and the window shows straight through for that long. */
++static void retire_superseded_layers(struct macdrv_win_data *data, HWND child, unsigned int keep)
++{
++ CFIndex count, i;
++ const void **keys, **vals;
++
++ if (!data->remote_layer_children || !child) return;
++ if (!(count = CFDictionaryGetCount(data->remote_layer_children))) return;
++
++ keys = calloc(count, sizeof(*keys));
++ vals = calloc(count, sizeof(*vals));
++ if (!keys || !vals) { free(keys); free(vals); return; }
++ CFDictionaryGetKeysAndValues(data->remote_layer_children, keys, vals);
++
++ for (i = 0; i < count; i++)
++ {
++ unsigned int ctx = (unsigned int)(UINT_PTR)keys[i];
++
++ if (ctx == keep || (HWND)vals[i] != child) continue;
++ TRACE("retiring superseded layer ctx %u for child %p (replaced by %u)\n", ctx, child, keep);
++ if (data->cocoa_window) macdrv_window_release_ca_layer_host_view(data->cocoa_window, ctx);
++ CFDictionaryRemoveValue(data->remote_layer_children, (const void *)(UINT_PTR)ctx);
+ }
++ free(keys);
++ free(vals);
+ }
+
++/* The context id of this root's hosted layer for this child, or 0. */
++static unsigned int remote_layer_context_for(struct macdrv_win_data *data, HWND child)
++{
++ CFIndex count, i;
++ const void **keys, **vals;
++ unsigned int context_id = 0;
+
++ if (!data->remote_layer_children || !child) return 0;
++ if (!(count = CFDictionaryGetCount(data->remote_layer_children))) return 0;
++
++ keys = calloc(count, sizeof(*keys));
++ vals = calloc(count, sizeof(*vals));
++ if (keys && vals)
++ {
++ CFDictionaryGetKeysAndValues(data->remote_layer_children, keys, vals);
++ for (i = 0; i < count && !context_id; i++)
++ if ((HWND)vals[i] == child) context_id = (unsigned int)(UINT_PTR)keys[i];
++ }
++ free(keys);
++ free(vals);
++ return context_id;
++}
++
++/* Reposition one hosted layer. A child's own move only moves that child; refreshing every layer
++ * on the root for each child costs O(n) per child during a resize. The root's own
++ * WindowPosChanged still does the full pass. */
++static void update_remote_layer_frame_for(struct macdrv_win_data *data, HWND child,
++ unsigned int context_id)
++{
++ struct paint_order order;
++ RECT frame;
++ double zpos = 0.0;
++ BOOL have_z;
++
++ if (!data->cocoa_window || !child || !context_id) return;
++ if (!get_remote_layer_frame(data, child, &frame)) return;
++
++ build_paint_order(data->hwnd, &order);
++ have_z = paint_order_zpos(&order, child, &zpos);
++ paint_order_free(&order);
++
++ TRACE("child %p context %u frame %s zpos %.0f%s\n", child, context_id,
++ wine_dbgstr_rect(&frame), zpos, have_z ? "" : " (not in paint order)");
++ macdrv_window_update_ca_layer_host_frame(data->cocoa_window, context_id,
++ cgrect_from_frame(&frame), zpos, have_z);
++}
++
++/* Re-place every cross-process layer hosted on this window: they mirror children another process
++ * owns, so no WindowPosChanged of their own arrives here. */
++static void update_remote_layer_frames(struct macdrv_win_data *data)
++{
++ CFIndex count, i;
++ const void **keys, **vals;
++ struct paint_order order;
++
++ if (!data->remote_layer_children || !data->cocoa_window) return;
++ if (!(count = CFDictionaryGetCount(data->remote_layer_children))) return;
++
++ /* one walk for all of this window's hosted layers, not one per layer */
++ build_paint_order(data->hwnd, &order);
++
++ keys = calloc(count, sizeof(*keys));
++ vals = calloc(count, sizeof(*vals));
++ if (!keys || !vals) { free(keys); free(vals); paint_order_free(&order); return; }
++ CFDictionaryGetKeysAndValues(data->remote_layer_children, keys, vals);
++
++ for (i = 0; i < count; i++)
++ {
++ HWND child = (HWND)vals[i];
++ unsigned int context_id = (unsigned int)(UINT_PTR)keys[i];
++ double zpos = 0.0;
++ BOOL have_z;
++ RECT frame;
++
++ if (!child) continue; /* a top-level's own layer fills the content view and autoresizes */
++ if (!get_remote_layer_frame(data, child, &frame))
++ {
++ /* the child is gone; left alone its layer would stay painted at its last frame */
++ TRACE("child %p gone, releasing hosted layer %u\n", child, context_id);
++ macdrv_window_release_ca_layer_host_view(data->cocoa_window, context_id);
++ CFDictionaryRemoveValue(data->remote_layer_children, (const void *)(UINT_PTR)context_id);
++ continue;
++ }
++ have_z = paint_order_zpos(&order, child, &zpos);
++
++ TRACE("child %p context %u frame %s zpos %.0f%s\n", child, context_id,
++ wine_dbgstr_rect(&frame), zpos, have_z ? "" : " (not in paint order)");
++ macdrv_window_update_ca_layer_host_frame(data->cocoa_window, context_id,
++ cgrect_from_frame(&frame), zpos, have_z);
++ }
++ free(keys);
++ free(vals);
++ paint_order_free(&order);
++}
++
++/* WM_MACDRV_CREATE_REMOTE_LAYER: host the layer another process rendered into context_id,
++ * on the rect of child (0 for the window itself). */
++static void create_remote_layer(struct macdrv_win_data *data, HWND child, unsigned int context_id)
++{
++ struct paint_order order;
++ CGRect frame = CGRectNull;
++ double zpos = 0.0;
++ BOOL have_z;
++ RECT rect;
++
++ if (!data->cocoa_window) return;
++ if (child)
++ {
++ if (!get_remote_layer_frame(data, child, &rect))
++ {
++ /* the child went away between the post and this handler; with no rect the layer
++ * would cover the whole content view with nothing ever drawn into it */
++ TRACE("child %p gone before context %u could be hosted, not hosting\n", child, context_id);
++ return;
++ }
++ frame = cgrect_from_frame(&rect);
++ TRACE("child %p layer frame in root %p = %s\n", child, data->hwnd, wine_dbgstr_rect(&rect));
++ }
++
++ build_paint_order(data->hwnd, &order);
++ have_z = child && paint_order_zpos(&order, child, &zpos);
++ paint_order_free(&order);
++ macdrv_window_create_ca_layer_host_view(data->cocoa_window, context_id, frame, zpos, have_z);
++
++ /* Track every hosted layer: a child's so it can be repositioned, and a top-level's own
++ * (child NULL) so the release handler can tell "never tracked" from "already retired". */
++ if (!data->remote_layer_children)
++ data->remote_layer_children = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
++ if (data->remote_layer_children)
++ {
++ CFDictionarySetValue(data->remote_layer_children, (const void *)(UINT_PTR)context_id, child);
++ /* the replacement is hosted now, only now do its predecessors go */
++ if (child) retire_superseded_layers(data, child, context_id);
++ }
++}
++
++/* WM_MACDRV_RELEASE_REMOTE_LAYER: every hosted layer is tracked, so an untracked id is one
++ * retire_superseded_layers() already took, and skipping it keeps the two paths from racing
++ * over a reused id. */
++static void release_remote_layer(struct macdrv_win_data *data, unsigned int context_id)
++{
++ if (data->remote_layer_children &&
++ !CFDictionaryContainsKey(data->remote_layer_children, (const void *)(UINT_PTR)context_id))
++ return;
++ if (data->cocoa_window) macdrv_window_release_ca_layer_host_view(data->cocoa_window, context_id);
++ if (data->remote_layer_children)
++ CFDictionaryRemoveValue(data->remote_layer_children, (const void *)(UINT_PTR)context_id);
++}
++
++
+ /**********************************************************************
+ * WindowMessage (MACDRV.@)
+ */
+@@ -1617,6 +1993,30 @@
+ activate_on_following_focus();
+ TRACE("WM_MACDRV_ACTIVATE_ON_FOLLOWING_FOCUS time %u\n", activate_on_focus_time);
+ return 0;
++ case WM_MACDRV_CREATE_REMOTE_LAYER:
++ if ((data = get_win_data(hwnd)))
++ {
++ TRACE("WM_MACDRV_CREATE_REMOTE_LAYER child %p context_id %u\n", (HWND)wp, (unsigned int)lp);
++ create_remote_layer(data, (HWND)wp, (unsigned int)lp);
++ release_win_data(data);
++ }
++ return 0;
++ case WM_MACDRV_RELEASE_REMOTE_LAYER:
++ if ((data = get_win_data(hwnd)))
++ {
++ TRACE("WM_MACDRV_RELEASE_REMOTE_LAYER context_id %u\n", (unsigned int)lp);
++ release_remote_layer(data, (unsigned int)lp);
++ release_win_data(data);
++ }
++ return 0;
++ case WM_MACDRV_UPDATE_REMOTE_LAYER:
++ if ((data = get_win_data(hwnd)))
++ {
++ TRACE("WM_MACDRV_UPDATE_REMOTE_LAYER child %p\n", (HWND)wp);
++ update_remote_layer_frame_for(data, (HWND)wp, remote_layer_context_for(data, (HWND)wp));
++ release_win_data(data);
++ }
++ return 0;
+ }
+
+ FIXME("unrecognized window msg %x hwnd %p wp %lx lp %lx\n", msg, hwnd, (unsigned long)wp, lp);
+@@ -1624,6 +2024,20 @@
+ }
+
+
++/* Called from the rendering process. hwnd is the window whose owner hosts the layer, child the
++ * cross-process child it belongs to (NULL for the window itself). */
++void macdrv_create_remote_layer(void* hwnd_ptr, void* child_ptr, unsigned int context_id)
++{
++ NtUserPostMessage((HWND)hwnd_ptr, WM_MACDRV_CREATE_REMOTE_LAYER, (WPARAM)child_ptr, context_id);
++}
++
++
++void macdrv_release_remote_layer(void* hwnd_ptr, unsigned int context_id)
++{
++ NtUserPostMessage((HWND)hwnd_ptr, WM_MACDRV_RELEASE_REMOTE_LAYER, 0, context_id);
++}
++
++
+ /***********************************************************************
+ * WindowPosChanging (MACDRV.@)
+ */
+@@ -1692,8 +2106,31 @@
+ TRACE("win %p/%p new_rects %s style %08x flags %08x surface %p\n", hwnd, data->cocoa_window,
+ debugstr_window_rects(new_rects), new_style, swp_flags, surface);
+
+- if (!data->cocoa_window) goto done;
++ if (!data->cocoa_window)
++ {
++ /* Highball: a child with a layer hosted on its root's window (Wine bug 60263) has win
++ * data but no Cocoa window, and its moves are only seen here, in its own thread. Either
++ * the root is ours (a foreign process's child re-parented into our window, or a child of
++ * another thread of ours) and the hosted layer is moved directly, or the root belongs to
++ * another process and that process is told. swp_flags are the effective flags, so a
++ * no-op call carries NOMOVE|NOSIZE|NOZORDER and costs nothing. */
++ HWND root = NtUserGetAncestor(hwnd, GA_ROOT);
++ BOOL moved = (~swp_flags & (SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER)) ||
++ (swp_flags & (SWP_SHOWWINDOW | SWP_HIDEWINDOW));
++ BOOL remote = data->remote_swapchain;
+
++ release_win_data(data);
++ if (!moved || !root || root == hwnd) return;
++ if ((data = get_win_data(root)))
++ {
++ update_remote_layer_frame_for(data, hwnd, remote_layer_context_for(data, hwnd));
++ release_win_data(data);
++ }
++ else if (remote)
++ NtUserPostMessage(root, WM_MACDRV_UPDATE_REMOTE_LAYER, (WPARAM)hwnd, 0);
++ return;
++ }
++
+ if (data->on_screen)
+ {
+ if ((swp_flags & SWP_HIDEWINDOW) && !(new_style & WS_VISIBLE))
+@@ -1724,6 +2161,10 @@
+ show_window(data);
+ }
+ }
++
++ /* after the Cocoa frame is current, so hosted cross-process layers are placed against the
++ * content view's new bounds rather than the ones it is about to leave */
++ update_remote_layer_frames(data);
+
+ if (fullscreen || fullscreen != data->fullscreen)
+ {
+@@ -1732,7 +2173,6 @@
+ data->fullscreen = fullscreen;
+ }
+
+-done:
+ release_win_data(data);
+ }
+
+--- a/dlls/winemac.drv/vulkan.c
++++ b/dlls/winemac.drv/vulkan.c
+@@ -52,8 +52,9 @@
+ TRACE("%p %p %p %p\n", hwnd, instance, handle, client);
+
+ if (!(surface = macdrv_client_surface_create(hwnd))) return VK_ERROR_OUT_OF_HOST_MEMORY;
+- if (!(surface->metal_device = macdrv_create_metal_device())) goto err;
+- if (!(surface->metal_view = macdrv_view_create_metal_view(surface->cocoa_view, surface->metal_device))) goto err;
++ /* Highball: a swapchain in our own window, or a layer hosted by the window's owning process
++ * when that is another process (Wine bug 60263) */
++ if (!macdrv_client_surface_acquire_metal_swapchain(surface, NULL)) goto err;
+
+ if (instance->p_vkCreateMetalSurfaceEXT)
+ {
+@@ -61,7 +62,7 @@
+ create_info_host.sType = VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT;
+ create_info_host.pNext = NULL;
+ create_info_host.flags = 0; /* reserved */
+- create_info_host.pLayer = macdrv_view_get_metal_layer(surface->metal_view);
++ create_info_host.pLayer = macdrv_swapchain_get_layer(surface->metal_swapchain);
+
+ res = instance->p_vkCreateMetalSurfaceEXT(instance->host.instance, &create_info_host, NULL /* allocator */, handle);
+ }
+@@ -71,7 +72,7 @@
+ create_info_host.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK;
+ create_info_host.pNext = NULL;
+ create_info_host.flags = 0; /* reserved */
+- create_info_host.pView = macdrv_view_get_metal_layer(surface->metal_view);
++ create_info_host.pView = macdrv_swapchain_get_layer(surface->metal_swapchain);
+
+ res = instance->p_vkCreateMacOSSurfaceMVK(instance->host.instance, &create_info_host, NULL /* allocator */, handle);
+ }
+--- a/dlls/winemac.drv/d3dmetal.c
++++ b/dlls/winemac.drv/d3dmetal.c
+@@ -26,6 +26,8 @@
+
+ #include "config.h"
+
++#include <pthread.h>
++
+ #include "ntstatus.h"
+ #define WIN32_NO_STATUS
+ #include "macdrv.h"
+@@ -92,6 +94,122 @@
+ void OnMainThread(dispatch_block_t block);
+ static void cf_client_surface_release(CFAllocatorRef allocator, const void *client_surface);
+
++/* Highball: cross-process swapchains (Wine bug 60263). A window whose root belongs to another
++ * process (a CEF GPU process presenting into the browser process's window: Steam, Rockstar,
++ * Ubisoft Connect) has no Cocoa view of ours to draw into. Its client surface renders into a
++ * CAContext-backed layer that the root's owner hosts, see
++ * macdrv_client_surface_acquire_metal_swapchain(). D3DMetal/DXMT are none the wiser: the
++ * surface's view is handed out as client_cocoa_view, doubles as the "metal view" handle, and the
++ * layer behind it is the offscreen swapchain's. Surfaces are keyed by that view, not by HWND: the
++ * same HWND is asked for a swapchain several times (CEF recreates it on every resize). */
++static pthread_mutex_t remote_layer_mutex = PTHREAD_MUTEX_INITIALIZER;
++static CFMutableDictionaryRef remote_layer_surfaces; /* view -> client_surface D3DMetal/DXMT still uses */
++
++/* One retired surface held per child HWND. CAContextSwapChain's dealloc un-hosts the layer, and
++ * a client that resizes by destroying its swapchain and creating a new one would have nothing
++ * hosted between the two; so a released surface is held until the child's next release, which
++ * follows its successor's creation (the owner retires the old layer when the new one is hosted).
++ * A destroyed child never releases again, so a release whose child is gone is not held, and
++ * every release sweeps out dead slots. */
++static CFMutableDictionaryRef pending_by_child; /* child HWND -> retired client_surface */
++
++static struct client_surface *remote_layer_surface_for_view(macdrv_view view)
++{
++ struct client_surface *client = NULL;
++
++ if (!view) return NULL;
++ pthread_mutex_lock(&remote_layer_mutex);
++ if (remote_layer_surfaces)
++ client = (struct client_surface *)CFDictionaryGetValue(remote_layer_surfaces, view);
++ pthread_mutex_unlock(&remote_layer_mutex);
++ return client;
++}
++
++static BOOL remote_layer_surface_add(struct macdrv_client_surface *surface)
++{
++ BOOL ret;
++
++ pthread_mutex_lock(&remote_layer_mutex);
++ if (!remote_layer_surfaces)
++ remote_layer_surfaces = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
++ if ((ret = remote_layer_surfaces && surface->cocoa_view))
++ CFDictionarySetValue(remote_layer_surfaces, surface->cocoa_view, &surface->client);
++ pthread_mutex_unlock(&remote_layer_mutex);
++ return ret;
++}
++
++/* The surface behind a view, removed from the table; NULL when the view is not one of ours. */
++static struct client_surface *remote_layer_surface_take(macdrv_view view)
++{
++ struct client_surface *client = NULL;
++
++ if (!view) return NULL;
++ pthread_mutex_lock(&remote_layer_mutex);
++ if (remote_layer_surfaces &&
++ (client = (struct client_surface *)CFDictionaryGetValue(remote_layer_surfaces, view)))
++ CFDictionaryRemoveValue(remote_layer_surfaces, view);
++ pthread_mutex_unlock(&remote_layer_mutex);
++ return client;
++}
++
++/* Remove every held surface whose child window no longer exists, for release outside the lock.
++ * Called with remote_layer_mutex held; at most max per call, the rest on the next release. */
++static CFIndex collect_dead_pending(struct client_surface **out, CFIndex max)
++{
++ CFIndex count, i, n = 0;
++ const void **keys, **vals;
++
++ if (!pending_by_child || !(count = CFDictionaryGetCount(pending_by_child))) return 0;
++ keys = calloc(count, sizeof(*keys));
++ vals = calloc(count, sizeof(*vals));
++ if (!keys || !vals) { free(keys); free(vals); return 0; }
++ CFDictionaryGetKeysAndValues(pending_by_child, keys, vals);
++ for (i = 0; i < count && n < max; i++)
++ {
++ if (NtUserIsWindow((HWND)keys[i])) continue;
++ out[n++] = (struct client_surface *)vals[i];
++ CFDictionaryRemoveValue(pending_by_child, keys[i]);
++ }
++ free(keys);
++ free(vals);
++ return n;
++}
++
++/* Retire the surface behind a view D3DMetal/DXMT is finished with; TRUE if the view was one of
++ * ours, so the caller falls through to the ordinary metal view release when it was not. */
++static BOOL release_remote_layer_view(macdrv_view view)
++{
++ struct client_surface *client, *drain = NULL;
++ struct client_surface *dead[16];
++ CFIndex ndead, i;
++ HWND owner;
++
++ if (!(client = remote_layer_surface_take(view))) return FALSE;
++
++ owner = client->hwnd;
++ pthread_mutex_lock(&remote_layer_mutex);
++ if (!pending_by_child)
++ pending_by_child = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
++ if (!pending_by_child || !owner || !NtUserIsWindow(owner))
++ {
++ /* no table, or the child is already gone and no successor will ever come: release now */
++ drain = client;
++ }
++ else
++ {
++ drain = (struct client_surface *)CFDictionaryGetValue(pending_by_child, owner);
++ CFDictionarySetValue(pending_by_child, owner, client);
++ }
++ ndead = collect_dead_pending(dead, ARRAY_SIZE(dead));
++ pthread_mutex_unlock(&remote_layer_mutex);
++
++ TRACE("view %p child %p: %s, draining %p and %ld dead-child slot(s)\n", view, owner,
++ drain == client ? "child gone, released now" : "held", drain, (long)ndead);
++ if (drain) client_surface_release(drain);
++ for (i = 0; i < ndead; i++) client_surface_release(dead[i]);
++ return TRUE;
++}
++
+ static void my_macdrv_init_display_devices(BOOL p1)
+ {
+ TRACE("macdrv_init_display_devices %d - no-op\n", p1);
+@@ -102,6 +220,7 @@
+ struct macdrv_win_data *data;
+ struct d3dmetal_macdrv_win_data *d3dm_data;
+ struct macdrv_client_surface *client_surface;
++ BOOL remote;
+ TRACE("get_win_data %p\n", hwnd);
+
+ /* Creating a client surface on each call to get_win_data() means it's no longer idempotent,
+@@ -111,9 +230,14 @@
+ */
+ client_surface = macdrv_client_surface_create(hwnd);
+
++ /* Highball: a window whose root another process owns gets a remote layer instead of a view
++ * in a window of ours; the layer is created once the renderer hands over its Metal device,
++ * in my_macdrv_view_create_metal_view(). */
++ remote = macdrv_window_has_foreign_root(hwnd, NULL);
++
+ /* get_win_data() needs to happen after client_surface creation to avoid deadlocks */
+ data = get_win_data(hwnd);
+- if (!data)
++ if (!data && !remote)
+ {
+ client_surface_release((struct client_surface *)client_surface);
+ return NULL;
+@@ -121,34 +245,81 @@
+
+ macdrv_set_view_d3dmetal_client_surface(client_surface->cocoa_view, &client_surface->client);
+
+- if (!data->d3dmetal_client_surfaces)
++ if (remote)
+ {
+- static const CFArrayCallBacks callbacks = { .release = cf_client_surface_release };
+- data->d3dmetal_client_surfaces = CFArrayCreateMutable(NULL, 0, &callbacks);
++ /* owned by the tables above, not by the window's data: the window may not have any */
++ if (!remote_layer_surface_add(client_surface))
++ {
++ release_win_data(data);
++ client_surface_release((struct client_surface *)client_surface);
++ return NULL;
++ }
++ TRACE("hwnd %p: root belongs to another process, surface %p view %p\n", hwnd,
++ client_surface, client_surface->cocoa_view);
+ }
+- CFArrayAppendValue(data->d3dmetal_client_surfaces, client_surface);
++ else
++ {
++ if (!data->d3dmetal_client_surfaces)
++ {
++ static const CFArrayCallBacks callbacks = { .release = cf_client_surface_release };
++ data->d3dmetal_client_surfaces = CFArrayCreateMutable(NULL, 0, &callbacks);
++ }
++ CFArrayAppendValue(data->d3dmetal_client_surfaces, client_surface);
++ }
+
+ d3dm_data = calloc(1, sizeof(*d3dm_data));
+
+- d3dm_data->hwnd = data->hwnd;
+- d3dm_data->cocoa_window = data->cocoa_window;
++ d3dm_data->hwnd = hwnd;
+ /* cocoa_view is no longer present in macdrv_win_data. D3DMetal doesn't use it. */
+ d3dm_data->client_cocoa_view = client_surface->cocoa_view;
+- d3dm_data->window_rect = data->rects.window;
+- d3dm_data->whole_rect = data->rects.visible;
+- d3dm_data->client_rect = data->rects.client;
+- d3dm_data->pixel_format = data->pixel_format;
+- /* color_key is no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
+- d3dm_data->drag_event = data->drag_event;
+- d3dm_data->on_screen = data->on_screen;
+- d3dm_data->shaped = data->shaped;
+- d3dm_data->layered = data->layered;
+- d3dm_data->ulw_layered = data->ulw_layered;
+- d3dm_data->per_pixel_alpha = data->per_pixel_alpha;
+- d3dm_data->minimized = data->minimized;
+- /* swap_interval is no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
+- /* surface/unminimized_surface are no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
+- d3dm_data->padding[0] = data;
++ if (data)
++ {
++ d3dm_data->cocoa_window = data->cocoa_window;
++ d3dm_data->window_rect = data->rects.window;
++ d3dm_data->whole_rect = data->rects.visible;
++ d3dm_data->client_rect = data->rects.client;
++ d3dm_data->pixel_format = data->pixel_format;
++ /* color_key is no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
++ d3dm_data->drag_event = data->drag_event;
++ d3dm_data->on_screen = data->on_screen;
++ d3dm_data->shaped = data->shaped;
++ d3dm_data->layered = data->layered;
++ d3dm_data->ulw_layered = data->ulw_layered;
++ d3dm_data->per_pixel_alpha = data->per_pixel_alpha;
++ d3dm_data->minimized = data->minimized;
++ /* swap_interval is no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
++ /* surface/unminimized_surface are no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
++ }
++ else
++ {
++ /* Highball: a window this process never positioned, owned by another process. The rects
++ * are the ones the driver would have recorded, relative to the parent's client area. */
++ HWND parent = NtUserGetAncestor(hwnd, GA_PARENT);
++ UINT dpi = NtUserGetWinMonitorDpi(hwnd, MDT_RAW_DPI);
++ RECT window_rect, client_rect;
++
++ if (NtUserGetWindowRect(hwnd, &window_rect, dpi))
++ {
++ if (parent) NtUserMapWindowPoints(0, parent, (POINT *)&window_rect, 2, dpi);
++ d3dm_data->window_rect = d3dm_data->whole_rect = window_rect;
++ }
++ if (NtUserGetClientRect(hwnd, &client_rect, dpi))
++ {
++ NtUserMapWindowPoints(hwnd, parent, (POINT *)&client_rect, 2, dpi);
++ d3dm_data->client_rect = client_rect;
++ }
++ d3dm_data->on_screen = !!(NtUserGetWindowLongW(hwnd, GWL_STYLE) & WS_VISIBLE);
++ }
++
++ if (remote)
++ {
++ /* Highball: nothing here needs the window's data locked while the renderer sets up, and
++ * the swapchain creation below waits on the main thread. */
++ release_win_data(data);
++ d3dm_data->padding[0] = NULL;
++ }
++ else
++ d3dm_data->padding[0] = data;
+
+ return d3dm_data;
+ }
+@@ -160,7 +331,7 @@
+ if (!data)
+ return;
+
+- release_win_data(data->padding[0]);
++ if (data->padding[0]) release_win_data(data->padding[0]);
+ free(data);
+ }
+
+@@ -184,19 +355,47 @@
+
+ static macdrv_metal_view my_macdrv_view_create_metal_view(macdrv_view v, macdrv_metal_device d)
+ {
++ struct client_surface *client;
++
+ TRACE("macdrv_view_create_metal_view %p %p\n", v, d);
++
++ /* Highball: a remote surface's view is a placeholder. The layer it hands out is the offscreen
++ * swapchain's, created here with the renderer's device, and the view itself is the handle
++ * the renderer gets back, so that get_metal_layer() and release_metal_view() find it. */
++ if ((client = remote_layer_surface_for_view(v)))
++ {
++ struct macdrv_client_surface *surface = impl_from_client_surface(client);
++
++ if (!macdrv_client_surface_acquire_metal_swapchain(surface, d))
++ {
++ ERR("no remote swapchain for %s\n", debugstr_client_surface(client));
++ if (remote_layer_surface_take(v)) client_surface_release(client);
++ return NULL;
++ }
++ return (macdrv_metal_view)v;
++ }
++
+ return macdrv_view_create_metal_view(v, d);
+ }
+
+ static macdrv_metal_layer my_macdrv_view_get_metal_layer(macdrv_metal_view v)
+ {
++ struct client_surface *client;
++
+ TRACE("macdrv_view_get_metal_layer %p\n", v);
++
++ if ((client = remote_layer_surface_for_view((macdrv_view)v)))
++ return macdrv_swapchain_get_layer(impl_from_client_surface(client)->metal_swapchain);
++
+ return macdrv_view_get_metal_layer(v);
+ }
+
+ static void my_macdrv_view_release_metal_view(macdrv_metal_view v)
+ {
+ TRACE("macdrv_view_release_metal_view %p\n", v);
++
++ if (release_remote_layer_view((macdrv_view)v)) return;
++
+ return macdrv_view_release_metal_view(v);
+ }
+
diff --git a/resources/launcher-support.json b/resources/launcher-support.json
new file mode 100644
index 00000000000..e7c7985f528
--- /dev/null
+++ b/resources/launcher-support.json
@@ -0,0 +1,22 @@
+{
+ "version": "launcher-support-v1",
+ "url": "https://github.com/BCD1210/soju/releases/download/launcher-support-v1/soju-launcher-support-v1.tar.gz",
+ "sha256": "6b572debf73e91b3e26f9bbe36c2247dccec5725f26abab6ab0d0412a8e3ab5a",
+ "files": {
+ "SOURCES.txt": "b143443281cbc7d67480a326a13c7075013c7f6b68ae7673fa2778b00a184e1b",
+ "dxmt/i386-windows/d3d10core.dll": "aa21a497d86a8970f4e708fead276fd7ba945de9bdbec488538df537a885d3ef",
+ "dxmt/i386-windows/d3d11.dll": "34d83f6ef62ac10087d8b5030e633a6d46743c70fc73afff1621249f437e07df",
+ "dxmt/i386-windows/dxgi.dll": "c135d3b8f9becb54710342ce179281abbff4f1ce2edf934fab4a72bcfa2fdb1c",
+ "dxmt/i386-windows/winemetal.dll": "2d9004f151f11e9f1250a46038a2fc3fd253e660372b79c28d3786f00429fa88",
+ "dxmt/x86_64-unix/winemetal.so": "3d5cc9c4b8e5c9f5c12407d4726c5d93fc70535a43590a9c4799d7e00849fd5d",
+ "dxmt/x86_64-windows/d3d10core.dll": "2a9890170a64e2a27bf4f3e37aefc14b719573a8c91f062410b0efb666615d79",
+ "dxmt/x86_64-windows/d3d11.dll": "3d9452127d7cccf29f4dc80fac636e84aeccaa9a7936368b81292bf68c836b87",
+ "dxmt/x86_64-windows/dxgi.dll": "6f391e1c1e742c4c74657524cb6d2abcbd461d260f2aae828720ad54cb74300d",
+ "dxmt/x86_64-windows/winemetal.dll": "79b5fda6a25223729c5b6a41f3e9c2320550bd040fe1ed730a89f84426cc75e8",
+ "licenses/DXMT.txt": "b87c35aef7b2cf14de854118ca55ce5c4b284c85b5f002421fb8d46d868c2d17",
+ "licenses/LLVM.txt": "8d85c1057d742e597985c7d4e6320b015a9139385cff4cbae06ffc0ebe89afee",
+ "licenses/Wine-LGPL.txt": "e237fa56668030e928551ddd60f05df5fe957f75eab874bbd017e085ed722e7c",
+ "winemac.so": "ef1b6ec12c153a197f909e7badb2e48d537bbf1be239dcd712c7b8ac93d4859f"
+ },
+ "notes": "Mac driver with the cross-process swapchain patch and DXMT for the EA app, Rockstar Games Launcher and Ubisoft Connect (scripts/launcher-engine.sh). Built by scripts/build-launcher-support.sh."
+}
diff --git a/scripts/build-engine.sh b/scripts/build-engine.sh
index 51adaeef0d0..b72a3cae5cf 100755
--- a/scripts/build-engine.sh
+++ b/scripts/build-engine.sh
@@ -73,6 +73,10 @@ if ! grep -q "WINE_XATTR_SD" "$WINE/server/file.c"; then
echo "==> Applying patches/wineserver-stored-acls.patch (ACLs programs set read back as set)"
patch -p1 -d "$WINE" < "$SCRIPT_DIR/../patches/wineserver-stored-acls.patch"
fi
+if ! grep -q "WM_MACDRV_CREATE_REMOTE_LAYER" "$WINE/dlls/winemac.drv/macdrv.h"; then
+ echo "==> Applying patches/winemac-cross-process-swapchains.patch (EA, Rockstar and Ubisoft browser windows)"
+ patch -p1 -d "$WINE" < "$SCRIPT_DIR/../patches/winemac-cross-process-swapchains.patch"
+fi
echo "==> Building x86_64 freetype (Rosetta)"
fetch_checked "$FT_URL" "$WORK/ft.tar.gz" "$FT_SHA256"
diff --git a/scripts/build-launcher-support.sh b/scripts/build-launcher-support.sh
new file mode 100755
index 00000000000..0c854e04380
--- /dev/null
+++ b/scripts/build-launcher-support.sh
@@ -0,0 +1,79 @@
+#!/usr/bin/env bash
+# Build the launcher-support component: what turns a copy of the CX engine into
+# the engine the EA app, the Rockstar Games Launcher and Ubisoft Connect run on
+# (scripts/launcher-engine.sh). Nothing installed is touched.
+#
+# winemac.so the engine's Mac driver with patches/winemac-cross-process-swapchains.patch:
+# these launchers draw their browser UI from a GPU process into a
+# window another process owns (Wine bug 60263), which the stock
+# driver cannot present, so their windows stay white or black.
+# dxmt/ DXMT (d3d10core, d3d11, dxgi, winemetal) from Highball's branch,
+# which presents across processes when DXMT_ALLOW_CROSS_PROCESS_SWAPCHAIN=1.
+#
+# Needs the engine build tree from scripts/build-engine.sh ($WORK/sources/wine and
+# $WORK/wine-build). Prints the manifest for resources/launcher-support.json.
+set -euo pipefail
+ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+WORK="${WORK:-$HOME/.battlenet-macos/build}"
+WINE="$WORK/sources/wine"
+VERSION="${1:-launcher-support-v1}"
+OUT="${OUT:-$WORK/$VERSION}"
+DXMT_URL="https://github.com/gauthierpiarrette/highball-engine/releases/download/dxmt-highball-20260930T161516Z-a444716/dxmt-highball-20260930T161516Z-a444716.tar.gz"
+DXMT_SHA256="96feaf5d98d3c6cdc3edea9503e2891d435df8d5bfdf7d3f6998a56ec62bbd58"
+DXMT_COMMIT="a44471614f7cf4817e4eee717993eb19e35184b9"
+LLVM_LICENSE_URL="https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-15.0.7/llvm/LICENSE.TXT"
+export PATH="/opt/homebrew/opt/bison/bin:/opt/homebrew/bin:$PATH"
+
+[ -d "$WINE" ] && [ -f "$WORK/wine-build/Makefile" ] \
+ || { echo "Engine build tree not found in $WORK; run scripts/build-engine.sh first" >&2; exit 1; }
+
+fetch_checked(){ # url, dest, sha256
+ local got
+ [ -f "$2" ] || { curl -fL --retry 3 "$1" -o "$2.part" && mv -f "$2.part" "$2"; }
+ got=$(shasum -a 256 "$2" | awk '{print $1}')
+ [ "$got" = "$3" ] || { rm -f "$2"; echo "Checksum mismatch for $1 (got $got)" >&2; return 1; }
+}
+
+if ! grep -q WM_MACDRV_CREATE_REMOTE_LAYER "$WINE/dlls/winemac.drv/macdrv.h"; then
+ echo "==> Applying patches/winemac-cross-process-swapchains.patch"
+ patch -p1 -d "$WINE" < "$ROOT/patches/winemac-cross-process-swapchains.patch"
+fi
+echo "==> Building winemac.so"
+( cd "$WORK/wine-build" && arch -x86_64 make -j"$(sysctl -n hw.ncpu)" dlls/winemac.drv/winemac.so )
+
+echo "==> DXMT (Highball branch, $DXMT_COMMIT)"
+fetch_checked "$DXMT_URL" "$WORK/dxmt-highball.tar.gz" "$DXMT_SHA256"
+rm -rf "$OUT" "$WORK/dxmt-highball"; mkdir -p "$OUT/dxmt" "$OUT/licenses" "$WORK/dxmt-highball"
+tar -xzf "$WORK/dxmt-highball.tar.gz" -C "$WORK/dxmt-highball"
+for arch in x86_64-windows i386-windows; do
+ mkdir -p "$OUT/dxmt/$arch"
+ for f in d3d10core d3d11 dxgi winemetal; do cp "$WORK/dxmt-highball/highball/$arch/$f.dll" "$OUT/dxmt/$arch/"; done
+done
+mkdir -p "$OUT/dxmt/x86_64-unix"
+cp "$WORK/dxmt-highball/highball/x86_64-unix/winemetal.so" "$OUT/dxmt/x86_64-unix/"
+cp "$WORK/wine-build/dlls/winemac.drv/winemac.so" "$OUT/winemac.so"
+
+cp "$WINE/COPYING.LIB" "$OUT/licenses/Wine-LGPL.txt"
+curl -fsSL "https://raw.githubusercontent.com/gauthierpiarrette/dxmt/$DXMT_COMMIT/LICENSE" -o "$OUT/licenses/DXMT.txt"
+curl -fsSL "$LLVM_LICENSE_URL" -o "$OUT/licenses/LLVM.txt"
+cat > "$OUT/SOURCES.txt" <<EOF
+winemac.so: Wine from CodeWeavers' crossover-sources-26.3.0.tar.gz with the patches
+ scripts/build-engine.sh applies, plus patches/winemac-cross-process-swapchains.patch
+ (https://github.com/BCD1210/soju). Built by scripts/build-launcher-support.sh.
+dxmt/: DXMT, https://github.com/gauthierpiarrette/dxmt at $DXMT_COMMIT
+ (prebuilt: $DXMT_URL, sha256 $DXMT_SHA256). LLVM is linked into winemetal.so.
+EOF
+
+echo "==> Packing"
+ARCHIVE="$WORK/soju-$VERSION.tar.gz"
+( cd "$OUT" && COPYFILE_DISABLE=1 tar --uid 0 --gid 0 -czf "$ARCHIVE" \
+ SOURCES.txt winemac.so licenses dxmt )
+python3 - "$OUT" "$ARCHIVE" "$VERSION" <<'PY'
+import hashlib, json, pathlib, sys
+out, archive, version = pathlib.Path(sys.argv[1]), pathlib.Path(sys.argv[2]), sys.argv[3]
+sha = lambda p: hashlib.sha256(p.read_bytes()).hexdigest()
+files = {str(p.relative_to(out)): sha(p) for p in sorted(out.rglob("*")) if p.is_file()}
+print(json.dumps({"version": version,
+ "url": "https://github.com/BCD1210/soju/releases/download/%s/%s" % (version, archive.name),
+ "sha256": sha(archive), "files": files}, indent=2))
+PY
diff --git a/scripts/create-launcher-bottle.sh b/scripts/create-launcher-bottle.sh
new file mode 100755
index 00000000000..91dc3d19ffb
--- /dev/null
+++ b/scripts/create-launcher-bottle.sh
@@ -0,0 +1,96 @@
+#!/usr/bin/env bash
+# Create the bottle for the EA app, the Rockstar Games Launcher or Ubisoft Connect
+# and run the publisher's official installer in it, on the launcher engine
+# (scripts/launcher-engine.sh).
+# Verified 2026-11-10 on an M4 Pro, macOS 26.5: each installer completes and the
+# launcher opens its sign-in window. EA and Rockstar installers have a few
+# buttons to press; Ubisoft's runs unattended.
+set -euo pipefail
+MODE="${1:?usage: create-launcher-bottle.sh ea|rockstar|ubisoft}"
+ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+BASE="${SOJU_BASE:-$HOME/.battlenet-macos}"
+case "$MODE" in
+ ea) NAME="EA app"; CLIENT="Program Files/Electronic Arts/EA Desktop"
+ URL="https://origin-a.akamaihd.net/EA-Desktop-Client-Download/installer-releases/EAappInstaller.exe"
+ FILE="EAappInstaller.exe"; ARGS=() ;;
+ rockstar) NAME="Rockstar Games Launcher"; CLIENT="Program Files/Rockstar Games/Launcher/Launcher.exe"
+ URL="https://gamedownloads.rockstargames.com/public/installer/Rockstar-Games-Launcher.exe"
+ FILE="Rockstar-Games-Launcher.exe"; ARGS=() ;;
+ ubisoft) NAME="Ubisoft Connect"; CLIENT="Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe"
+ URL="https://static3.cdn.ubi.com/orbit/launcher_installer/UbisoftConnectInstaller.exe"
+ FILE="UbisoftConnectInstaller.exe"; ARGS=(/S) ;;
+ *) echo "Unknown launcher: $MODE" >&2; exit 64 ;;
+esac
+export WINEPREFIX="${WINEPREFIX:-$BASE/$MODE-bottle}"
+# The EA app lives in "EA Desktop\<version>\EA Desktop", reached through a
+# junction ("EA Desktop\EA Desktop") that only Wine resolves and that the EA
+# app's updater moves itself, so look for any installed version.
+installed(){
+ if [ "$MODE" = ea ]; then
+ compgen -G "$WINEPREFIX/drive_c/$CLIENT/*/EA Desktop/EADesktop.exe" >/dev/null
+ else
+ [ -f "$WINEPREFIX/drive_c/$CLIENT" ]
+ fi
+}
+if installed; then echo "==> $NAME already installed"; exit 0; fi
+
+ENGINE=$(bash "$ROOT/scripts/launcher-engine.sh")
+export WINEDEBUG="${WINEDEBUG:-fixme-all}" WINEMSYNC=1 ROSETTA_ADVERTISE_AVX=1 WINE_SIMULATE_WRITECOPY=1
+export DXMT_ALLOW_CROSS_PROCESS_SWAPCHAIN=1
+export CX_APPLEGPTK_LIBD3DSHARED_PATH="$ENGINE/lib/external/libd3dshared.dylib"
+export DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib"
+W="$ENGINE/bin/wine"
+# winemenubuilder would turn their desktop shortcuts into Mac files, and it
+# hangs on this engine; Soju makes its own app instead.
+export WINEDLLOVERRIDES="${WINEDLLOVERRIDES:+$WINEDLLOVERRIDES;}winemenubuilder.exe="
+WORK="$BASE/build"; mkdir -p "$WORK"
+
+fetch_checked(){ # url, dest, sha256
+ local got
+ [ -f "$2" ] || { curl -fL --proto =https --retry 3 "$1" -o "$2.part" && mv -f "$2.part" "$2"; }
+ got=$(shasum -a 256 "$2" | awk '{print $1}')
+ [ "$got" = "$3" ] || { rm -f "$2"; echo "Checksum mismatch for $1" >&2; return 1; }
+}
+
+echo "==> Initializing the prefix: $WINEPREFIX"
+"$W" wineboot -u >/dev/null 2>&1 || true
+"$ENGINE/bin/wineserver" -w
+"$W" reg add 'HKCU\Software\Wine\WineDbg' /v ShowCrashDialog /t REG_DWORD /d 0 /f >/dev/null 2>&1
+# Their Windows services start slowly under Rosetta; Wine gives up on a service
+# after 10 s by default (Rockstar's installer then waits forever).
+"$W" reg add 'HKLM\System\CurrentControlSet\Control' /v ServicesPipeTimeout /t REG_SZ /d 60000 /f >/dev/null 2>&1
+"$ENGINE/bin/wineserver" -w
+
+if [ "$MODE" = ea ]; then
+ # The EA installer's welcome page is HTML (mshtml). Without Wine Gecko Wine
+ # first stops on a "Wine Gecko Installer" dialog, and declining it leaves the
+ # page without its text. Same files and checksums Wine itself would fetch.
+ echo "==> Installing Wine Gecko (the EA installer's welcome page needs it)"
+ G="https://dl.winehq.org/wine/wine-gecko/2.47.4"
+ if fetch_checked "$G/wine-gecko-2.47.4-x86_64.msi" "$WORK/wine-gecko-2.47.4-x86_64.msi" \
+ e590b7d988a32d6aa4cf1d8aa3aa3d33766fdd4cf4c89c2dcc2095ecb28d066f \
+ && fetch_checked "$G/wine-gecko-2.47.4-x86.msi" "$WORK/wine-gecko-2.47.4-x86.msi" \
+ 26cecc47706b091908f7f814bddb074c61beb8063318e9efc5a7f789857793d6; then
+ "$W" msiexec /i "$WORK/wine-gecko-2.47.4-x86_64.msi" /qn >/dev/null 2>&1 || true
+ "$W" msiexec /i "$WORK/wine-gecko-2.47.4-x86.msi" /qn >/dev/null 2>&1 || true
+ "$ENGINE/bin/wineserver" -w
+ else
+ echo " Wine Gecko could not be downloaded; if Wine offers to install it, press Install"
+ fi
+fi
+
+echo "==> Downloading the $NAME installer (official)"
+curl -fL --proto =https --retry 3 "$URL" -o "$WORK/$FILE.part" && mv -f "$WORK/$FILE.part" "$WORK/$FILE"
+
+case "$MODE" in
+ ubisoft) echo "==> Running the installer (unattended, about a minute)" ;;
+ *) echo "==> Running the installer: follow its window (language, terms, Continue / Let's go)" ;;
+esac
+"$W" "$WORK/$FILE" ${ARGS[@]+"${ARGS[@]}"} >/dev/null 2>&1 || true
+[ "$MODE" = ubisoft ] && "$ENGINE/bin/wineserver" -w
+
+if ! installed; then
+ echo "$NAME was not installed (the installer was closed or failed). Run it again with: soju $MODE-install" >&2
+ exit 1
+fi
+echo "==> $NAME installed. Open it with: soju $MODE"
diff --git a/scripts/desktop-action.sh b/scripts/desktop-action.sh
index 3b8e9f3743f..73a8a74fb83 100755
--- a/scripts/desktop-action.sh
+++ b/scripts/desktop-action.sh
@@ -13,8 +13,8 @@ case "$ACTION" in
game-doctor) exec python3 "$ROOT/scripts/game-library.py" diagnose "${1:?Choose a game}" ;;
doctor) exec bash "$ROOT/scripts/doctor.sh" "$@" ;;
launch)
- case "${1:-}" in battlenet|steam|epic|gog) exec bash "$ROOT/scripts/play.sh" "$1" ;;
- *) echo "Choose one of the four launchers."; exit 64 ;; esac ;;
+ case "${1:-}" in battlenet|steam|epic|gog|ea|rockstar|ubisoft) exec bash "$ROOT/scripts/play.sh" "$1" ;;
+ *) echo "Choose one of the launchers."; exit 64 ;; esac ;;
vr)
case "${1:-}" in setup|play|status) exec python3 "$ROOT/scripts/d2r-vr.py" "$1" ;;
flat) exec python3 "$ROOT/scripts/d2r-vr.py" play --flat ;;
@@ -49,7 +49,7 @@ case "$ACTION" in
exec bash "$MANAGED/install.sh" ;;
gptk)
[ -x "$BASE/cx26-engine/bin/wine" ] || {
- echo "Install Battle.net, Epic or GOG first to prepare its engine, then add GPTK."; exit 1;
+ echo "Install Battle.net, Epic, GOG, EA, Rockstar or Ubisoft first to prepare its engine, then add GPTK."; exit 1;
}
# With a folder the user picked, install from it; without one, download the payload.
if [ -n "${1:-}" ]; then exec bash "$ROOT/scripts/get-gptk.sh" "$1"; fi
diff --git a/scripts/doctor.sh b/scripts/doctor.sh
index b59a7e84ccd..467e98e6bb6 100755
--- a/scripts/doctor.sh
+++ b/scripts/doctor.sh
@@ -19,12 +19,13 @@ fail(){ printf ' FAIL %s\n' "$*"; nfail=$((nfail+1)); }
info(){ printf ' - %s\n' "$*"; }
SCOPE="${1:-installed}"
-case "$SCOPE" in installed|all|steam|battlenet|d2r|epic|gog|xbox) ;; *) echo "Usage: soju doctor [steam|battlenet|d2r|epic|gog|xbox|all]"; exit 64 ;; esac
+case "$SCOPE" in installed|all|steam|battlenet|d2r|epic|gog|ea|rockstar|ubisoft|xbox) ;; *) echo "Usage: soju doctor [steam|battlenet|d2r|epic|gog|ea|rockstar|ubisoft|xbox|all]"; exit 64 ;; esac
NEEDS_CX=0
case "$SCOPE" in
- all|battlenet|d2r|epic|gog) NEEDS_CX=1 ;;
+ all|battlenet|d2r|epic|gog|ea|rockstar|ubisoft) NEEDS_CX=1 ;;
installed)
- if [ -x "$ENGINE/bin/wine" ] || [ -d "$BASE/bottle" ] || [ -d "$BASE/epic-bottle" ] || [ -d "$BASE/gog-bottle" ]; then NEEDS_CX=1; fi ;;
+ if [ -x "$ENGINE/bin/wine" ] || [ -d "$BASE/bottle" ] || [ -d "$BASE/epic-bottle" ] || [ -d "$BASE/gog-bottle" ] \
+ || [ -d "$BASE/ea-bottle" ] || [ -d "$BASE/rockstar-bottle" ] || [ -d "$BASE/ubisoft-bottle" ]; then NEEDS_CX=1; fi ;;
esac
echo "soju doctor ($SCOPE)"
@@ -115,6 +116,23 @@ fi
&& pass "Epic Games Launcher bottle" || info "Epic not installed (soju epic-install)"
[ -f "$BASE/gog-bottle/drive_c/Program Files/GOG Galaxy/GalaxyClient.exe" ] \
&& pass "GOG GALAXY bottle" || info "GOG not installed (soju gog-install)"
+LAUNCHERS=0
+for l in "ea|EA app|Program Files/Electronic Arts/EA Desktop" \
+ "rockstar|Rockstar Games Launcher|Program Files/Rockstar Games/Launcher/Launcher.exe" \
+ "ubisoft|Ubisoft Connect|Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe"; do
+ IFS='|' read -r id name client <<<"$l"
+ if [ -e "$BASE/$id-bottle/drive_c/$client" ]; then pass "$name bottle"; LAUNCHERS=1
+ else info "$name not installed (soju $id-install)"; fi
+done
+if [ "$LAUNCHERS" = 1 ]; then
+ if SOJU_BASE="$BASE" python3 "$(dirname "${BASH_SOURCE[0]}")/fetch-launcher-support.py" --check; then
+ pass "Launcher components (Mac driver + DXMT for EA, Rockstar, Ubisoft)"
+ else
+ info "Launcher components not downloaded yet (they are fetched when one of these launchers starts)"
+ fi
+ [ -f "$BASE/cx26-engine-launchers/.soju-launcher-engine" ] && pass "Launcher engine prepared" \
+ || info "Launcher engine not prepared yet (made from the engine when one of these launchers starts)"
+fi
CHECK_XBOX=0
case "$SCOPE" in
diff --git a/scripts/fetch-launcher-support.py b/scripts/fetch-launcher-support.py
new file mode 100755
index 00000000000..4fc57bf28de
--- /dev/null
+++ b/scripts/fetch-launcher-support.py
@@ -0,0 +1,85 @@
+#!/usr/bin/env python3
+"""Fetch the pinned launcher-support component (scripts/build-launcher-support.sh).
+Verify before extraction or replacement. Prints the component directory on stdout."""
+import hashlib
+import json
+import os
+from pathlib import Path, PurePosixPath
+import shutil
+import subprocess
+import sys
+import tarfile
+import tempfile
+
+MANIFEST = Path(__file__).resolve().parent.parent / "resources/launcher-support.json"
+
+def digest(path):
+ h = hashlib.sha256()
+ with open(path, "rb") as f:
+ for block in iter(lambda: f.read(1024 * 1024), b""): h.update(block)
+ return h.hexdigest()
+
+def verified(directory, manifest):
+ return all((directory / name).is_file() and not (directory / name).is_symlink()
+ and digest(directory / name) == sha for name, sha in manifest["files"].items())
+
+def unpack(archive, dest, manifest):
+ """Only regular allowlisted files; reject links, duplicates and traversal."""
+ seen = set()
+ with tarfile.open(archive, "r:gz") as tar:
+ for member in tar:
+ name = member.name[2:] if member.name.startswith("./") else member.name
+ path = PurePosixPath(name)
+ if path.is_absolute() or ".." in path.parts:
+ raise ValueError("Unsafe archive path")
+ if member.isdir(): continue
+ if not member.isfile() or name not in manifest["files"] or name in seen:
+ raise ValueError("Unexpected archive entry: " + name)
+ if member.size > 150 * 1024 * 1024:
+ raise ValueError("Oversized archive entry")
+ seen.add(name)
+ target = dest / name
+ target.parent.mkdir(parents=True, exist_ok=True)
+ with tar.extractfile(member) as src, target.open("wb") as out:
+ shutil.copyfileobj(src, out)
+ if seen != set(manifest["files"]) or not verified(dest, manifest):
+ raise ValueError("Incomplete or corrupt launcher components")
+
+def fetch(base, manifest):
+ support = base / "launcher-support"
+ target = support / "prebuilt"
+ if verified(target, manifest):
+ print("Launcher components verified (" + manifest["version"] + ")", file=sys.stderr)
+ return target
+ support.mkdir(parents=True, exist_ok=True)
+ with tempfile.TemporaryDirectory(prefix=".download-", dir=support) as work:
+ work = Path(work); archive = work / "support.tar.gz"; stage = work / "payload"
+ stage.mkdir()
+ print("Downloading launcher components: " + manifest["version"], file=sys.stderr, flush=True)
+ subprocess.run(["/usr/bin/curl", "--fail", "--location", "--proto", "=https",
+ "--retry", "3", "--connect-timeout", "20", "--max-time", "900",
+ manifest["url"], "--output", str(archive)], check=True, stdout=sys.stderr)
+ if digest(archive) != manifest["sha256"]:
+ raise ValueError("Download checksum mismatch; existing files unchanged")
+ unpack(archive, stage, manifest)
+ (stage / ".soju-support-version").write_text(manifest["version"] + "\n")
+ backup = support / "prebuilt.previous"
+ if backup.exists(): shutil.rmtree(backup)
+ if target.exists(): target.rename(backup)
+ try: stage.rename(target)
+ except OSError:
+ if backup.exists(): backup.rename(target)
+ raise
+ if backup.exists(): shutil.rmtree(backup)
+ return target
+
+if __name__ == "__main__":
+ try:
+ manifest = json.loads(MANIFEST.read_text())
+ base = Path(os.environ.get("SOJU_BASE", str(Path.home() / ".battlenet-macos")))
+ if sys.argv[1:] == ["--check"]:
+ sys.exit(0 if verified(base / "launcher-support/prebuilt", manifest) else 1)
+ print(fetch(base, manifest))
+ except (OSError, ValueError, subprocess.CalledProcessError, tarfile.TarError) as e:
+ print("Launcher components: " + str(e), file=sys.stderr)
+ sys.exit(1)
diff --git a/scripts/launcher-engine.sh b/scripts/launcher-engine.sh
new file mode 100755
index 00000000000..af7b21b8342
--- /dev/null
+++ b/scripts/launcher-engine.sh
@@ -0,0 +1,54 @@
+#!/usr/bin/env bash
+# Prepare the engine the EA app, the Rockstar Games Launcher and Ubisoft Connect
+# run on, and print its path. Verified 2026-11-10 on an M4 Pro, macOS 26.5: all
+# three install and open their sign-in windows on it.
+#
+# It is a copy of the CX engine (an APFS clone: no extra disk space) with the
+# launcher-support component on top (scripts/build-launcher-support.sh):
+# - winemac.so with patches/winemac-cross-process-swapchains.patch. These
+# launchers draw their browser UI from a GPU process into a window another
+# process owns; the stock driver cannot present that, so the windows stay
+# white (Ubisoft) or black (Rockstar, EA).
+# - DXMT for d3d10core/d3d11/dxgi, which presents across processes when
+# DXMT_ALLOW_CROSS_PROCESS_SWAPCHAIN=1. D3DMetal cannot. D3D12 stays on D3DMetal.
+# Battle.net, Epic and GOG keep the CX engine exactly as it is.
+#
+# The copy is rebuilt when the CX engine, its GPTK payload or the component
+# changes, never while one of these launchers is running.
+set -euo pipefail
+ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+BASE="${SOJU_BASE:-$HOME/.battlenet-macos}"
+SRC="${SOJU_CX_ENGINE:-$BASE/cx26-engine}"
+DEST="${SOJU_LAUNCHER_ENGINE:-$BASE/cx26-engine-launchers}"
+
+[ -x "$SRC/bin/wine" ] || { echo "soju: the engine is not installed; run: soju install" >&2; exit 1; }
+SUPPORT=$(SOJU_BASE="$BASE" python3 "$ROOT/scripts/fetch-launcher-support.py") || exit 1
+
+engine_id="$(cat "$SRC/.soju-engine-release" 2>/dev/null || /usr/bin/stat -f %m "$SRC/bin/wine")"
+gptk="no-gptk"; [ -f "$SRC/lib/external/libd3dshared.dylib" ] && gptk="gptk"
+want="$engine_id|$gptk|$(cat "$SUPPORT/.soju-support-version")"
+
+if [ "$(cat "$DEST/.soju-launcher-engine" 2>/dev/null)" != "$want" ]; then
+ # Wine starts its server as <engine>/lib/wine/../../bin/wineserver.
+ if pgrep -f "$DEST/(lib/wine/\.\./\.\./)?bin/wineserver" >/dev/null 2>&1; then
+ echo "soju: quit the EA app, Rockstar Games Launcher and Ubisoft Connect first (soju ea-kill, rockstar-kill, ubisoft-kill)" >&2
+ exit 1
+ fi
+ echo "Preparing the engine for the EA app, Rockstar and Ubisoft" >&2
+ rm -rf "$DEST.new"
+ cp -Rc "$SRC" "$DEST.new" 2>/dev/null || { rm -rf "$DEST.new"; cp -R "$SRC" "$DEST.new"; }
+ L="$DEST.new/lib/wine"
+ cp -f "$SUPPORT/winemac.so" "$L/x86_64-unix/winemac.so"
+ for arch in x86_64-windows i386-windows; do
+ for f in d3d10core d3d11 dxgi winemetal; do
+ rm -f "$L/$arch/$f.dll"; cp "$SUPPORT/dxmt/$arch/$f.dll" "$L/$arch/$f.dll"
+ done
+ done
+ # Apple's unixlib symlinks for these three would send the DXMT DLLs to D3DMetal.
+ rm -f "$L/x86_64-unix/d3d10core.so" "$L/x86_64-unix/d3d11.so" "$L/x86_64-unix/dxgi.so"
+ cp -f "$SUPPORT/dxmt/x86_64-unix/winemetal.so" "$L/x86_64-unix/winemetal.so"
+ printf '%s\n' "$want" > "$DEST.new/.soju-launcher-engine"
+ rm -rf "$DEST"
+ mv "$DEST.new" "$DEST"
+fi
+echo "$DEST"
diff --git a/scripts/play.sh b/scripts/play.sh
index d71fa967b2a..29e406e39dd 100755
--- a/scripts/play.sh
+++ b/scripts/play.sh
@@ -44,10 +44,23 @@ elif [[ "$MODE" == epic* ]]; then
export WINEPREFIX="${WINEPREFIX:-${SOJU_BASE:-$HOME/.battlenet-macos}/epic-bottle}"
elif [[ "$MODE" == gog* ]]; then
export WINEPREFIX="${WINEPREFIX:-${SOJU_BASE:-$HOME/.battlenet-macos}/gog-bottle}"
+elif [[ "$MODE" =~ ^(ea|rockstar|ubisoft)(-kill)?$ ]]; then
+ export WINEPREFIX="${WINEPREFIX:-${SOJU_BASE:-$HOME/.battlenet-macos}/${MODE%-kill}-bottle}"
else
export WINEPREFIX="${WINEPREFIX:-${SOJU_BASE:-$HOME/.battlenet-macos}/bottle}"
fi
+# The EA app, Rockstar Games Launcher and Ubisoft Connect run on the launcher
+# engine: the CX engine plus a Mac driver and DXMT that let their browser UIs
+# present across processes (scripts/launcher-engine.sh). The others keep $ENGINE.
+case "$MODE" in
+ ea-kill|rockstar-kill|ubisoft-kill)
+ ENGINE="${SOJU_LAUNCHER_ENGINE:-${SOJU_BASE:-$HOME/.battlenet-macos}/cx26-engine-launchers}" ;;
+ ea|rockstar|ubisoft)
+ ENGINE=$(SOJU_CX_ENGINE="$ENGINE" bash "$(dirname "${BASH_SOURCE[0]}")/launcher-engine.sh") || exit 1
+ export DXMT_ALLOW_CROSS_PROCESS_SWAPCHAIN=1 ;;
+esac
+
export WINEDEBUG="${WINEDEBUG:-fixme-all}"
# SOJU_KEYLOG=1: record every key event the Mac driver sees and every focus
# change, to ~/.battlenet-macos/logs/keys-<mode>-<time>.log. For "a key stays
@@ -236,6 +249,28 @@ case "$MODE" in
"$ENGINE/bin/wineserver" -k 2>/dev/null || true
sleep 2; [ -x "$SWEEP" ] && "$SWEEP"
;;
+ ea|rockstar|ubisoft) # EA app, Rockstar Games Launcher, Ubisoft Connect (verified 2026-11-10)
+ # Installed by create-launcher-bottle.sh. Closing a window parks EA and
+ # Ubisoft in the menu bar (tray); Rockstar quits.
+ case "$MODE" in
+ ea) CLIENT='Program Files/Electronic Arts/EA Desktop/EA Desktop/EADesktop.exe'
+ # "EA Desktop\EA Desktop" is a junction only Wine resolves (the
+ # EA app's updater moves it): check for any installed version.
+ compgen -G "$WINEPREFIX/drive_c/Program Files/Electronic Arts/EA Desktop/*/EA Desktop/EADesktop.exe" >/dev/null \
+ || { echo "Not installed yet, run: soju ea-install"; exit 1; } ;;
+ rockstar) CLIENT='Program Files/Rockstar Games/Launcher/Launcher.exe' ;;
+ ubisoft) CLIENT='Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe' ;;
+ esac
+ [[ "$MODE" = ea || -f "$WINEPREFIX/drive_c/$CLIENT" ]] || { echo "Not installed yet, run: soju $MODE-install"; exit 1; }
+ pgrep -f "soju-reaper.sh $WINEPREFIX" >/dev/null 2>&1 || \
+ { [ -x "$REAPER" ] && ( "$REAPER" "$WINEPREFIX" "$ENGINE/bin/wineserver" "$MODE" >/dev/null 2>&1 & ); }
+ exec "$ENGINE/bin/wine" "C:\\${CLIENT//\//\\}" "${@:2}"
+ ;;
+ ea-kill|rockstar-kill|ubisoft-kill) # Stop everything in that launcher's bottle
+ pkill -f "soju-reaper.sh $WINEPREFIX" 2>/dev/null || true
+ "$ENGINE/bin/wineserver" -k 2>/dev/null || true
+ sleep 2; [ -x "$SWEEP" ] && "$SWEEP"
+ ;;
steam) # Steam client, wine-stable + webhelper wrapper (verified 2026-08-27)
# Steam's CEF does not render on the CX engine (black screen / SEGV storm).
# The verified combination is Homebrew wine-stable 11 + the steamwebhelper
@@ -348,5 +383,5 @@ case "$MODE" in
"$STEAM_WINE_ROOT/bin/wineserver" -k 2>/dev/null || true
sleep 2; [ -x "$SWEEP" ] && "$SWEEP"
;;
- *) echo "usage: play.sh [battlenet|d2r|epic|epic-kill|gog|gog-kill|steam|kill|steam-kill]"; exit 1;;
+ *) echo "usage: play.sh [battlenet|d2r|epic|epic-kill|gog|gog-kill|ea|ea-kill|rockstar|rockstar-kill|ubisoft|ubisoft-kill|steam|kill|steam-kill]"; exit 1;;
esac
diff --git a/scripts/soju b/scripts/soju
index 8797fecc1ec..9e7c98d41bc 100755
--- a/scripts/soju
+++ b/scripts/soju
@@ -16,7 +16,7 @@ usage() {
soju: open-source Windows launchers on Apple Silicon
Usage:
- soju install Choose and install any of the five platforms
+ soju install Choose and install any of the eight platforms
soju app Build, install and open the native Soju app
soju library List installed and imported games as JSON
soju game <id> Play a game from the unified library
@@ -42,6 +42,16 @@ Usage:
soju gog Launch GOG GALAXY
soju gog-kill Stop everything in the GOG bottle
+ soju ea-install Set up the EA app bottle (launcher engine, EA's official installer)
+ soju ea Launch the EA app
+ soju ea-kill Stop everything in the EA app bottle
+ soju rockstar-install Set up the Rockstar Games Launcher bottle
+ soju rockstar Launch the Rockstar Games Launcher
+ soju rockstar-kill Stop everything in the Rockstar bottle
+ soju ubisoft-install Set up the Ubisoft Connect bottle
+ soju ubisoft Launch Ubisoft Connect
+ soju ubisoft-kill Stop everything in the Ubisoft Connect bottle
+
soju xbox-install Build the Xodus backend for Xbox PC / Microsoft Store (Rust, a few minutes)
soju xbox-login Sign in with your Microsoft account (official page in a window)
soju xbox-logout Sign out (downloaded games are kept)
@@ -79,6 +89,8 @@ case "${1:-}" in
install) shift; exec bash "$ROOT/install.sh" "$@" ;;
epic-install) shift; exec bash "$ROOT/scripts/create-epic-bottle.sh" "$@" ;;
gog-install) shift; exec bash "$ROOT/scripts/create-gog-bottle.sh" "$@" ;;
+ ea-install|rockstar-install|ubisoft-install)
+ exec bash "$ROOT/scripts/create-launcher-bottle.sh" "${1%-install}" ;;
steam-install) shift; export SOJU_PLATFORMS=steam; exec bash "$ROOT/install.sh" "$@" ;;
vr) shift; exec python3 "$ROOT/scripts/d2r-vr.py" "$@" ;;
xbox-install) exec bash "$ROOT/scripts/xbox.sh" install ;;
@@ -102,7 +114,7 @@ case "${1:-}" in
doctor) shift; exec bash "$ROOT/scripts/doctor.sh" "$@" ;;
update) shift; exec bash "$ROOT/scripts/update.sh" "$@" ;;
uninstall) shift; exec bash "$ROOT/scripts/uninstall.sh" "$@" ;;
- battlenet|d2r|controllers|epic|epic-kill|gog|gog-kill|steam|kill|steam-kill)
+ battlenet|d2r|controllers|epic|epic-kill|gog|gog-kill|ea|ea-kill|rockstar|rockstar-kill|ubisoft|ubisoft-kill|steam|kill|steam-kill)
exec bash "$ROOT/scripts/play.sh" "$@" ;;
-h|--help|help|"") usage ;;
*) echo "soju: unknown command '$1'" >&2; usage >&2; exit 64 ;;
diff --git a/scripts/soju-reaper.sh b/scripts/soju-reaper.sh
index 2708b2345b4..7d1c08e8fa3 100755
--- a/scripts/soju-reaper.sh
+++ b/scripts/soju-reaper.sh
@@ -26,11 +26,11 @@
# Accessibility permission needed, nothing to install. A minimized or hidden
# (Cmd-H) window, or one on another Space, still counts as a window.
#
-# Usage: soju-reaper.sh <WINEPREFIX> <wineserver-path> [battlenet|steam|epic|gog]
+# Usage: soju-reaper.sh <WINEPREFIX> <wineserver-path> [battlenet|steam|epic|gog|ea|rockstar|ubisoft]
# (backgrounded by play.sh / the app bundles)
set -u
-PREFIX="${1:?usage: soju-reaper.sh <WINEPREFIX> <wineserver> [battlenet|steam|epic|gog]}"
+PREFIX="${1:?usage: soju-reaper.sh <WINEPREFIX> <wineserver> [battlenet|steam|epic|gog|ea|rockstar|ubisoft]}"
WINESERVER="${2:?}"
MODE="${3:-battlenet}"
INTERVAL=20
@@ -58,6 +58,18 @@ case "$MODE" in
GAME_RE=''
HELPER_RE="$(exe_re 'GalaxyClientService\.exe|GalaxyCommunication\.exe|GalaxyClientHelper\.exe|GOG Galaxy Notifications Renderer\.exe|QtWebEngineProcess\.exe|GalaxyClient Helper\.exe')"
;;
+ ea)
+ GAME_RE=''
+ HELPER_RE="$(exe_re 'EABackgroundService\.exe|EACefSubProcess\.exe|EALocalHostSvc\.exe|EACrashReporter\.exe|ErrorReporter\.exe|EAConnect_microsoft\.exe')"
+ ;;
+ rockstar)
+ GAME_RE=''
+ HELPER_RE="$(exe_re 'RockstarService\.exe|SocialClubHelper\.exe|RockstarErrorHandler\.exe')"
+ ;;
+ ubisoft)
+ GAME_RE=''
+ HELPER_RE="$(exe_re 'UplayService\.exe|UplayWebCore\.exe|UbisoftExtension\.exe|UplayCrashReporter\.exe|UpcElevationService\.exe')"
+ ;;
*)
GAME_RE="$(exe_re 'D2R\.exe')"
HELPER_RE="$(exe_re 'Agent\.exe|Battle\.net Helper\.exe|Battle\.net Update Agent\.exe|BlizzardError\.exe|SystemSurvey\.exe')"
diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh
index 7f37a85f730..dc7f4257a8f 100755
--- a/scripts/uninstall.sh
+++ b/scripts/uninstall.sh
@@ -24,6 +24,9 @@ echo "soju uninstall: this removes things soju created. Nothing is touched witho
stop_bottle() {
local b="$1" ws="$ENGINE/bin/wineserver"
[ -d "$BASE/$b" ] || return 0
+ case "$b" in ea-bottle|rockstar-bottle|ubisoft-bottle)
+ [ -x "$BASE/cx26-engine-launchers/bin/wineserver" ] && ws="$BASE/cx26-engine-launchers/bin/wineserver" ;;
+ esac
if [ "$b" = steam-bottle ]; then
# This resolves private, legacy and explicit runtimes exactly as play does.
# A failed stop/wait aborts uninstall before any bottle files are removed.
@@ -38,7 +41,7 @@ stop_bottle() {
# Only bundles install.sh wrote for this install (their launcher script names
# this engine), so a custom SOJU_BASE never removes another install's apps.
apps=()
-for a in "Battle.net" "Steam (Windows)" "Epic Games Launcher" "GOG GALAXY"; do
+for a in "Battle.net" "Steam (Windows)" "Epic Games Launcher" "GOG GALAXY" "EA app" "Rockstar Games Launcher" "Ubisoft Connect"; do
l="$HOME/Applications/$a.app/Contents/MacOS/launcher"
[ -f "$l" ] && grep -q "scripts/play.sh" "$l" && grep -qF "ENGINE=\"$ENGINE\"" "$l" && apps+=("$HOME/Applications/$a.app")
done
@@ -48,7 +51,7 @@ if [ "${#apps[@]}" -gt 0 ]; then
fi
# 3. Bottles (this is where installed games live; can be tens of GB).
-for b in bottle steam-bottle epic-bottle gog-bottle xbox-bottle; do
+for b in bottle steam-bottle epic-bottle gog-bottle ea-bottle rockstar-bottle ubisoft-bottle xbox-bottle; do
d="$BASE/$b"
[ -d "$d" ] || continue
sz=$(du -sh "$d" 2>/dev/null | cut -f1)
@@ -99,15 +102,15 @@ fi
if [ -d "$ENGINE" ]; then
sz=$(du -sh "$ENGINE" 2>/dev/null | cut -f1)
if ask "Remove the engine ($sz, includes the GPTK payload; re-downloadable with soju install)?"; then
- for b in bottle epic-bottle gog-bottle; do stop_bottle "$b"; done
- rm -rf "$ENGINE"; REMOVED=1; echo " removed"
+ for b in bottle epic-bottle gog-bottle ea-bottle rockstar-bottle ubisoft-bottle; do stop_bottle "$b"; done
+ rm -rf "$ENGINE" "$BASE/cx26-engine-launchers"; REMOVED=1; echo " removed"
fi
fi
# 5. Caches and support files: downloaded installers and sources (build/),
# compiled helpers (*-support/), logs, and leftovers of an interrupted update.
extras=()
-for d in build steam-support epic-support gog-support logs cx26-engine.old cx26-engine.new soju.old; do
+for d in build steam-support epic-support gog-support launcher-support logs cx26-engine.old cx26-engine.new cx26-engine-launchers.new soju.old; do
[ -e "$BASE/$d" ] && extras+=("$BASE/$d")
done
for d in "$BASE"/reaper-*.log "$BASE"/*.tar.xz "$BASE"/*.part; do
diff --git a/site/content/index.json b/site/content/index.json
index f07f732772d..b0c086bde31 100644
--- a/site/content/index.json
+++ b/site/content/index.json
@@ -2,8 +2,8 @@
"out": "index.html",
"lang": "en",
"base": "",
- "title": "Soju – play Windows games from Steam, Battle.net, Epic, GOG and Xbox on Apple Silicon Macs",
- "description": "Soju is a free, open-source Mac app from Didim Labs that installs the official Windows launchers (Steam, Battle.net, Epic, GOG, Xbox PC) on M1–M4 Macs and puts all your games in one library.",
+ "title": "Soju – play Windows games from Steam, Battle.net, Epic, GOG, EA, Rockstar, Ubisoft and Xbox on Apple Silicon Macs",
+ "description": "Soju is a free, open-source Mac app from Didim Labs that installs the official Windows launchers (Steam, Battle.net, Epic, GOG, EA app, Rockstar, Ubisoft Connect, Xbox PC) on M1–M4 Macs and puts all your games in one library.",
"canonical": "https://didimlabs.com/",
"alternates": [
{
@@ -21,7 +21,7 @@
],
"og": {
"title": "Soju: Windows game launchers on Apple Silicon Macs",
- "description": "Free, open-source. Steam, Battle.net, Epic, GOG and Xbox PC games in one Mac library.",
+ "description": "Free, open-source. Steam, Battle.net, Epic, GOG, EA, Rockstar, Ubisoft and Xbox PC games in one Mac library.",
"image": "https://didimlabs.com/assets/soju-share.png",
"imageAlt": "Soju logo, a hand-drawn soju bottle and glass, next to the Soju library window"
},
@@ -94,9 +94,9 @@
"@id": "https://didimlabs.com/#soju",
"name": "Soju",
"url": "https://didimlabs.com/",
- "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip",
- "softwareVersion": "1.10.13",
- "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.",
+ "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip",
+ "softwareVersion": "1.11.0",
+ "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)",
"license": "https://www.gnu.org/licenses/gpl-3.0.html",
@@ -129,7 +129,7 @@
"@type": "HowToStep",
"position": 1,
"name": "Download the app",
- "text": "Soju-1.10.13-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."
+ "text": "Soju-1.11.0-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."
},
{
"@type": "HowToStep",
@@ -151,11 +151,11 @@
"type": "Hero",
"props": {
"title": "Soju",
- "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.",
+ "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.10.13",
- "href": "https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip",
+ "label": "Download Soju 1.11.0",
+ "href": "https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip",
"primary": true
},
{
@@ -191,6 +191,9 @@
"Battle.net",
"Epic Games",
"GOG GALAXY",
+ "EA app",
+ "Rockstar",
+ "Ubisoft Connect",
"Xbox PC"
]
}
@@ -209,7 +212,7 @@
"items": [
{
"title": "Real launchers",
- "text": "Battle.net, Epic and GOG share a Wine engine built from [CodeWeavers' sources](https://www.codeweavers.com/crossover/source) with Apple's D3DMetal. Steam gets its own Wine 11 setup with DXMT for D3D11 games."
+ "text": "Battle.net, Epic and GOG share a Wine engine built from [CodeWeavers' sources](https://www.codeweavers.com/crossover/source) 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."
},
{
"title": "One library",
@@ -346,7 +349,7 @@
"items": [
{
"title": "Download the app",
- "text": "[Soju-1.10.13-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-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.11.0-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-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",
@@ -483,8 +486,8 @@
},
"actions": [
{
- "label": "Download Soju 1.10.13",
- "href": "https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip",
+ "label": "Download Soju 1.11.0",
+ "href": "https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip",
"primary": true
},
{
diff --git a/site/content/ko.json b/site/content/ko.json
index d60d0c1233e..a3c0eafa857 100644
--- a/site/content/ko.json
+++ b/site/content/ko.json
@@ -3,7 +3,7 @@
"lang": "ko",
"base": "../",
"title": "소주(Soju) – 애플 실리콘 맥에서 스팀·배틀넷·에픽·GOG·Xbox 윈도우 게임 실행",
- "description": "소주는 Didim Labs가 만든 무료 오픈소스 맥 앱입니다. M1~M4 맥에 스팀, 배틀넷, 에픽, GOG, Xbox PC 윈도우 런처를 설치하고 모든 게임을 한 라이브러리에서 실행합니다.",
+ "description": "소주는 Didim Labs가 만든 무료 오픈소스 맥 앱입니다. M1~M4 맥에 스팀, 배틀넷, 에픽, GOG, EA, 락스타, 유비소프트, Xbox PC 윈도우 런처를 설치하고 모든 게임을 한 라이브러리에서 실행합니다.",
"canonical": "https://didimlabs.com/ko/",
"alternates": [
{
@@ -21,7 +21,7 @@
],
"og": {
"title": "소주: 맥에서 윈도우 게임 런처 실행",
- "description": "무료 오픈소스. 스팀, 배틀넷, 에픽, GOG, Xbox PC 게임을 맥 라이브러리 하나로.",
+ "description": "무료 오픈소스. 스팀, 배틀넷, 에픽, GOG, EA, 락스타, 유비소프트, Xbox PC 게임을 맥 라이브러리 하나로.",
"image": "https://didimlabs.com/assets/soju-share.png",
"imageAlt": "손으로 그린 소주병과 잔 소주 로고, 소주 라이브러리 화면"
},
@@ -65,11 +65,11 @@
"type": "Hero",
"props": {
"title": "소주 (Soju)",
- "lead": "애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.",
+ "lead": "애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, EA 앱, 락스타, 유비소프트 커넥트, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.",
"actions": [
{
- "label": "소주 1.10.13 다운로드",
- "href": "https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip",
+ "label": "소주 1.11.0 다운로드",
+ "href": "https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip",
"primary": true
},
{
@@ -105,6 +105,9 @@
"배틀넷",
"에픽게임즈",
"GOG GALAXY",
+ "EA app",
+ "Rockstar",
+ "Ubisoft Connect",
"Xbox PC"
]
}
@@ -250,7 +253,7 @@
"items": [
{
"title": "앱 받기",
- "text": "[Soju-1.10.13-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip)을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
+ "text": "[Soju-1.11.0-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip)을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
},
{
"title": "런처 고르기",
@@ -333,8 +336,8 @@
},
"actions": [
{
- "label": "소주 1.10.13 다운로드",
- "href": "https://github.com/BCD1210/soju/releases/download/v1.10.13/Soju-1.10.13-macos-arm64.zip",
+ "label": "소주 1.11.0 다운로드",
+ "href": "https://github.com/BCD1210/soju/releases/download/v1.11.0/Soju-1.11.0-macos-arm64.zip",
"primary": true
},
{
@@ -378,7 +381,7 @@
"@type": "HowToStep",
"position": 1,
"name": "앱 받기",
- "text": "Soju-1.10.13-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
+ "text": "Soju-1.11.0-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
},
{
"@type": "HowToStep",
diff --git a/tests/test_launchers.py b/tests/test_launchers.py
new file mode 100644
index 00000000000..4c68549b667
--- /dev/null
+++ b/tests/test_launchers.py
@@ -0,0 +1,41 @@
+"""EA app, Rockstar Games Launcher and Ubisoft Connect: install plan, component pin, wiring."""
+import json
+import os
+from pathlib import Path
+import subprocess
+import unittest
+
+ROOT = Path(__file__).resolve().parent.parent
+
+
+class LauncherTests(unittest.TestCase):
+ def test_plan_needs_the_engine(self):
+ env = dict(os.environ, SOJU_PLATFORMS="ea,rockstar,ubisoft")
+ out = subprocess.run(["bash", str(ROOT / "install.sh"), "--plan"], env=env,
+ capture_output=True, text=True, check=True).stdout
+ self.assertIn("platforms=ea rockstar ubisoft", out)
+ self.assertIn("cx_engine=1", out)
+ self.assertIn("steam_runtime=0", out)
+
+ def test_component_pin(self):
+ m = json.loads((ROOT / "resources/launcher-support.json").read_text())
+ self.assertTrue(m["url"].startswith("https://github.com/BCD1210/soju/releases/download/" + m["version"] + "/"))
+ self.assertRegex(m["sha256"], r"^[0-9a-f]{64}$")
+ for name in ("winemac.so", "dxmt/x86_64-unix/winemetal.so", "SOURCES.txt"):
+ self.assertIn(name, m["files"])
+ for arch in ("x86_64-windows", "i386-windows"):
+ for dll in ("d3d10core", "d3d11", "dxgi", "winemetal"):
+ self.assertIn("dxmt/%s/%s.dll" % (arch, dll), m["files"])
+
+ def test_play_modes_are_wired(self):
+ play = (ROOT / "scripts/play.sh").read_text()
+ cli = (ROOT / "scripts/soju").read_text()
+ reaper = (ROOT / "scripts/soju-reaper.sh").read_text()
+ for mode in ("ea", "rockstar", "ubisoft"):
+ self.assertIn(mode + "-kill", play)
+ self.assertIn(mode + "-install", cli)
+ self.assertIn(" %s)\n" % mode, reaper)
+
+
+if __name__ == "__main__":
+ unittest.main()