Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.
HTML apple-siliconbattle-netcrossover-alternatived3dmetaldiablo-ii-resurrecteddxmtea-appepic-gamesgame-porting-toolkitgogmac-gamingmacosmacos-gamingrockstar-gamessteamubisoft-connectwhisky-alternativewindows-gameswinewine-wrapper
Epic: use the menu-bar tray icon instead of a Dock reopen hook
mikey92da1574dd5649
diff --git a/README.ko.md b/README.ko.mdindex 6e0f271c917..658b8df8ca7 100644--- a/README.ko.md+++ b/README.ko.md@@ -74,7 +74,7 @@ scripts/play.sh kill # 전부 종료```bashscripts/create-epic-bottle.sh # 공식 Epic MSI, 무인 설치scripts/play.sh epic # 로그인 → 게임 설치·플레이-scripts/play.sh epic-kill # Epic 보틀 종료 (창을 닫아도 런처는 살아 있고, Dock 아이콘 클릭으로 복귀, Exit로 종료)+scripts/play.sh epic-kill # Epic 보틀 종료 (창을 닫아도 런처는 살아 있음 — macOS 메뉴바의 Epic 아이콘에서 열기/Exit, Windows 트레이와 동일)```게임은 아직 폭넓게 테스트하지 않았습니다. 커널 안티치트(EAC/BattlEye)가 필요한 게임은 Wine에서 돌지 않습니다.diff --git a/README.md b/README.mdindex 953fd7c8590..dd799e45bf2 100644--- a/README.md+++ b/README.md@@ -78,7 +78,7 @@ Same engine, own bottle, no extra tricks: Epic's CEF keeps its GPU process alive```bashscripts/create-epic-bottle.sh # official Epic MSI, unattendedscripts/play.sh epic # log in -> install & play-scripts/play.sh epic-kill # stop the Epic bottle (closing the window keeps the launcher running; click the Dock icon to bring it back, Exit quits)+scripts/play.sh epic-kill # stop the Epic bottle (closing the window keeps the launcher running; use the Epic icon in the macOS menu bar to reopen or Exit — same as the Windows tray)```Games have not been broadly tested yet; anything that needs kernel anti-cheat (EAC/BattlEye) will not run under Wine.diff --git a/docs/DIAGNOSIS.md b/docs/DIAGNOSIS.mdindex 3e0f45ed1cc..c57c868fb24 100644--- a/docs/DIAGNOSIS.md+++ b/docs/DIAGNOSIS.md@@ -86,7 +86,8 @@ CrossOver 바이너리 의존 0.- 실행: `EpicGamesLauncher.exe` 기본 인자 그대로. CEF가 `--type=gpu-process`를 별도 프로세스로 띄우는데 **죽지 않는다** — 배틀넷과 달리 `--in-process-gpu --use-gl=swiftshader`가 필요 없었다. 1826×857 메인창, 로그인, 스토어 UI 렌더링 확인.- wined3d는 `Using the Vulkan renderer for d3d10/11`(MoltenVK) 경로를 탔다. 런처 UI 자체는 이걸로 충분.- 로그의 `LogDPoP: Failed to create persistent DPoP key (0x80090029)`는 Linux Wine에서도 나오는 것으로 로그인에 영향 없음.-- 트레이 UX: 창 닫기 = 트레이 상주(Windows와 동일). Dock 클릭 복귀는 `WINE_DOCK_REOPEN_CMD`로 exe를 다시 실행(싱글 인스턴스라 기존 창만 올라옴). 이를 위해 winemac 패치를 CX 엔진 빌드에도 적용(`build-engine.sh`가 `patches/winemac-no-dock-icon.patch`를 적용).+- 트레이 UX: 창 닫기 = 숨김(Windows와 동일). Epic이 `Shell_NotifyIcon`으로 등록한 트레이 아이콘을 winemac systray가 **macOS 메뉴바 NSStatusItem**으로 올리고(`+systray` 트레이스로 확인), 그 메뉴로 창 열기·Exit가 된다 — 사용자 검증 완료. 시도했다 버린 것들: exe 재실행·`com.epicgames.launcher://` URL은 실행 중 인스턴스가 무시; 외부에서 `ShowWindow(SW_SHOW/RESTORE)`로 숨긴 창을 띄우면 보이긴 하지만 Slate가 "최소화" 상태를 유지해 **입력을 안 받는 먹통 창**이 된다. 그래서 Epic 모드는 `WINE_DOCK_REOPEN_CMD`를 쓰지 않는다.+- 부수 수정: `WINE_DOCK_REOPEN_CMD` 훅의 "보이는 창" 판정이 Epic의 화면 밖(-10000,-10000) 1×1 투명 보조창을 보이는 창으로 세던 것을 실제 화면 안·alpha>0·크기>1 조건으로 고쳤고, `build-engine.sh`가 CX 엔진에도 winemac 패치를 적용한다.결론: 벽 1(`WRITECOPY`)은 libcef 버전에 따라 걸리는 일반 문제일 수 있지만, 벽 1-b(GPU 프로세스 사망)는 Battle.net의 CEF 빌드/설정 고유. 다른 CEF 런처(GOG Galaxy·EA app·Ubisoft Connect)도 같은 절차로 먼저 "그냥 돌려보는" 것이 맞다.diff --git a/patches/winemac-no-dock-icon.patch b/patches/winemac-no-dock-icon.patchindex 9daa1f1f061..13264b99aa0 100644--- a/patches/winemac-no-dock-icon.patch+++ b/patches/winemac-no-dock-icon.patch@@ -1,5 +1,5 @@diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m-index 2a9dab2..7d41ce8 100644+index 2a9dab2..13e054b 100644--- a/dlls/winemac.drv/cocoa_app.m+++ b/dlls/winemac.drv/cocoa_app.m@@ -230,6 +230,34 @@ - (void) transformProcessToForeground:(BOOL)activateIfTransformed@@ -37,7 +37,7 @@ index 2a9dab2..7d41ce8 100644[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];if (activateIfTransformed)-@@ -2232,6 +2260,34 @@ - (BOOL) applicationShouldHandleReopen:(NSApplication*)theApplication hasVisible+@@ -2232,6 +2260,40 @@ - (BOOL) applicationShouldHandleReopen:(NSApplication*)theApplication hasVisible// Note that "flag" is often wrong. WineWindows are NSPanels and NSPanels// don't count as "visible windows" for this purpose.[self unminimizeWindowIfNoneVisible];@@ -53,10 +53,16 @@ index 2a9dab2..7d41ce8 100644+ BOOL anyVisible = NO;+ for (NSWindow* w in [NSApp windows])+ {-+ if ([w isKindOfClass:[WineWindow class]] && [w isVisible] && ![w isMiniaturized])++ /* Only count windows a user can actually see. Tray-parked apps++ (Epic Games Launcher) keep tiny transparent helper windows++ parked far off-screen, and those are still "visible" to AppKit. */++ if ([w isKindOfClass:[WineWindow class]] && [w isVisible] && ![w isMiniaturized]++ && [w alphaValue] > 0.0 && w.frame.size.width > 1 && w.frame.size.height > 1)+ {-+ anyVisible = YES;-+ break;++ BOOL onScreen = NO;++ for (NSScreen* screen in [NSScreen screens])++ if (NSIntersectsRect(w.frame, screen.frame)) { onScreen = YES; break; }++ if (onScreen) { anyVisible = YES; break; }+ }+ }+ if (!anyVisible)diff --git a/scripts/play.sh b/scripts/play.shindex c973027bdbe..d1da5fdcd8e 100755--- a/scripts/play.sh+++ b/scripts/play.sh@@ -76,15 +76,17 @@ case "$MODE" in;;epic) # Epic Games Launcher — same engine and env as Battle.net (verified 2026-08-29)# Runs as-is: Epic's CEF (EpicWebHelper) keeps its GPU process alive here,- # so none of the Battle.net command-line switches are needed. Closing the- # window parks the launcher in its (invisible) tray, like on Windows; a Dock- # click re-runs the exe, which just raises the running instance.+ # so none of the Battle.net command-line switches are needed.+ # Closing the window hides it, exactly like on Windows: Epic's tray icon+ # lands in the macOS menu bar (winemac systray -> NSStatusItem), and its+ # menu reopens the window or exits. Do NOT force the hidden window back via+ # ShowWindow() from outside — Slate keeps its "minimized" state and the+ # window comes back unresponsive.EPIC="C:\\Program Files\\Epic Games\\Launcher\\Portal\\Binaries\\Win64\\EpicGamesLauncher.exe"[[ -f "$WINEPREFIX/drive_c/Program Files/Epic Games/Launcher/Portal/Binaries/Win64/EpicGamesLauncher.exe" ]] || \{ echo "Epic Games Launcher not found — run scripts/create-epic-bottle.sh first"; exit 1; }pgrep -f "soju-reaper.sh $WINEPREFIX" >/dev/null 2>&1 || \{ [ -x "$REAPER" ] && ( "$REAPER" "$WINEPREFIX" "$ENGINE/bin/wineserver" epic >/dev/null 2>&1 & ); }- export WINE_DOCK_REOPEN_CMD="'$ENGINE/bin/wine' '$EPIC'"exec "$ENGINE/bin/wine" "$EPIC" "${@:2}";;epic-kill) # Stop everything in the Epic bottle