asmaloney / GuildWars2-macOS

A place for issues related to my blog post about playing GW2 on macOS
https://codeberg.org/asmaloney/GuildWars2-macOS
0 stars 0 forks source link

Alternative (free) installation method #10

Closed jsimonetti closed 7 months ago

jsimonetti commented 7 months ago

macOS Version

Sonoma 14.3 M3 Pro

WineskinServer Version

not applicable

Wine Engine Version

latest crossover wine

Problem

None, other then I do not own Crossover.

Additional Information

install prerequisites (this asumes you have brew installed)

$ brew install winetricks $ brew install --cask gcenx/wine/wine-crossover

set the base wine prefix

$ export WINEPREFIX=~/'WinePrefix/GW2'

configure prefix for windows 10

$ winetricks win10

download and extract latest DXVK from https://github.com/Gcenx/DXVK-macOS/releases

$ cp x64/*.dll $WINEPREFIX/drive_c/windows/system32 $ cp x32/*.dll $WINEPREFIX/drive_c/windows/syswow64

configure dxvk

$ winecfg

under libraries add the following overrides:

download GW2 setup

$ cp Gw2Setup-64.exe $WINEPREFIX/drive_c/

install GW2 like regular

$ wine "C:\\Gw2Setup-64.exe"

optional launcher:

$ mkdir -p ~/Applications/GW2.app/Contents/MacOS $ vi ~/Applications/GW2.app/Contents/Info.plist

<?xml version="1.0" encoding="UTF-8" standalone="no"?><plist version="1.0">
  <dict>
    <key>CFBundleExecutable</key>
    <string>GW2</string>
    <key>CFBundleGetInfoString</key>
    <string>GW2</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
</dict>
</plist>

$ vi ~/Applications/GW2.app/Contents/MacOS/GW2

#!/bin/sh
WINEPREFIX=~/'WinePrefix/GW2' exec wine "C:\\Program Files\\Guild Wars 2\\Gw2-64.exe"

$ chmod +x ~/Applications/GW2.app/Contents/MacOS/GW2

You can add an icon using the Apple Finder

asmaloney commented 7 months ago

Thanks!