Skip to content

Fix wine setup scripts #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,17 @@ curl $FIREFOX_URL --output "$SCRIPT_DIR/firefox.exe"
cp -f "$SCRIPT_DIR/firefox_data/core/d3dcompiler_47.dll" "$WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll"

# append MGFXC_WINE_PATH env variable
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.profile
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.zprofile
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.zprofile

if ! type "wine64" > /dev/null 2>&1
then
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile

WINEPATH=$(which $WINEEXECUTABLE)
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
fi

# cleanup
rm -rf "$SCRIPT_DIR"
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,17 @@ curl $FIREFOX_URL --output "$SCRIPT_DIR/firefox.exe"
cp -f "$SCRIPT_DIR/firefox_data/core/d3dcompiler_47.dll" "$WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll"

# append MGFXC_WINE_PATH env variable
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.profile
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.zprofile
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.zprofile

if ! type "wine64" > /dev/null 2>&1
then
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile

WINEPATH=$(which $WINEEXECUTABLE)
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
fi

# cleanup
rm -rf "$SCRIPT_DIR"
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ eval "$WINEEXECUTABLE regedit crashdialog.reg"
popd

# get dotnet
DOTNET_URL="https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.100-rc.1.24452.12/dotnet-sdk-9.0.100-rc.1.24452.12-win-x64.zip"
DOTNET_URL="https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.104/dotnet-sdk-9.0.104-win-x64.zip"
curl $DOTNET_URL --output "$SCRIPT_DIR/dotnet-sdk.zip"
7z x "$SCRIPT_DIR/dotnet-sdk.zip" -o"$WINEPREFIX/drive_c/windows/system32/"

Expand All @@ -61,8 +61,17 @@ curl $FIREFOX_URL --output "$SCRIPT_DIR/firefox.exe"
cp -f "$SCRIPT_DIR/firefox_data/core/d3dcompiler_47.dll" "$WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll"

# append MGFXC_WINE_PATH env variable
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.profile
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.zprofile
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.zprofile

if ! type "wine64" > /dev/null 2>&1
then
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile

WINEPATH=$(which $WINEEXECUTABLE)
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
fi

# cleanup
rm -rf "$SCRIPT_DIR"