diff --git a/articles/getting_started/1_setting_up_your_os_for_development_macos.md b/articles/getting_started/1_setting_up_your_os_for_development_macos.md index 1556e588..7380b697 100644 --- a/articles/getting_started/1_setting_up_your_os_for_development_macos.md +++ b/articles/getting_started/1_setting_up_your_os_for_development_macos.md @@ -62,7 +62,22 @@ MonoGame provides a setup script that can be executed to setup the Wine environm 1. Enter the following command: ```sh - brew install wget p7zip curl && brew install --cask wine-stable && xattr -dr com.apple.quarantine "/Applications/Wine Stable.app" + brew install wget p7zip curl + brew install --cask xquartz + ``` + +1. Download and install Wine manually because the Homebrew `wine-stable` cask is no longer available: + + ```sh + WINE_VERSION="11.0_1" + WINE_DIR="$HOME/.winemonogame/wine-stable" + WINE_ARCHIVE="${TMPDIR:-/tmp}/wine-stable.tar.xz" + mkdir -p "$WINE_DIR" + curl --fail --location --output "$WINE_ARCHIVE" "https://github.com/Gcenx/macOS_Wine_builds/releases/download/${WINE_VERSION}/wine-stable-${WINE_VERSION}-osx64.tar.xz" + tar -xf "$WINE_ARCHIVE" -C "$WINE_DIR" + xattr -dr com.apple.quarantine "$WINE_DIR/Wine Stable.app" + echo "export PATH=\"\$PATH:$WINE_DIR/Wine Stable.app/Contents/Resources/wine/bin\"" >> "$HOME/.zprofile" + export PATH="$PATH:$WINE_DIR/Wine Stable.app/Contents/Resources/wine/bin" ``` 1. Now that the prerequisites are installed, download the [mgfxc_wine_setup.sh](https://monogame.net/downloads/net9_mgfxc_wine_setup.sh) script and execute it by entering the following command in the terminal: