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
Localize all script comments and user-facing messages to English
mikey92fa1712ec7768
diff --git a/install.sh b/install.shindex 74f4069ac95..3c9afb0d937 100644--- a/install.sh+++ b/install.sh@@ -17,25 +17,25 @@ TTY=/dev/ttysay(){ printf '\n\033[1m%s\033[0m\n' "$*"; }-[ "$(uname -m)" = "arm64" ] || { echo "Apple Silicon Mac 전용입니다."; exit 1; }-/usr/bin/pgrep -q oahd || { echo "Rosetta 2가 필요합니다: softwareupdate --install-rosetta"; exit 1; }+[ "$(uname -m)" = "arm64" ] || { echo "This installer is for Apple Silicon Macs only."; exit 1; }+/usr/bin/pgrep -q oahd || { echo "Rosetta 2 is required: softwareupdate --install-rosetta"; exit 1; }mkdir -p "$BASE"-# ---------- 1. 엔진 ----------+# ---------- 1. Engine ----------if [ -x "$ENGINE/bin/wine" ]; then- say "[1/4] 엔진이 이미 있습니다 — 건너뜀"+ say "[1/4] Engine already present - skipping"else- say "[1/4] 프리빌드 엔진 다운로드 (~수백MB, GPL — 소스: CodeWeavers 공개 Wine)"+ say "[1/4] Downloading prebuilt engine (~350MB, GPL - built from CodeWeavers' published Wine sources)"URL=$(curl -fsSL "https://api.github.com/repos/$REPO/releases/latest" \| grep -o '"browser_download_url": *"[^"]*soju-engine[^"]*"' | head -1 | grep -o 'https[^"]*')- [ -n "$URL" ] || { echo "릴리스 자산을 찾지 못했습니다."; exit 1; }+ [ -n "$URL" ] || { echo "Could not find the engine release asset."; exit 1; }curl -fL "$URL" -o "$BASE/engine.tar.xz"mkdir -p "$ENGINE"tar -xJf "$BASE/engine.tar.xz" -C "$ENGINE"rm -f "$BASE/engine.tar.xz"DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib" "$ENGINE/bin/wine" --version >/dev/null \- && echo "엔진 확인: $(DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib" "$ENGINE/bin/wine" --version)"+ && echo "Engine OK: $(DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib" "$ENGINE/bin/wine" --version)"fi# ---------- 2. Apple GPTK ----------@@ -58,37 +58,37 @@ install_gptk(){&& for f in d3d10.so d3d11.so d3d12.so dxgi.so; do ln -sf ../../external/libd3dshared.dylib "$f"; done )}if GPTK_OK; then- say "[2/4] Apple GPTK 이미 설치됨 — 건너뜀"+ say "[2/4] Apple GPTK already installed - skipping"else- say "[2/4] Apple Game Porting Toolkit 필요 (무료, 1회)"+ say "[2/4] Apple Game Porting Toolkit needed (free, one time)"if SRC=$(find_gptk); then- echo "발견: $SRC — 자동 설치"+ echo "Found: $SRC - installing automatically"install_gptk "$SRC"elsecat <<'EOT'- 게임 실행에 애플의 파일 하나(libd3dshared)가 필요합니다. 애플이 재배포를 금지해서- 직접 받아야 합니다 (무료 Apple ID면 됩니다):- 1) https://developer.apple.com/games/game-porting-toolkit/ 접속- 2) "Game Porting Toolkit" dmg 다운로드 후 더블클릭(마운트)- 3) 이 창으로 돌아와 Enter+ Running games needs one Apple file (libd3dshared). Apple forbids redistributing+ it, so you have to download it yourself (a free Apple ID is enough):+ 1) Open https://developer.apple.com/games/game-porting-toolkit/+ 2) Download the "Game Porting Toolkit" dmg and double-click it (mount)+ 3) Come back to this window and press EnterEOTwhile true; do- read -r -p " 준비되면 Enter (건너뛰려면 s): " ans < "$TTY" || ans=s- [ "$ans" = "s" ] && { echo " 건너뜀 — 나중에 scripts/get-gptk.sh 실행"; break; }- if SRC=$(find_gptk); then install_gptk "$SRC"; echo " 설치됨"; break; fi- echo " 아직 못 찾음 — dmg가 마운트됐는지 확인하세요"+ read -r -p " Press Enter when ready (or s to skip): " ans < "$TTY" || ans=s+ [ "$ans" = "s" ] && { echo " Skipped - run scripts/get-gptk.sh later"; break; }+ if SRC=$(find_gptk); then install_gptk "$SRC"; echo " Installed"; break; fi+ echo " Not found yet - make sure the dmg is mounted"donefifi-# ---------- 3. 보틀 + Battle.net ----------+# ---------- 3. Bottle + Battle.net ----------export WINEPREFIX="$BOTTLE" WINEDEBUG=fixme-all WINEMSYNC=1 ROSETTA_ADVERTISE_AVX=1export CX_APPLEGPTK_LIBD3DSHARED_PATH="$ENGINE/lib/external/libd3dshared.dylib"export DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib"if [ -f "$BOTTLE/drive_c/Program Files (x86)/Battle.net/Battle.net.exe" ]; then- say "[3/4] Battle.net 이미 설치됨 — 건너뜀"+ say "[3/4] Battle.net already installed - skipping"else- say "[3/4] 보틀 생성 + Battle.net 자동 설치 (5~10분)"+ say "[3/4] Creating the bottle + installing Battle.net automatically (5-10 min)""$ENGINE/bin/wine" wineboot -u >/dev/null 2>&1 || true"$ENGINE/bin/wineserver" -wW="$ENGINE/bin/wine"@@ -106,13 +106,13 @@ else[ -f "$BOTTLE/drive_c/Program Files (x86)/Battle.net/Battle.net.exe" ] && break; sleep 10done[ -f "$BOTTLE/drive_c/Program Files (x86)/Battle.net/Battle.net.exe" ] \- || { echo "설치 실패 — $BOTTLE/drive_c/ProgramData/Battle.net/Setup 로그 확인"; exit 1; }+ || { echo "Install failed - check the logs in $BOTTLE/drive_c/ProgramData/Battle.net/Setup"; exit 1; }"$ENGINE/bin/wineserver" -k 2>/dev/null || true- echo "Battle.net 설치 완료"+ echo "Battle.net installed"fi-# ---------- 4. 앱 아이콘 -----------say "[4/4] Battle.net.app 생성"+# ---------- 4. App bundle ----------+say "[4/4] Creating Battle.net.app"APP="$HOME/Applications/Battle.net.app"mkdir -p "$APP/Contents/MacOS"cat > "$APP/Contents/MacOS/launcher" <<EOF@@ -137,5 +137,5 @@ cat > "$APP/Contents/Info.plist" <<'EOF'EOFcodesign -f -s - "$APP" 2>/dev/null || true-say "완료! 🍶 ~/Applications/Battle.net.app 을 더블클릭 → 로그인 → 게임 설치·플레이"-GPTK_OK || echo "※ GPTK를 건너뛰었습니다 — 게임 실행 전 scripts/get-gptk.sh 를 꼭 실행하세요."+say "Done! 🍶 Double-click ~/Applications/Battle.net.app, log in, install and play"+GPTK_OK || echo "NOTE: GPTK was skipped - run scripts/get-gptk.sh before launching a game."diff --git a/scripts/build-engine.sh b/scripts/build-engine.shindex c37e34d5847..7a317edbe8b 100755--- a/scripts/build-engine.sh+++ b/scripts/build-engine.sh@@ -1,10 +1,11 @@#!/usr/bin/env bash-# CrossOver 26.3의 GPL 공개 소스에서 wine 11.0 엔진을 직접 빌드한다 (무료·합법).-# 검증: 이 레시피의 각 단계는 2026-08 실제 빌드에서 개별 검증됨 (Battle.net + D2R 인게임 구동 확인).-# 주의: 처음부터 끝까지 한 번에 재실행은 미검증 — 이슈 환영.+# Build the wine 11.0 engine from CrossOver 26.3's published GPL sources (free and legal).+# Verified: each step of this recipe was verified individually during the real+# 2026-08 build (Battle.net + D2R in-game). Caveat: a single clean end-to-end+# re-run is untested — issues welcome.#-# 요구: Apple Silicon + Rosetta 2, Xcode CLT, Homebrew(arm64).-# 사전 실행: scripts/get-components.sh (dylib+mono 자동 확보 — CrossOver 불필요)+# Requirements: Apple Silicon + Rosetta 2, Xcode CLT, Homebrew (arm64).+# Run first: scripts/get-components.sh (fetches dylibs+mono — no CrossOver needed)set -euo pipefailWORK="${WORK:-$HOME/.battlenet-macos/build}"@@ -12,22 +13,22 @@ SRC_URL="https://media.codeweavers.com/pub/crossover/source/crossover-sources-26FT_URL="https://download.savannah.gnu.org/releases/freetype/freetype-2.13.3.tar.gz"DEPS="$WORK/deps"ENGINE="${ENGINE:-$HOME/.battlenet-macos/cx26-engine}"-# x86_64 dylib은 get-components.sh가 $DEPS/lib에 미리 받아둔다 (frankea GPL 릴리스)+# get-components.sh pre-fetches the x86_64 dylibs into $DEPS/lib (frankea GPL release)-echo "==> 빌드 도구 설치 (bison 3.x, mingw-w64)"+echo "==> Installing build tools (bison 3.x, mingw-w64)"brew list bison >/dev/null 2>&1 || brew install bisonbrew list mingw-w64 >/dev/null 2>&1 || brew install mingw-w64-brew list gnutls >/dev/null 2>&1 || brew install gnutls # 헤더용+brew list gnutls >/dev/null 2>&1 || brew install gnutls # for headersexport PATH="/opt/homebrew/opt/bison/bin:/opt/homebrew/bin:$PATH"mkdir -p "$WORK" "$DEPS"-echo "==> CrossOver 26.3 소스 + freetype 다운로드"+echo "==> Downloading CrossOver 26.3 sources + freetype"[ -f "$WORK/cx-src.tar.gz" ] || curl -fL "$SRC_URL" -o "$WORK/cx-src.tar.gz"tar -xzf "$WORK/cx-src.tar.gz" -C "$WORK" sources/wineWINE="$WORK/sources/wine"-echo "==> x86_64 freetype 빌드 (Rosetta)"+echo "==> Building x86_64 freetype (Rosetta)"[ -f "$WORK/ft.tar.gz" ] || curl -fL "$FT_URL" -o "$WORK/ft.tar.gz"tar -xzf "$WORK/ft.tar.gz" -C "$WORK"( cd "$WORK/freetype-2.13.3" && arch -x86_64 ./configure --prefix="$DEPS" \@@ -35,9 +36,9 @@ tar -xzf "$WORK/ft.tar.gz" -C "$WORK"--enable-shared --disable-static CC="clang -arch x86_64" \&& arch -x86_64 make -j"$(sysctl -n hw.ncpu)" && arch -x86_64 make install )-echo "==> x86_64 의존 dylib 확인 (get-components.sh 산출물)"+echo "==> Checking the x86_64 dependency dylibs (get-components.sh output)"ls "$DEPS/lib/libgnutls.30.dylib" "$DEPS/lib/libMoltenVK.dylib" >/dev/null 2>&1 \- || { echo "dylib 없음 — 먼저 scripts/get-components.sh 를 실행하세요"; exit 1; }+ || { echo "dylibs missing — run scripts/get-components.sh first"; exit 1; }echo "==> wine configure (x86_64, new-wow64 i386+x86_64)"mkdir -p "$WORK/wine-build"; cd "$WORK/wine-build"@@ -46,24 +47,25 @@ arch -x86_64 "$WINE/configure" \FREETYPE_CFLAGS="-I$DEPS/include/freetype2" FREETYPE_LIBS="-L$DEPS/lib -lfreetype" \GNUTLS_CFLAGS="-I/opt/homebrew/include" GNUTLS_LIBS="-L$DEPS/lib -lgnutls" \LDFLAGS="-L$DEPS/lib" CC="clang -arch x86_64" CXX="clang++ -arch x86_64"-# soname 보정 (dylib 실제 이름으로)+# Fix the soname to the dylib's real namesed -i '' 's|#define SONAME_LIBGNUTLS.*|#define SONAME_LIBGNUTLS "libgnutls.30.dylib"|' include/config.hecho "==> wine make"arch -x86_64 make -j"$(sysctl -n hw.ncpu)"arch -x86_64 make install DESTDIR="$WORK/install"-echo "==> 엔진 조립 (dylib 배치 + D3DMetal + rpath + entitlement 서명)"+echo "==> Assembling the engine (dylibs + D3DMetal + rpath + entitlement signing)"rm -rf "$ENGINE"; mkdir -p "$ENGINE"cp -Rc "$WORK/install/usr/local/." "$ENGINE/"cp -c "$DEPS/lib/"*.dylib "$ENGINE/lib/" 2>/dev/null || true-# D3DMetal/libd3dshared(Apple GPTK)는 별도 단계: scripts/get-gptk.sh 실행-# (libd3dshared는 게임 로더의 Rosetta 통과에 필수. 그래픽은 없으면 vkd3d로 동작)-# wine-mono 10.4.1 (get-components.sh가 받아둔 공식 릴리스)+# D3DMetal/libd3dshared (Apple GPTK) is a separate step: run scripts/get-gptk.sh+# (libd3dshared is required for the game loader to pass Rosetta; without it,+# graphics fall back to vkd3d)+# wine-mono 10.4.1 (official release fetched by get-components.sh)mkdir -p "$ENGINE/share/wine/mono"cp -Rc "$WORK/mono/wine-mono-10.4.1" "$ENGINE/share/wine/mono/" 2>/dev/null \- || echo "경고: mono 없음 — get-components.sh 실행 여부 확인"-# rpath + entitlement 서명 (Rosetta/실행메모리)+ || echo "WARNING: mono missing — check that get-components.sh was run"+# rpath + entitlement signing (Rosetta / executable memory)cat > "$WORK/ent.plist" <<'PL'<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>@@ -79,11 +81,11 @@ for b in wine wine64 wineserver wine-preloader; docodesign -f -s - --entitlements "$WORK/ent.plist" "$f" 2>/dev/null || truedone-echo "==> 완료: $ENGINE"+echo "==> Done: $ENGINE"DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib" "$ENGINE/bin/wine" --versionecho-echo "실행 예:"-echo " export WINEPREFIX=<보틀> CX_GRAPHICS_BACKEND=d3dmetal WINEMSYNC=1"+echo "Example launch:"+echo " export WINEPREFIX=<bottle> CX_GRAPHICS_BACKEND=d3dmetal WINEMSYNC=1"echo " export DYLD_FALLBACK_LIBRARY_PATH='$ENGINE/lib:/usr/lib'"echo " '$ENGINE/bin/wine' 'C:\\\\Program Files (x86)\\\\Battle.net\\\\Battle.net Launcher.exe' --disable-gpu-compositing"-echo " (Apple 보호 바이너리(nohup 등)를 체인에 두면 DYLD_* 가 제거되니 서브셸 &로 백그라운드 실행)"+echo " (Apple-protected binaries (nohup, ...) in the chain strip DYLD_* — background it with a subshell & instead)"diff --git a/scripts/create-bottle.sh b/scripts/create-bottle.shindex 49db6bf35fc..2fede1a3d71 100755--- a/scripts/create-bottle.sh+++ b/scripts/create-bottle.sh@@ -1,6 +1,7 @@#!/usr/bin/env bash-# CrossOver 없이 새 보틀을 만들고 Blizzard 공식 설치기로 Battle.net을 설치한다.-# 검증: 2026-08-27 — 순정 보틀에서 설치·로그인 화면까지 자동 완료 확인.+# Create a fresh bottle without CrossOver and install Battle.net with Blizzard's+# official installer.+# Verified 2026-08-27: automatic install through to the login screen on a pristine bottle.set -euo pipefailENGINE="${ENGINE:-$HOME/.battlenet-macos/cx26-engine}"@@ -10,18 +11,19 @@ export WINEMSYNC=1 ROSETTA_ADVERTISE_AVX=1export CX_APPLEGPTK_LIBD3DSHARED_PATH="$ENGINE/lib/external/libd3dshared.dylib"export DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib"-[ -x "$ENGINE/bin/wine" ] || { echo "엔진 없음 — build-engine.sh 먼저"; exit 1; }-[ -f "$CX_APPLEGPTK_LIBD3DSHARED_PATH" ] || { echo "libd3dshared 없음 — get-gptk.sh 먼저"; exit 1; }+[ -x "$ENGINE/bin/wine" ] || { echo "Engine not found — run build-engine.sh first"; exit 1; }+[ -f "$CX_APPLEGPTK_LIBD3DSHARED_PATH" ] || { echo "libd3dshared not found — run get-gptk.sh first"; exit 1; }WORK="${WORK:-$HOME/.battlenet-macos/build}"; mkdir -p "$WORK"-echo "==> 프리픽스 초기화: $WINEPREFIX"+echo "==> Initializing the prefix: $WINEPREFIX""$ENGINE/bin/wine" wineboot -u >/dev/null 2>&1 || true"$ENGINE/bin/wineserver" -w-echo "==> 크래시 대화상자 무음화 (무해한 시작 크래시 2건이 창을 띄우지 않도록)"-# 배틀넷은 시작 시 보조 스레드 2개가 무해하게 죽는데, 기본 설정에선 매번 에러 창이 뜬다.-# 스레드를 조용히 동결시키는 디버거로 교체 (상세: docs/DIAGNOSIS.md)+echo "==> Silencing crash dialogs (two harmless startup crashes would pop windows)"+# Battle.net harmlessly loses two helper threads at startup; by default each one+# pops an error dialog. Swap in a debugger that quietly freezes the thread+# (details: docs/DIAGNOSIS.md).W="$ENGINE/bin/wine""$W" reg add "HKCU\\Software\\Wine\\WineDbg" /v ShowCrashDialog /t REG_DWORD /d 0 /f >/dev/null 2>&1for HIVE in "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug" \@@ -31,22 +33,22 @@ for HIVE in "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug" \done"$ENGINE/bin/wineserver" -w-echo "==> Battle.net 설치기 다운로드 (Blizzard 공식)"+echo "==> Downloading the Battle.net installer (official Blizzard)"SETUP="$WORK/Battle.net-Setup.exe"[ -f "$SETUP" ] || curl -fL "https://downloader.battle.net/download/getInstaller?os=win&installer=Battle.net-Setup.exe" -o "$SETUP"-echo "==> 설치 실행 (몇 분 소요, 자동 진행)"+echo "==> Running the installer (a few minutes, fully automatic)""$ENGINE/bin/wine" "$SETUP" --lang=enUS >/dev/null 2>&1 || true-# 설치 완료 대기 (최대 10분)+# Wait for the install to finish (up to 10 minutes)for i in $(seq 1 60); do[ -f "$WINEPREFIX/drive_c/Program Files (x86)/Battle.net/Battle.net.exe" ] && breaksleep 10doneBN="$WINEPREFIX/drive_c/Program Files (x86)/Battle.net"-[ -f "$BN/Battle.net.exe" ] || { echo "설치 실패 — 로그: $WINEPREFIX/drive_c/ProgramData/Battle.net/Setup"; exit 1; }-echo "==> Battle.net 설치 완료"+[ -f "$BN/Battle.net.exe" ] || { echo "Install failed — logs: $WINEPREFIX/drive_c/ProgramData/Battle.net/Setup"; exit 1; }+echo "==> Battle.net installed""$ENGINE/bin/wineserver" -k 2>/dev/null || true-echo "==> 끝. 이제 실행: scripts/play.sh battlenet"-echo " (게임은 배틀넷 로그인 후 앱 내에서 설치하면 됩니다)"+echo "==> Done. Now run: scripts/play.sh battlenet"+echo " (Install games inside the app after logging in to Battle.net)"diff --git a/scripts/create-steam-bottle.sh b/scripts/create-steam-bottle.shindex 0ee2d667357..8586bcfe3de 100755--- a/scripts/create-steam-bottle.sh+++ b/scripts/create-steam-bottle.sh@@ -1,11 +1,13 @@#!/usr/bin/env bash-# Steam(Windows판) 설치 — Steam판 D2R(Infernal Edition) 등 Steam 게임용.+# Install Steam (Windows build) — for Steam games such as the Steam edition of+# D2R (Infernal Edition).#-# 중요: Steam은 Battle.net과 달리 CX 소스 엔진이 아니라 homebrew wine-stable로 돌린다.-# CX 계열 빌드에서는 Steam의 CEF UI가 렌더링되지 않는 문제(검은 화면)가 있고,-# 검증된 무료 조합은 wine-stable 11 + steamwebhelper 래퍼다.-# 래퍼 출처: github.com/notpop/steam-on-m1-wine (MIT) — third_party/ 에 소스+라이선스 동봉.-# 검증: 2026-08-27, M4 Pro / macOS 26.5 — 로그인 화면 렌더링 확인.+# Important: unlike Battle.net, Steam runs on Homebrew wine-stable, not the CX+# source engine. CX-derived builds cannot render Steam's CEF UI (black screen);+# the verified free combination is wine-stable 11 + the steamwebhelper wrapper.+# Wrapper source: github.com/notpop/steam-on-m1-wine (MIT) — source and license+# vendored in third_party/.+# Verified 2026-08-27 on M4 Pro / macOS 26.5 — login screen renders.set -euo pipefailexport WINEPREFIX="${WINEPREFIX:-$HOME/.battlenet-macos/steam-bottle}"@@ -17,18 +19,18 @@ WINE="$WINESTABLE_APP/Contents/Resources/wine/bin/wine"# ---------- 1. wine-stable ----------if [ ! -x "$WINE" ]; then- echo "==> homebrew wine-stable 설치 (무료, ~500MB)"- # gstreamer-runtime 의존성이 sudo를 요구하므로 건너뛴다 (Steam UI에는 불필요)+ echo "==> Installing Homebrew wine-stable (free, ~500MB)"+ # The gstreamer-runtime cask dependency demands sudo, so skip it (Steam's UI doesn't need it)brew install --cask --skip-cask-deps wine-stable- echo "==> Gatekeeper 격리 해제 (수 분 소요)"+ echo "==> Removing the Gatekeeper quarantine flag (takes a few minutes)"xattr -dr com.apple.quarantine "$WINESTABLE_APP" 2>/dev/null || truefi"$WINE" --version-# ---------- 2. webhelper 래퍼 -----------# Steam의 CEF를 --disable-gpu --single-process로 강제해 검은 화면을 우회한다.+# ---------- 2. webhelper wrapper ----------+# Forces Steam's CEF into --disable-gpu --single-process to avoid the black screen.if [ ! -f "$SUPPORT/steamwebhelper-wrapper.exe" ]; then- echo "==> 래퍼 빌드 (mingw-w64)"+ echo "==> Building the wrapper (mingw-w64)"command -v x86_64-w64-mingw32-gcc >/dev/null || brew install mingw-w64x86_64-w64-mingw32-gcc -O2 -Wall -municode -DUNICODE -D_UNICODE \-o "$SUPPORT/steamwebhelper-wrapper.exe" \@@ -36,19 +38,19 @@ if [ ! -f "$SUPPORT/steamwebhelper-wrapper.exe" ]; then-static -lshell32 -mwindowsfi-# ---------- 3. 프리픽스 + Steam 설치 -----------echo "==> 프리픽스 초기화: $WINEPREFIX"+# ---------- 3. Prefix + Steam install ----------+echo "==> Initializing the prefix: $WINEPREFIX""$WINE" wineboot -u >/dev/null 2>&1 || true"$WINESTABLE_APP/Contents/Resources/wine/bin/wineserver" -w 2>/dev/null || trueSETUP="$WORK/SteamSetup.exe"[ -f "$SETUP" ] || curl -fL "https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe" -o "$SETUP"-echo "==> Steam 무인 설치"+echo "==> Installing Steam silently""$WINE" "$SETUP" /S >/dev/null 2>&1 || true"$WINESTABLE_APP/Contents/Resources/wine/bin/wineserver" -w 2>/dev/null || true-[ -f "$WINEPREFIX/drive_c/Program Files (x86)/Steam/steam.exe" ] || { echo "설치 실패"; exit 1; }+[ -f "$WINEPREFIX/drive_c/Program Files (x86)/Steam/steam.exe" ] || { echo "Install failed"; exit 1; }-# ---------- 4. 마무리 ----------+# ---------- 4. Finish ----------cp -f /etc/ssl/cert.pem "$WINEPREFIX/drive_c/windows/cacert.pem" 2>/dev/null || true-echo "==> 완료. 실행: scripts/play.sh steam (래퍼는 play.sh가 자동 배치)"-echo " 입력이 ?? 로 보이면 macOS 입력기를 영어(ABC)로 전환하세요."+echo "==> Done. Run: scripts/play.sh steam (play.sh deploys the wrapper automatically)"+echo " If typed text shows up as ??, switch the macOS input source to English (ABC)."diff --git a/scripts/get-components.sh b/scripts/get-components.shindex 7d21359441b..3c9b5945b1b 100755--- a/scripts/get-components.sh+++ b/scripts/get-components.sh@@ -1,26 +1,26 @@#!/usr/bin/env bash-# CrossOver 없이 런타임 구성요소를 확보한다:-# - x86_64 dylib 스택(gnutls/nettle/MoltenVK 등): frankea/Whisky의 GPL 엔진 릴리스에서-# - wine-mono: 공식 wine-mono 릴리스에서-# (D3DMetal/libd3dshared는 Apple GPTK — get-gptk.sh 참고)+# Fetch the runtime components without CrossOver:+# - x86_64 dylib stack (gnutls/nettle/MoltenVK, ...): from frankea/Whisky's GPL engine release+# - wine-mono: from the official wine-mono release+# (D3DMetal/libd3dshared come from Apple GPTK — see get-gptk.sh)set -euo pipefailWORK="${WORK:-$HOME/.battlenet-macos/build}"DEPS="$WORK/deps"; mkdir -p "$DEPS/lib" "$WORK"-echo "==> x86_64 dylib 스택 다운로드 (frankea/Whisky Libraries, GPL)"+echo "==> Downloading the x86_64 dylib stack (frankea/Whisky Libraries, GPL)"LIBS_URL="https://github.com/frankea/Whisky/releases/download/v3.1.1/Libraries.tar.gz"[ -f "$WORK/whisky-libs.tar.gz" ] || curl -fL "$LIBS_URL" -o "$WORK/whisky-libs.tar.gz"mkdir -p "$WORK/whisky-libs"tar -xzf "$WORK/whisky-libs.tar.gz" -C "$WORK/whisky-libs"cp -f "$WORK/whisky-libs/Libraries/Wine/lib/"*.dylib "$DEPS/lib/" 2>/dev/null-echo " dylib $(ls "$DEPS/lib"/*.dylib | wc -l | tr -d ' ')개 확보"+echo " Got $(ls "$DEPS/lib"/*.dylib | wc -l | tr -d ' ') dylibs"-echo "==> wine-mono 10.4.1 다운로드 (공식 릴리스)"+echo "==> Downloading wine-mono 10.4.1 (official release)"MONO_URL="https://github.com/wine-mono/wine-mono/releases/download/wine-mono-10.4.1/wine-mono-10.4.1-x86.tar.xz"[ -f "$WORK/wine-mono.tar.xz" ] || curl -fL "$MONO_URL" -o "$WORK/wine-mono.tar.xz"mkdir -p "$WORK/mono"tar -xJf "$WORK/wine-mono.tar.xz" -C "$WORK/mono"-echo " mono 확보: $(ls "$WORK/mono" | head -1)"+echo " Got mono: $(ls "$WORK/mono" | head -1)"-echo "==> 완료. build-engine.sh가 이 경로를 자동 사용합니다: $DEPS"+echo "==> Done. build-engine.sh picks this up automatically: $DEPS"diff --git a/scripts/get-gptk.sh b/scripts/get-gptk.shindex 8e6422c8f9e..8e0bcc31e54 100755--- a/scripts/get-gptk.sh+++ b/scripts/get-gptk.sh@@ -1,21 +1,25 @@#!/usr/bin/env bash-# Apple Game Porting Toolkit에서 libd3dshared + D3DMetal.framework를 엔진에 설치한다.+# Install libd3dshared + D3DMetal.framework from Apple's Game Porting Toolkit+# into the engine.#-# 왜 필요한가: libd3dshared는 D2R 로더(안티치트)가 Rosetta 2를 통과하는 데 필수다-# (비네이티브 코드영역 등록). 그래픽(D3DMetal)도 이걸로 제공된다. Apple이 재배포를-# 금지하므로 사용자가 직접 받아야 한다 — 무료 Apple 계정이면 된다.+# Why it's needed: libd3dshared is required for D2R's loader (anti-cheat) to get+# through Rosetta 2 (it registers non-native code regions). It also provides the+# graphics backend (D3DMetal). Apple forbids redistributing it, so you download+# it yourself — a free Apple ID is enough.#-# 1) https://developer.apple.com/games/game-porting-toolkit/ 에서-# "Game Porting Toolkit" dmg 다운로드 (Apple ID 로그인 필요, 무료)-# 2) dmg를 연 상태에서(또는 경로 지정) 이 스크립트 실행:-# scripts/get-gptk.sh # 마운트된 볼륨 자동 탐색-# scripts/get-gptk.sh /path/to/GPTK # 직접 경로 지정+# 1) Download the "Game Porting Toolkit" dmg from+# https://developer.apple.com/games/game-porting-toolkit/+# (requires an Apple ID sign-in, free)+# 2) With the dmg mounted (or passing a path), run this script:+# scripts/get-gptk.sh # auto-detect the mounted volume+# scripts/get-gptk.sh /path/to/GPTK # explicit path#-# 대안: CrossOver(체험판 포함)가 설치돼 있으면 거기서 자동 추출한다.+# Alternative: if CrossOver (trial included) is installed, it is extracted from+# there automatically.set -euo pipefailENGINE="${ENGINE:-$HOME/.battlenet-macos/cx26-engine}"-[ -d "$ENGINE/lib" ] || { echo "엔진이 없습니다. 먼저 build-engine.sh 실행."; exit 1; }+[ -d "$ENGINE/lib" ] || { echo "Engine not found. Run build-engine.sh first."; exit 1; }find_payload() {local roots=("$@")@@ -33,24 +37,24 @@ if [ $# -ge 1 ]; thenSRC=$(find_payload "$1") || truefiif [ -z "$SRC" ]; then- # 마운트된 GPTK dmg 자동 탐색+ # Auto-detect a mounted GPTK dmgSRC=$(find_payload /Volumes/Game* /Volumes/*orting* 2>/dev/null) || truefiif [ -z "$SRC" ]; then- # CrossOver 설치본에서 추출 (대안 경로)+ # Extract from an installed CrossOver (fallback path)SRC=$(find_payload "/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/lib64/apple_gptk") || truefiif [ -z "$SRC" ]; then- echo "libd3dshared.dylib를 찾지 못했습니다."- echo "GPTK dmg를 마운트했는지, 또는 경로 인자를 확인하세요."+ echo "Could not find libd3dshared.dylib."+ echo "Check that the GPTK dmg is mounted, or pass its path as an argument."exit 1fi-echo "==> GPTK 페이로드: $SRC"+echo "==> GPTK payload: $SRC"mkdir -p "$ENGINE/lib/external"cp -Rf "$SRC/D3DMetal.framework" "$ENGINE/lib/external/" 2>/dev/null || truecp -f "$SRC/libd3dshared.dylib" "$ENGINE/lib/external/"-# 심링크 배선 (복사 금지! @loader_path 규칙)+# Wire the symlinks (never copy! @loader_path rule)( cd "$ENGINE/lib/wine/x86_64-unix" && for f in d3d10.so d3d11.so d3d12.so dxgi.so; do ln -sf ../../external/libd3dshared.dylib "$f"; done )-echo "==> 설치 완료: $ENGINE/lib/external"-echo " (D3DMetal.framework가 없고 libd3dshared만 있어도 게임은 vkd3d 그래픽으로 동작합니다)"+echo "==> Installed to: $ENGINE/lib/external"+echo " (With only libd3dshared and no D3DMetal.framework, games still run on vkd3d graphics)"diff --git a/scripts/play.sh b/scripts/play.shindex 2876c4c7633..e6c8381d7ac 100755--- a/scripts/play.sh+++ b/scripts/play.sh@@ -1,20 +1,23 @@#!/usr/bin/env bash-# 디아블로 II 레저렉션 — 완전 무료 스택 실행 스크립트 (최종 검증 조합)+# Diablo II: Resurrected — fully free stack launcher (final verified combination)#-# 구성: 자체 빌드 wine 11.0 (CrossOver 26.3 GPL 소스) + D3DMetal(Apple GPTK)-# 검증: 2026-08-27 — Battle.net 로그인/Agent/D2R 인게임 구동 확인+# Stack: self-built wine 11.0 (CrossOver 26.3 GPL sources) + D3DMetal (Apple GPTK)+# Verified 2026-08-27: Battle.net login / Agent / D2R in-game.#-# 핵심 열쇠 3개 (이걸 몰라서 며칠 걸렸다):-# 1) ROSETTA_ADVERTISE_AVX=1 — D2R 로더가 AVX 명령어 필수. 없으면 무한 대기(86MB 정지).-# 2) D3DMetal 심링크 레이아웃 — lib/external에 실물, x86_64-unix엔 심링크.-# 복사하면 @loader_path가 어긋나 assertion 루프. (frankea README 참고)-# 3) Apple 보호 바이너리(nohup/arch 등)를 실행 체인에 두지 말 것 — DYLD_* 가 제거됨.+# The three keys (finding these took days):+# 1) ROSETTA_ADVERTISE_AVX=1 — D2R's loader requires AVX. Without it the game+# waits forever (stuck at ~86MB RAM).+# 2) D3DMetal symlink layout — real files in lib/external, symlinks in+# x86_64-unix. Copying breaks @loader_path and causes an assertion loop+# (frankea's README warns about this).+# 3) Never put Apple-protected binaries (nohup/arch, ...) in the launch chain —+# macOS strips DYLD_* when exec'ing them.set -euo pipefailENGINE="${ENGINE:-$HOME/.battlenet-macos/cx26-engine}"MODE="${1:-battlenet}"-# 보틀(가상 C드라이브) 경로 — 모드별 기본값 (Battle.net과 Steam은 별도 보틀)+# Bottle (virtual C: drive) path — per-mode default (Battle.net and Steam use separate bottles)if [[ "$MODE" == steam* ]]; thenexport WINEPREFIX="${WINEPREFIX:-$HOME/.battlenet-macos/steam-bottle}"else@@ -29,7 +32,7 @@ export CX_GRAPHICS_BACKEND=d3dmetalexport CX_APPLEGPTK_LIBD3DSHARED_PATH="$ENGINE/lib/external/libd3dshared.dylib"export DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib"-# Agent 서명검증 fix: 버전 하위폴더에 서명된 exe 동기화+# Agent signature-check fix: sync the signed exe into each versioned subfolderBN="$WINEPREFIX/drive_c/Program Files (x86)/Battle.net"if [[ -f "$BN/Battle.net.exe" ]]; thenfor v in "$BN"/Battle.net.[0-9]*; do@@ -38,28 +41,29 @@ if [[ -f "$BN/Battle.net.exe" ]]; thenficase "$MODE" in- battlenet) # 배틀넷 런처 (로그인 → Play로 온라인 플레이)+ battlenet) # Battle.net launcher (log in, then Play for online)exec "$ENGINE/bin/wine" \"C:\\Program Files (x86)\\Battle.net\\Battle.net Launcher.exe" \--disable-gpu-compositing;;- d2r) # 게임 직접 실행 (오프라인/이전 세션)+ d2r) # Launch the game directly (offline / previous session)cd "$WINEPREFIX/drive_c/Program Files (x86)/Diablo II Resurrected"exec "$ENGINE/bin/wine" "D2R.exe" "${@:2}";;- steam) # Steam 클라이언트 — wine-stable + webhelper 래퍼 (검증: 2026-08-27)- # CX 엔진에선 Steam CEF가 렌더링되지 않는다 (검은 화면 / SEGV 폭풍).- # 검증된 조합은 homebrew wine-stable 11 + steamwebhelper 래퍼(--disable-gpu- # --single-process 강제) + -no-cef-sandbox -cef-single-process.- # 출처: github.com/notpop/steam-on-m1-wine (MIT) — third_party/ 참고.+ 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+ # wrapper (forces --disable-gpu --single-process) + -no-cef-sandbox+ # -cef-single-process. Source: github.com/notpop/steam-on-m1-wine (MIT),+ # vendored in third_party/.WINESTABLE="/Applications/Wine Stable.app/Contents/Resources/wine/bin/wine"- [[ -x "$WINESTABLE" ]] || { echo "wine-stable 없음 — brew install --cask wine-stable"; exit 1; }+ [[ -x "$WINESTABLE" ]] || { echo "wine-stable not found — brew install --cask wine-stable"; exit 1; }ST="$WINEPREFIX/drive_c/Program Files (x86)/Steam/steam.exe"- [[ -f "$ST" ]] || { echo "Steam 없음 — scripts/create-steam-bottle.sh 먼저"; exit 1; }- # 1) 크래시 잔여물 청소 (남으면 다음 실행이 창 없는 --silent 모드로 빠짐)+ [[ -f "$ST" ]] || { echo "Steam not found — run scripts/create-steam-bottle.sh first"; exit 1; }+ # 1) Clean crash leftovers (a stale lock makes the next launch a windowless --silent one)find "$WINEPREFIX/drive_c/users/"*/AppData/Local/Steam/htmlcache -maxdepth 2 \\( -name "Singleton*" -o -name "*.lock" \) -delete 2>/dev/null || true- # 2) 래퍼 재배치 (Steam 업데이트가 래퍼를 원본으로 되돌리므로 매번 확인)+ # 2) Redeploy the wrapper (Steam updates restore the original, so check every launch)WRAP="$HOME/.battlenet-macos/steam-support/steamwebhelper-wrapper.exe"for d in "$WINEPREFIX/drive_c/Program Files (x86)/Steam/bin/cef"/cef.win*; do[[ -f "$d/steamwebhelper.exe" ]] || continue@@ -68,9 +72,10 @@ case "$MODE" incp -f "$WRAP" "$d/steamwebhelper.exe"fidone- # 3) 가상 데스크톱 — 이 macdrv(gcenx wine 11)는 가상 데스크톱을 무시함이 확인돼- # 기본 비활성. 독 아이콘 단일화는 WINE_NO_DOCK_ICON(winemac 패치)으로 해결.- # 켜려면 WINE_VIRTUAL_DESKTOP=auto (또는 1600x900 등 해상도 지정).+ # 3) Virtual desktop — this macdrv (gcenx wine 11) ignores virtual desktops,+ # so it is off by default. The single Dock icon is handled by+ # WINE_NO_DOCK_ICON (winemac patch) instead.+ # To enable anyway: WINE_VIRTUAL_DESKTOP=auto (or a resolution like 1600x900).VD="${WINE_VIRTUAL_DESKTOP-}"if [[ "$VD" == "auto" ]]; thenB=$(osascript -e 'tell application "Finder" to get bounds of window of desktop' 2>/dev/null || true)@@ -80,11 +85,11 @@ case "$MODE" inVD="1728x1080"fifi- # 가상 데스크톱 창이 고정되지 않게 macdrv 설정 (1회성 레지스트리)+ # Keep virtual-desktop windows movable (one-time registry setting)grep -q 'AllowImmovableWindows' "$WINEPREFIX/user.reg" 2>/dev/null || {printf '\n[Software\\\\Wine\\\\Mac Driver]\n"AllowImmovableWindows"="n"\n' >> "$WINEPREFIX/user.reg"}- # 4) 실행 — CX 엔진 env 없이 wine-stable 순정 환경+ # 4) Launch — plain wine-stable environment, without the CX engine envSTEAM_CMD=("C:\\Program Files (x86)\\Steam\\steam.exe" -no-cef-sandbox -cef-single-process -noverifyfiles "${@:2}")[[ -n "$VD" ]] && STEAM_CMD=(explorer.exe "/desktop=soju-steam,$VD" "${STEAM_CMD[@]}")env -u DYLD_FALLBACK_LIBRARY_PATH -u CX_ACTIVE_GRAPHICS_BACKEND -u CX_GRAPHICS_BACKEND \@@ -94,7 +99,7 @@ case "$MODE" inWINE_NO_DOCK_ICON="steam.exe;steamservice.exe" \"$WINESTABLE" "${STEAM_CMD[@]}";;- kill|steam-kill) # 종료 (kill=배틀넷 보틀, steam-kill=Steam 보틀)+ kill|steam-kill) # Stop everything (kill = Battle.net bottle, steam-kill = Steam bottle)"$ENGINE/bin/wineserver" -k 2>/dev/null || true;;*) echo "usage: play.sh [battlenet|d2r|steam|kill|steam-kill]"; exit 1;;diff --git a/scripts/setup-bottle.sh b/scripts/setup-bottle.shindex 852f9763e70..4c7a2235157 100755--- a/scripts/setup-bottle.sh+++ b/scripts/setup-bottle.sh@@ -1,19 +1,20 @@#!/usr/bin/env bash-# 기존 CrossOver "Battle.net Desktop App" 보틀을 새 보틀로 완전 복제한다.-# 게임 파일만 옮기면 CEF/Agent가 오작동 → 레지스트리(system/user/userdef)까지 통째 복제해야 정상.-# APFS 클론(cp -c)이라 디스크 추가 사용 거의 없음.+# Fully clone an existing CrossOver "Battle.net Desktop App" bottle into a new one.+# Moving only the game files breaks CEF/Agent — the registries+# (system/user/userdef) must be cloned along with them.+# Uses APFS clones (cp -c), so almost no extra disk is used.set -euo pipefailCX_BOTTLE="${CX_BOTTLE:-$HOME/Library/Application Support/CrossOver/Bottles/Battle.net Desktop App}"-DEST="${DEST:?새 보틀 경로 DEST를 지정하세요 (예: ~/BattleNetBottle)}"+DEST="${DEST:?Set DEST to the new bottle path (e.g. ~/BattleNetBottle)}"if [[ ! -d "$CX_BOTTLE/drive_c" ]]; then- echo "CrossOver 보틀을 찾을 수 없음: $CX_BOTTLE" >&2- echo "게임이 설치된 CrossOver 보틀 경로를 CX_BOTTLE로 지정하세요." >&2+ echo "CrossOver bottle not found: $CX_BOTTLE" >&2+ echo "Point CX_BOTTLE at the CrossOver bottle that has the game installed." >&2exit 1fi-echo "==> 보틀 복제: $CX_BOTTLE -> $DEST"+echo "==> Cloning the bottle: $CX_BOTTLE -> $DEST"mkdir -p "$DEST"cp -Rc "$CX_BOTTLE/drive_c" "$DEST/"for f in system.reg user.reg userdef.reg; do@@ -21,5 +22,5 @@ for f in system.reg user.reg userdef.reg; dodone[[ -d "$CX_BOTTLE/dosdevices" ]] && cp -Rc "$CX_BOTTLE/dosdevices" "$DEST/"-echo "==> 완료. 실행:"+echo "==> Done. Launch with:"echo " WINEPREFIX='$DEST' scripts/launch.sh"diff --git a/scripts/setup-steam-games.sh b/scripts/setup-steam-games.shindex 9ffc30f4c3d..2b35d59c2ac 100755--- a/scripts/setup-steam-games.sh+++ b/scripts/setup-steam-games.sh@@ -1,20 +1,25 @@#!/usr/bin/env bash-# Steam 게임(D3D11) 렌더링 활성화 — DXMT + 패치 winemac 배선.+# Enable D3D11 rendering for Steam games — wires DXMT + the patched winemac.#-# 전제: create-steam-bottle.sh 완료 + DXMT 아티팩트가 ~/.battlenet-macos/steam-support/-# 에 존재 (dxmt-x64/{d3d11,dxgi,d3d10core,winemetal}.dll + winemetal.so, winemac-patched.so).-# 아티팩트 빌드법은 docs/STEAM-GAMES.md 참고 (notpop/steam-on-m1-wine 기반 + 3가지 픽스).+# Prerequisites: create-steam-bottle.sh done, and the DXMT artifacts present in+# ~/.battlenet-macos/steam-support/ (dxmt-x64/{d3d11,dxgi,d3d10core,winemetal}.dll+# + winemetal.so, winemac-patched.so).+# See docs/STEAM-GAMES.md for how to build the artifacts (based on+# notpop/steam-on-m1-wine plus three fixes).#-# 아키텍처 (검증: 2026-08-27, M4 Pro / macOS 26.5, Unity 게임 인게임 렌더링 확인):-# - 번들 x86_64 빌트인 = DXMT (게임용) / i386 빌트인 = 순정 유지 (32비트 steam.exe 보호)-# - winemetal: 번들 빌트인 + system32 "플레이스홀더" 사본 (없으면 wine이 빌트인을-# 이름으로 못 찾아 c0000135 → 게임 "Failed to initialize graphics")-# - system32에 "마커 제거" 순정 d3d dll (Steam 클라이언트 전용 native)-# - 레지스트리: 전역 d3d11/d3d10core/dxgi/winemetal=builtin(DXMT),-# steam.exe·steamwebhelper*·steamservice per-app=native(순정) — 신형 Steam CEF는-# DXMT 빌트인과 충돌해 무한 재시작하므로 반드시 분리-# - winemac-patched.so: -fvisibility=default (DXMT가 macdrv API를 dlsym) +-# WINE_NO_DOCK_ICON 지원 (독 아이콘 단일화)+# Architecture (verified 2026-08-27, M4 Pro / macOS 26.5, Unity title rendering in-game):+# - Bundle x86_64 builtins = DXMT (for games) / i386 builtins = untouched vanilla+# (protects the 32-bit steam.exe composer)+# - winemetal: bundle builtin + a "placeholder" copy in system32 (without it,+# wine can't find the builtin by name: c0000135 -> the game's+# "Failed to initialize graphics")+# - system32 gets marker-stripped vanilla d3d dlls (native, Steam client only)+# - Registry: global d3d11/d3d10core/dxgi/winemetal=builtin (DXMT);+# steam.exe / steamwebhelper* / steamservice get per-app native (vanilla) —+# the modern Steam CEF conflicts with DXMT builtins and restart-loops, so the+# split is mandatory+# - winemac-patched.so: -fvisibility=default (DXMT dlsyms macdrv APIs) ++# WINE_NO_DOCK_ICON support (single Dock icon)set -euo pipefailSUP="$HOME/.battlenet-macos/steam-support"@@ -24,23 +29,23 @@ WLIB="$WAPP/lib/wine"WINE="$WAPP/bin/wine"B="$WINEPREFIX/drive_c/windows"-[ -x "$WINE" ] || { echo "wine-stable 없음 — create-steam-bottle.sh 먼저"; exit 1; }+[ -x "$WINE" ] || { echo "wine-stable not found — run create-steam-bottle.sh first"; exit 1; }for f in dxmt-x64/d3d11.dll dxmt-x64/dxgi.dll dxmt-x64/d3d10core.dll dxmt-x64/winemetal.dll dxmt-x64/winemetal.so winemac-patched.so; do- [ -f "$SUP/$f" ] || { echo "아티팩트 없음: $SUP/$f — docs/STEAM-GAMES.md의 빌드 절차 참고"; exit 1; }+ [ -f "$SUP/$f" ] || { echo "Missing artifact: $SUP/$f — see the build steps in docs/STEAM-GAMES.md"; exit 1; }done-echo "==> 1/5 순정 dll 백업 (최초 1회)"+echo "==> 1/5 Backing up vanilla dlls (first run only)"for D in d3d11 dxgi d3d10core; do[ -f "$WLIB/x86_64-windows/$D.dll.vanilla" ] || cp -f "$WLIB/x86_64-windows/$D.dll" "$WLIB/x86_64-windows/$D.dll.vanilla"done-echo "==> 2/5 번들 배선: x86_64=DXMT, winemetal(빌트인+unix), 패치 winemac"+echo "==> 2/5 Wiring the bundle: x86_64=DXMT, winemetal (builtin+unix), patched winemac"cp -f "$SUP/dxmt-x64/"{d3d11.dll,dxgi.dll,d3d10core.dll,winemetal.dll} "$WLIB/x86_64-windows/"cp -f "$SUP/dxmt-x64/winemetal.so" "$WLIB/x86_64-unix/"cp -f "$SUP/winemac-patched.so" "$WLIB/x86_64-unix/winemac.so"-# i386은 순정 그대로 (32비트 steam.exe 컴포저 보호)+# i386 stays vanilla (protects the 32-bit steam.exe composer)-echo "==> 3/5 프리픽스: winemetal 플레이스홀더 + Steam 전용 순정 native(마커 제거)"+echo "==> 3/5 Prefix: winemetal placeholder + marker-stripped vanilla natives for Steam"cp -f "$WLIB/x86_64-windows/winemetal.dll" "$B/system32/winemetal.dll"for D in d3d11 dxgi d3d10core; docp -f "$WLIB/x86_64-windows/$D.dll.vanilla" "$B/system32/$D.dll"@@ -52,7 +57,7 @@ if m in d: open(p,'wb').write(d.replace(m, b'Xine builtin DLL', 1))EOFdone-echo "==> 4/5 레지스트리: 전역=builtin(DXMT), Steam 계열 per-app=native(순정)"+echo "==> 4/5 Registry: global=builtin (DXMT), Steam processes per-app=native (vanilla)"for DLL in d3d11 d3d10core dxgi winemetal; do"$WINE" reg add "HKCU\\Software\\Wine\\DllOverrides" /v "$DLL" /t REG_SZ /d builtin /f >/dev/null 2>&1done@@ -63,7 +68,7 @@ for APP in steam.exe steamwebhelper.exe steamwebhelper_real.exe steamservice.exe"$WINE" reg add "HKCU\\Software\\Wine\\AppDefaults\\$APP\\DllOverrides" /v winemetal /t REG_SZ /d disabled /f >/dev/null 2>&1done-echo "==> 5/5 전체화면 강제 AppCompat 토큰 제거 (창모드 허용)"+echo "==> 5/5 Removing the fullscreen-forcing AppCompat token (allows windowed mode)"/usr/bin/python3 - "$WINEPREFIX/user.reg" <<'EOF'import sysp = sys.argv[1]@@ -72,5 +77,5 @@ n = d.replace('DISABLEDXMAXIMIZEDWINDOWEDMODE', '')if n != d: open(p, 'w', encoding='utf-8', errors='surrogateescape').write(n)EOF-echo "완료. scripts/play.sh steam 으로 실행 — 게임 창모드 고정은 게임 내 설정 또는"-echo "Steam 시작 옵션 '-screen-fullscreen 0' (Unity 계열) 사용."+echo "Done. Launch with scripts/play.sh steam — to pin windowed mode, use the"+echo "in-game setting or the Steam launch option '-screen-fullscreen 0' (Unity titles)."