Skip to content

choewy/macos-diablo-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๋“ค์–ด๊ฐ€๋ฉฐ

2023๋…„ 6์›” 6์ผ, ๋ธ”๋ฆฌ์ž๋“œ๋Š” ๋””์•„๋ธ”๋กœ 4๋ฅผ ๊ณต์‹ ์˜คํ”ˆํ–ˆ๋‹ค. ๋””์•„๋ธ”๋กœ ์˜คํ”ˆ ์ „, MacOS๋„ ์ง€์›ํ•œ๋‹ค๋Š” ์ฐŒ๋ผ์‹œ๋ฅผ ์–ด๋””์„ ๊ฐ€ ๋“ฃ๊ณ  ์„ค์น˜ํ•˜๋ ค ํ–ˆ์œผ๋‚˜, ์—ญ์‹œ๋‚˜ MacOS๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š์•˜๋‹ค. Macbook Pro 14 M2(RAM 16GB, SSD 1TB)๋ฅผ ๊ตฌ์ž…ํ•œ์ง€ ์–ผ๋งˆ ์•ˆ ๋˜์–ด์„œ Windows PC๋ฅผ ๊ตฌ์ž…ํ•˜๊ธฐ์—๋Š” ๊ฝค๋‚˜ ๋ถ€๋‹ด์Šค๋Ÿฌ์šด ์ทจ๋ฏธ๊ฐ€ ๋  ๊ฒƒ ๊ฐ™์•˜๋‹ค.

๊ทธ๋Ÿฌ๋˜ ์ฐฐ๋‚˜์—, ๋ฌธ๋“ Macbook์—์„œ Windows ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰์‹œํ‚ฌ ์ˆ˜ ์žˆ์ง€ ์•Š๋‚˜?๋ผ๋Š” ๋ฌผ์Œํ‘œ๊ฐ€ ๋จธ๋ฆฟ์†์— ๋งด๋Œ์•˜๋‹ค. ํญํ’ ๊ตฌ๊ธ€๋ง ํ›„ ์•ฝ 12์‹œ๊ฐ„ ์ •๋„ ๊ฑธ๋ฆฐ ์‚ฝ์งˆ ๋์— ํ˜„์žฌ ๋งฅ๋ถ์œผ๋กœ ๋””์•„๋ธ”๋กœ 4๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋˜์—ˆ๋‹ค. ์˜ค๋Š˜์€ ์ด ๊ฒฝํ—˜์„ ํ† ๋Œ€๋กœ ๋งฅ๋ถ์—์„œ ๋””์•„๋ธ”๋กœ 4๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ๊ธฐ์ˆ ํ•˜๋ ค๊ณ  ํ•œ๋‹ค.

์„ค์น˜ ๊ณผ์ •์ด ๊ฒฐ์ฝ” ๊ฐ„๋‹จํ•˜์ง€๋Š” ์•Š์œผ๋‹ˆ, ๊ด€์‹ฌ์ด ์žˆ๋‹ค๋ฉด ์ž˜ ๋”ฐ๋ผ์˜ค๊ธธ ๋ฐ”๋ž€๋‹ค. ๋‹ค์‹œ ํ•œ ๋ฒˆ ๋งํ•˜์ง€๋งŒ, ์•„๋ž˜ ๊ณผ์ • ์ค‘ ํ•˜๋‚˜๋ผ๋„ ์Šคํ‚ตํ•˜์ง€ ๋ง๊ณ  ์ž˜ ๋”ฐ๋ผ์˜ค๊ธธ ๋ฐ”๋ž€๋‹ค. ๋ฌด์‹ฌ์ฝ” ์ง€๋‚˜์ณค๋‹ค๊ฐ€๋Š” ๋””์•„๋ธ”๋กœ 4 ์„ฑ์—ญ์— ์ž…์žฅํ•˜์ง€ ๋ชปํ•˜๋Š” ๋Œ€์‹ ์— ๋ฌดํ•œ ์‚ฝ์งˆ์˜ ์ง€์˜ฅ์— ๋น ์งˆ ์ˆ˜ ์žˆ๋‹ค.

1. ์‚ฌ์ „ ์„ค์น˜

1.1. Game Porting Toolkit ์„ค์น˜

Apple์€ 2023๋…„ 6์›” 6์ผ์— Windows์šฉ ๊ฒŒ์ž„์„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š” Game Porting Toolkit(GPT)์„ ์ถœ์‹œํ–ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด, MacOS์—์„œ๋„ Windows ๊ฒŒ์ž„์„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋‹ค.

Apple Developer์—์„œ dmg ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค. Apple Developer ์‚ฌ์ดํŠธ์— ์ ‘์†ํ•ด์„œ Apple ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธ ํ•œ ํ›„, ์•„๋ž˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๊ณ  ์„ค์น˜ํ•œ๋‹ค.

  • Command Line Tools for Xcode 15 beta
  • Apple game porting toolkit beta

Xcode 15 beta๋Š” MacOS 14 beta๋กœ ๋‚ด์žฅ ์„ค์น˜๋˜์–ด ์žˆ๋‹ค. ๋งŒ์•ฝ, ์ด์ „ ๋ฒ„์ „์˜ Xcode๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋‹ค๋ฉด ์ด์ „ ๋ฒ„์ „์˜ Xcode, Command Line Tools for Xcode๋ฅผ ์‚ญ์ œ ํ›„ Xcode 15 beta๋กœ ์„ค์น˜ํ•ด์ฃผ์–ด์•ผ ํ•œ๋‹ค.

1.2. Battle.net ์„ค์น˜

Windows์šฉ Battle.net ๋ฐ์Šคํฌํƒ‘ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์„ค์น˜ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๋Š”๋‹ค. ์ด ํŒŒ์ผ์€ ~/Downloads ํด๋” ์•ˆ์— Battle.net-Setup.exe์œผ๋กœ ๋‹ค์šด๋กœ๋“œ ๋˜์–ด์•ผ ํ•œ๋‹ค.

๋ณ„๋‹ค๋ฅธ ์„ค์ •์„ ํ•˜์ง€ ์•Š์•˜๋‹ค๋ฉด ์ผ๋ฐ˜์ ์œผ๋กœ ~/Downloads/Battle.net-Setup.exe์œผ๋กœ ๋‹ค์šด๋กœ๋“œ๋œ๋‹ค.

2. Rosetta ์„ค์ •

ํ˜„์žฌ MacOS(ventura 13.4)์—์„œ๋Š” Rosetta๊ฐ€ ์ด๋ฏธ ์„ค์น˜๋˜์–ด ์žˆ๋Š” ๋“ฏํ•˜๋‹ค. ๋งŒ์•ฝ, MacOS ๋ฒ„์ „์ด ์ตœ์‹ ์ด ์•„๋‹Œ ํƒ“์— Rosetta๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ์ง€ ์•Š๊ฑฐ๋‚˜, Rosetta๋ฅผ ์„ค์น˜ํ•˜์ง€ ์•Š์•˜๋‹ค๋ฉด ํ„ฐ๋ฏธ๋„์— ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์„œ Rosetta๋ฅผ ๋จผ์ € ์„ค์น˜ํ•˜๋„๋ก ํ•œ๋‹ค.

$ softwareupdate --install-rosetta

Finder์—์„œ ํ„ฐ๋ฏธ๋„(Terminal)์„ ์ฐพ๋Š”๋‹ค.

1

ํ„ฐ๋ฏธ๋„์— ๋งˆ์šฐ์Šค ์šฐํด๋ฆญ ํ•œ ํ›„ ์ •๋ณด ๊ฐ€์ ธ์˜ค๊ธฐ๋ฅผ ํด๋ฆญํ•œ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด ์•„๋ž˜ ์ด๋ฏธ์ง€์™€ ๊ฐ™์€ ์ฐฝ์ด ๋œจ๋Š”๋ฐ, Rosetta๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์—ด๊ธฐ ์˜ต์…˜์„ ์ฐพ์•„์„œ ์ฒดํฌํ•œ ํ›„ ๋‹ซ๋Š”๋‹ค.

2

3. Homebrew ์„ค์ •

MacOS์—์„œ Windows ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ํ•ด์•ผ ํ•˜๋ฏ€๋กœ homebrew ๋˜ํ•œ x86_64 ๋ฒ„์ „์œผ๋กœ ์‹คํ–‰ํ•ด์•ผ ํ•œ๋‹ค.

์ผ๋ฐ˜์ ์œผ๋กœ M1, M2์—์„œ ์„ค์น˜ํ•œ homebrew๋Š” ARM64 ๋ฒ„์ „์ด๋‹ค.

3.1. zsh ํ„ฐ๋ฏธ๋„ ์„ค์ •

Apple Gaming Toolkit Wiki ๋ฌธ์„œ์— ๋”ฐ๋ฅด๋ฉด, ์ด์ „์— ARM64 homebrew๋ฅผ ์„ค์น˜ํ•œ ์ ์ด ์žˆ๋‹ค๋ฉด ARM64 homebrew๋ฅผ ์ œ๊ฑฐํ•˜๋Š” ํŽธ์ด ๋‚ซ๋‹ค๊ณ  ํ•œ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜, ๋‚˜๋Š” ์ด์ „์— ์„ค์น˜ํ•œ hoembrew๋ฅผ ์ œ๊ฑฐํ•˜์ง€ ์•Š๊ณ , .zshrc ํŒŒ์ผ์— brew-switcer๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ๋‘ ๋ฒ„์ „ ์ค‘ ํ•˜๋‚˜๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค์ •ํ•˜์˜€๋‹ค. ํ„ฐ๋ฏธ๋„์„ ์—ด๊ณ , ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•œ๋‹ค.

bash๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ์—๋Š” ~/.bashrc๋ฅผ ์ˆ˜์ •ํ•˜๋ฉด ๋œ๋‹ค.

$ vi ~/.zshrc

ํ„ฐ๋ฏธ๋„์ด ํ…์ŠคํŠธ ํŽธ์ง‘ ๋ชจ๋“œ๋กœ ๋ณ€๊ฒฝ๋˜๋ฉด, i๋ฅผ ๋ˆŒ๋Ÿฌ์„œ insert ๋ชจ๋“œ๋กœ ๋ณ€๊ฒฝํ•œ ํ›„ ์•„๋ž˜ ํ™”์‚ดํ‘œ ํ‚ค๋ฅผ ๋ˆŒ๋Ÿฌ ์ปค์„œ๋ฅผ ๋งจ ์•„๋ž˜๋กœ ์ด๋™์‹œํ‚จ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์•„๋ž˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋ถ™์—ฌ๋„ฃ๋Š”๋‹ค. shift + ; ํ‚ค๋ฅผ ๋ˆ„๋ฅด๊ณ , wq!๋ฅผ ์ž…๋ ฅํ•œ ๋‹ค์Œ์— Enter ํ‚ค๋ฅผ ๋ˆŒ๋Ÿฌ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ €์žฅํ•œ๋‹ค.

# ... ์ƒ๋žต ...

if [ "$(arch)" = "arm64" ]; then
    eval "$(/opt/homebrew/bin/brew shellenv)"
else
    eval "$(/usr/local/bin/brew shellenv)"
fi

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ x86_64 ๋ฒ„์ „์˜ homebrew๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ์ž.

์•ž์œผ๋กœ ๋ชจ๋“  ๊ณผ์ •์€ ์ด ํ„ฐ๋ฏธ๋„์—์„œ ์ง„ํ–‰ํ•˜๋‹ˆ, ํ„ฐ๋ฏธ๋„์„ ๋‹ซ์ง€ ๋ง๊ณ  ๊ณ„์† ์—ด์–ด๋‘์ž. ๋งŒ์•ฝ, ํ„ฐ๋ฏธ๋„์„ ๋‹ซ์•˜๋‹ค๋ฉด ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ๋จผ์ € ์ž…๋ ฅํ•˜๊ณ  ์ด์–ด์„œ ์ง„ํ–‰ํ•˜๊ธฐ ๋ฐ”๋ž€๋‹ค. ์ถ”๊ฐ€์ ์œผ๋กœ ์–ธ์–ด๋„ en_US.UTF-8๋กœ ์„ค์ •ํ•ด์ฃผ์–ด์•ผ ํ•œ๋‹ค. ์ด ๋ถ€๋ถ„์„ ๋ฐœ๊ฒฌํ•˜์ง€ ๋ชปํ•ด์„œ ์•ฝ 4์‹œ๊ฐ„ ๊ฐ€๋Ÿ‰ ์‚ฝ์งˆ์„ ํ–ˆ๋‹ค. ๋งฅ๋ถ ์–ธ์–ด๊ฐ€ ์ด๋ฏธ en_US.UTF-8๋กœ ๋˜์–ด ์žˆ๋Š” ๊ฒฝ์šฐ ํ•ด๋‹น ๋ช…๋ น์–ด๋Š” ๋ฌด์‹œํ•ด๋„ ์ƒ๊ด€ ์—†๊ฒ ์ง€๋งŒ, ๊ทธ๋ƒฅ ์•„๋ž˜ ๋ช…๋ น์–ด ์ „์ฒด๋ฅผ ์ž…๋ ฅํ•˜๊ธฐ ๋ฐ”๋ž€๋‹ค.

$ arch -x86_64 zsh
$ LANG=en_US.UTF-8

3.2. Homebrew x86_64 ์„ค์น˜

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์„œ homebrew ์‹คํ–‰ ๊ฒฝ๋กœ๋ฅผ ์„ค์ •ํ•œ๋‹ค.

$ (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/$USER/.zprofile
$ eval "$(/usr/local/bin/brew shellenv)"

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์„œ ์„ค์ •๋œ ์‹คํ–‰ ๊ฒฝ๋กœ๋ฅผ ํ™•์ธํ•œ๋‹ค.

$ which brew

๋งŒ์•ฝ, /usr/local/bin/brew๋กœ ์ถœ๋ ฅ๋˜์ง€ ์•Š๋Š”๋‹ค๋ฉด ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์„œ ์‹คํ–‰ ๊ฒฝ๋กœ๋ฅผ ์ง์ ‘ ์„ค์ •ํ•œ๋‹ค.

$ export PATH=/usr/local/bin:${PATH}

4. game-porting-toolkit ์„ค์ •

4.1. Apple Homebrew tab ์„ค์น˜

ํ„ฐ๋ฏธ๋„์—์„œ game-porting-toolkit์„ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” formula๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•œ๋‹ค. ์ด ๊ณผ์ •์—์„œ Apple Homebrew tab์„ ์‚ฌ์šฉํ•˜๋ฏ€๋กœ, ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ Apple Homebrew tab์„ ๋‹ค์šด๋กœ๋“œํ•œ๋‹ค.

$ brew tap apple/apple http://github.com/apple/homebrew-apple

4.2. game-porting-toolkit formula ์„ค์น˜

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ game-porting-toolkit formula๋ฅผ ์„ค์น˜ํ•œ๋‹ค.

๋‚˜๋Š” ์™€์ดํŒŒ์ด๋กœ ์„ค์น˜ํ–ˆ๊ธฐ ๋•Œ๋ฌธ์— 6์‹œ๊ฐ„ ๊ฐ€๋Ÿ‰ ์†Œ์š”๋˜์—ˆ๋˜ ๊ฒƒ ๊ฐ™๋‹ค. ๊ทธ๋Ÿฌ๋‹ˆ, ์ธ๋‚ด์‹ฌ์„ ๊ฐ–๊ณ  ๋ฐ”๋žŒ ์ข€ ์ฌ๊ณ  ์˜ค๊ธฐ ๋ฐ”๋ž€๋‹ค. ์ค‘๊ฐ„์— ์ธํ„ฐ๋„ท ์—ฐ๊ฒฐ์ด ๋Š๊ธฐ๊ฑฐ๋‚˜, ํ™”๋ฉด ์ž ๊ธˆ ์ƒํƒœ๋กœ ์ „ํ™˜๋˜๋Š” ๊ฒฝ์šฐ ๋‹ค์‹œ ์„ค์น˜ํ•ด์•ผ ํ•  ์ˆ˜๋„ ์žˆ์œผ๋‹ˆ, ์„ค์น˜๋ฅผ ํ•œ ๋ฒˆ์— ๋๋‚ด๊ณ  ์‹ถ๋‹ค๋ฉด LAN ์„ ์„ ์—ฐ๊ฒฐํ•˜๊ณ , ์ž๋™ ํ™”๋ฉด ์ž ๊ธˆ์€ ๊บผ๋‘๊ธฐ ๋ฐ”๋ž€๋‹ค.

$ brew -v install apple/apple/game-porting-toolkit

๋ฌธ์„œ์— ๋”ฐ๋ฅด๋ฉด ์„ค์น˜ ๊ณผ์ • ์ค‘์— ์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•œ๋‹ค.

Error: game-porting-toolkit: unknown or unsupported macOS version: :dunnoโ€, your version of Homebrew doesnโ€™t have macOS Sonoma support. Update to the latest version of Homebrew and try again.

๋‹นํ™ฉํ•˜์ง€ ๋ง๊ณ , ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์žฌ์„ค์น˜ํ•˜๋„๋ก ํ•˜์ž.

$ brew update brew -v install apple/apple/game-porting-toolkit

4.3. Game Porting Tookit ์—ฐ๊ฒฐ

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ Game Porting Tookit DMG๊ฐ€ /Volumes/Game Porting Toolkit-1.0์— ํƒ‘์žฌ๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธ ํ›„ Game Porting Tookit ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํด๋”๋ฅผ Wine์˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํด๋”๋กœ ๋ณต์‚ฌํ•œ๋‹ค.

$ ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ Game Porting Tookit DMG์˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ /usr/local/bin์— ๋ณต์‚ฌํ•œ๋‹ค.

$ cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin

5. Wine ์„ค์ •

Wine์€ ์‰ฝ๊ฒŒ ๋งํ•˜์ž๋ฉด ๊ฐ€์ƒ Windows ์šด์˜ ์ฒด์ œ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š” ํˆด์ด๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค.

Wine์€ game-porting-toolkit folmula ์„ค์น˜ ์‹œ ํ•จ๊ป˜ ์„ค์น˜๋œ๋‹ค. ์—ฌ๋‹ด์ด์ง€๋งŒ, Wine์˜ ์—ญํ• ์— ๋Œ€ํ•œ ์ดํ•ด๋ฅผ ๋•๊ธฐ ์œ„ํ•ด ์‹ค์ œ ๋‚˜์˜ ๊ฒฝํ—˜์„ ์ ์–ด๋ณด์•˜๋‹ค. ๋งฅ๋ถ์„ ๊ตฌ๋งคํ•˜๊ธฐ ์ „์—๋Š” ๋…ธํŠธ๋ถ์— Ubuntu22.04๋ฅผ ์„ค์น˜ํ•ด์„œ ์ฃผ ์šด์˜์ฒด์ œ๋กœ ์‚ฌ์šฉํ–ˆ๋‹ค. ์นด์นด์˜คํ†ก์ด๋‚˜, ์•„๋ž˜ ํ•œ๊ธ€ ๋“ฑ Windows ํ”„๋กœ๊ทธ๋žจ์€ Linux๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— Ubuntu์—์„œ Wine์œผ๋กœ Windows ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ํ•˜๊ณค ํ–ˆ๋‹ค.

์šฐ๋ฆฌ๋Š” MacOS์— ๋””์•„๋ธ”๋กœ 4 Windows ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ํ•  ๊ฒƒ์ด๋ฏ€๋กœ Wine ์„ค์ •์„ ํ•ด์ฃผ์–ด์•ผ ํ•œ๋‹ค. ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด Wine ์„ค์ • ์ฐฝ์ด ๋œจ๋Š”๋ฐ, ๋ฐ˜๋“œ์‹œ ์˜์–ด๋กœ ๋œ ์ฐฝ์ด ๋– ์•ผ ํ•œ๋‹ค.

WINEPREFIX= ๋’ค์—๋Š” ์ž์‹ ์ด ์›ํ•˜๋Š” ํด๋” ๊ฒฝ๋กœ๋ฅผ ์ž…๋ ฅํ•ด๋„ ๋˜๋Š”๋ฐ, ์ด ๊ธ€์—์„œ๋Š” ~/Games๋กœ ํ•  ๊ฒƒ์ด๋ฏ€๋กœ ์‚ฝ์งˆํ•  ์‹œ๊ฐ„์„ ์ค„์ด๊ธฐ ์œ„ํ•ด ๊ฐ€๊ธ‰์ ์ด๋ฉด ~/Games๋กœ ํ†ต์ผํ•˜๋„๋ก ํ•˜์ž.

WINEPREFIX=~/Games `brew --prefix game-porting-toolkit`/bin/wine64 winecfg

์•„๋ž˜ ์ด๋ฏธ์ง€์—์„œ ๋ณด์ด๋Š”๊ฒƒ ์ฒ˜๋Ÿผ Windows Version๋ฅผ Windows 10์œผ๋กœ ์„ ํƒ ํ›„ apply์™€ Ok์„ ํด๋ฆญํ•˜์—ฌ ์„ค์ • ์ฐฝ์„ ๋‹ซ์•„์ค€๋‹ค.

3

๋ฌธ์„œ์— ๋”ฐ๋ฅด๋ฉด ๋””์•„๋ธ”๋กœ 4๋ฅผ ์‹คํ–‰ํ•˜๋ ค๋Š” ๊ฒฝ์šฐ ์•„๋ž˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ์ตœ์‹  ๋ฒ„์ „์˜ Windows๋กœ ๋‚˜ํƒ€๋‚˜๋„๋ก Wine ์ ‘๋‘์‚ฌ๋ฅผ ์ˆ˜์ •ํ•ด์•ผ ํ•œ๋‹ค๊ณ  ๋˜์–ด์žˆ์œผ๋‹ˆ, ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ด์ฃผ๋„๋ก ํ•œ๋‹ค.

$ WINEPREFIX=~/Games `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f
$ WINEPREFIX=~/Games `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f
$ WINEPREFIX=~/Games `brew --prefix game-porting-toolkit`/bin/wineserver -k

6. Battle.net ์„ค์น˜ ๋ฐ ์‹คํ–‰

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์„œ Wine์œผ๋กœ Battle.net-Setup.exe๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ๋ฐฐํ‹€๋„ท์„ ์„ค์น˜ํ•˜๋„๋ก ํ•˜์ž.

์ด๋•Œ, ์–ธ์–ด๋Š” English(US)๋กœ ํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค. ํ•œ๊ตญ์–ด๋กœ ์„ค์น˜ํ•˜๋Š” ๊ฒฝ์šฐ Wine์—์„œ ํ•œ๊ธ€์„ ์ธ์ฝ”๋”ฉํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ณ„๋„๋กœ ์„ค์ •ํ•ด์ฃผ์–ด์•ผ ํ•˜๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. ๋””์•„๋ธ”๋กœ 4๋ฅผ ์„ค์น˜ํ•  ๋•Œ์—๋Š” ํ•œ๊ตญ์–ด๋กœ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์œผ๋‹ˆ ๊ฑฑ์ •ํ•˜์ง€ ๋ง๊ณ , ๋ฐฐํ‹€๋„ท๋งŒ ์˜์–ด๋กœ ์„ค์น˜ํ•˜๊ธฐ ๋ฐ”๋ž€๋‹ค.

$ gameportingtoolkit ~/Games ~/Downloads/Battle.net-Setup.exe

์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด Battle.net์ด ์‹คํ–‰๋˜๋‹ˆ, ์ž๋™ ๋กœ๊ทธ์ธ ์„ค์ •์„ ์ฒดํฌํ•˜๊ณ  ๋กœ๊ทธ์ธํ•˜์—ฌ ๋””์•„๋ธ”๋กœ 4๋ฅผ ์„ค์น˜ํ•˜๋ฉด ๋œ๋‹ค.

7. ์‹คํ–‰ ์Šคํฌ๋ฆฝํŠธ

๋งฅ๋ถ์„ ์žฌ๋ถ€ํŒ… ํ›„, Windows์šฉ Battle.net ๋ฐ ๋””์•„๋ธ”๋กœ 4๋ฅผ ์‹คํ–‰ํ•˜๋ ค๋ฉด ํ„ฐ๋ฏธ๋„์— ์•„๋ž˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋œ๋‹ค.

shell script ํŒŒ์ผ์€ Github์— ์˜ฌ๋ ค๋†“์•˜๋‹ค.

7.1. Battle.net ์‹คํ–‰ ์Šคํฌ๋ฆฝํŠธ

LANG=en_US.UTF-8
arch -x86_64 gameportingtoolkit-no-hud ~/Games 'C:\Program Files (x86)\Battle.net\Battle.net Launcher.exe'

7.2. ๋””์•„๋ธ”๋กœ 4 ์‹คํ–‰ ์Šคํฌ๋ฆฝํŠธ

LANG=en_US.UTF-8
arch -x86_64 gameportingtoolkit-no-hud ~/Games 'C:\Program Files (x86)\Battle.net\Battle.net Launcher.exe'

7.3 Application ๋“ฑ๋ก Automator - ์…ธ ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ - ์ฝ”๋“œ ์ž…๋ ฅ - ์‘์šฉํ”„๋กœ๊ทธ๋žจ์— Diablo IV ์ €์žฅ

#!/bin/zsh

export PATH="/usr/local/bin:${PATH}"
LANG=en_US.UTF-8
arch -x86_64 gameportingtoolkit-no-hud ~/Games 'C:\Program Files (x86)\Battle.net\Battle.net Launcher.exe'

LANG=en_US.UTF-8
arch -x86_64 gameportingtoolkit-no-hud ~/Games 'C:\Program Files (x86)\Battle.net\Battle.net Launcher.exe'

๋งˆ์น˜๋ฉฐ

๋งฅ๋ถ์—์„œ ๋””์•„๋ธ”๋กœ 4๊ฐ€ ์ฒ˜์Œ ์‹คํ–‰๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ–ˆ์„ ๋‹น์‹œ์—๋Š” ๋””์•„๋ธ”๋กœ 4 ์ „์„ค ์•„์ดํ…œ์„ ํš๋“ํ•  ๋•Œ๋ณด๋‹ค ํ›จ์”ฌ ์งœ๋ฆฟํ–ˆ๋‹ค. ํ•œ๊ฐ€์ง€ ๋‹จ์ ์ด ์žˆ๋‹ค๋ฉด, ๋งฅ๋ถ์œผ๋กœ ๋””์•„๋ธ”๋กœ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๋งฅ๋ถ์˜ ๋ฐœ์—ด์ด ์‹ฌํ•ด์ง„๋‹ค๋Š” ๊ฒƒ์ด๋‹ค. ๋””์•„๋ธ”๋กœ ๋””์Šคํ”Œ๋ ˆ์ด ์˜ต์…˜์„ ๋‚ฎ์Œ์œผ๋กœ ์„ค์ •ํ•ด๋†“๊ณ , ํ”„๋ ˆ์ž„์„ 80์œผ๋กœ ๊ณ ์ •ํ•ด๋†“๊ณ  ํ”Œ๋ ˆ์ดํ•ด๋„ ํ‘œ๋ฉด ์˜จ๋„ 40๋„ ์ •๋„๋ฅผ ์œ ์ง€ํ•˜๋Š” ๊ฒƒ ๊ฐ™๋‹ค. ์—ญ์‹œ ๋งฅ๋ถ์ด๋ผ ๊ทธ๋Ÿฐ์ง€๋Š” ๋ชฐ๋ผ๋„, ๋””์Šคํ”Œ๋ ˆ์ด ์˜ต์…˜์„ ๋‚ฎ์Œ์œผ๋กœ ํ•ด๋†“๊ณ  ํ”Œ๋ ˆ์ดํ•ด๋„ ๋งค์šฐ ์šฐ์ˆ˜ํ•œ ํ™”์งˆ๋กœ ๊ฒŒ์ž„์„ ํ”Œ๋ ˆ์ดํ•  ์ˆ˜ ์žˆ๋‹ค. ๋‚ด ๋ณธ์—…(๊ฐœ๋ฐœ์ž)์„ ์œ„ํ•ด ๊ตฌ๋งคํ•œ ๋งฅ๋ถ์œผ๋กœ ๋””์•„๋ธ”๋กœ 4๋ฅผ ํ”Œ๋ ˆ์ดํ•  ์ค„์ด์•ผ... ๋ฉฐ์น ๋งŒ ์ฆ๊ธฐ๋‹ค๊ฐ€ ๋‹ค์‹œ ์ฝ”๋”ฉํ•ด์•ผ๊ฒ ๋‹ค.

์ฐธ๊ณ ์ž๋ฃŒ