Skip to content

Commit 45a59a1

Browse files
authored
Fix wine setup scripts (#210)
* Update wine setup scripts to create a symlink for wine64 * Use stable dotnet 9 sdk * Add symlink to dotnet 9 as well :(
1 parent 0b4b3dc commit 45a59a1

File tree

3 files changed

+34
-7
lines changed

3 files changed

+34
-7
lines changed

website/content/public/downloads/winesetup/net6_mgfxc_wine_setup.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,17 @@ curl $FIREFOX_URL --output "$SCRIPT_DIR/firefox.exe"
5353
cp -f "$SCRIPT_DIR/firefox_data/core/d3dcompiler_47.dll" "$WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll"
5454

5555
# append MGFXC_WINE_PATH env variable
56-
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.profile
57-
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.zprofile
56+
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.profile
57+
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.zprofile
58+
59+
if ! type "wine64" > /dev/null 2>&1
60+
then
61+
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
62+
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile
63+
64+
WINEPATH=$(which $WINEEXECUTABLE)
65+
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
66+
fi
5867

5968
# cleanup
6069
rm -rf "$SCRIPT_DIR"

website/content/public/downloads/winesetup/net8_mgfxc_wine_setup.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,17 @@ curl $FIREFOX_URL --output "$SCRIPT_DIR/firefox.exe"
6161
cp -f "$SCRIPT_DIR/firefox_data/core/d3dcompiler_47.dll" "$WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll"
6262

6363
# append MGFXC_WINE_PATH env variable
64-
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.profile
65-
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.zprofile
64+
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.profile
65+
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.zprofile
66+
67+
if ! type "wine64" > /dev/null 2>&1
68+
then
69+
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
70+
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile
71+
72+
WINEPATH=$(which $WINEEXECUTABLE)
73+
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
74+
fi
6675

6776
# cleanup
6877
rm -rf "$SCRIPT_DIR"

website/content/public/downloads/winesetup/net9_mgfxc_wine_setup.sh

+12-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ eval "$WINEEXECUTABLE regedit crashdialog.reg"
5050
popd
5151

5252
# get dotnet
53-
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"
53+
DOTNET_URL="https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.104/dotnet-sdk-9.0.104-win-x64.zip"
5454
curl $DOTNET_URL --output "$SCRIPT_DIR/dotnet-sdk.zip"
5555
7z x "$SCRIPT_DIR/dotnet-sdk.zip" -o"$WINEPREFIX/drive_c/windows/system32/"
5656

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

6363
# append MGFXC_WINE_PATH env variable
64-
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.profile
65-
echo -e "\nexport MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.zprofile
64+
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.profile
65+
echo -e "\nexport MGFXC_WINE_PATH=\"$HOME/.winemonogame\"" >> ~/.zprofile
66+
67+
if ! type "wine64" > /dev/null 2>&1
68+
then
69+
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
70+
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile
71+
72+
WINEPATH=$(which $WINEEXECUTABLE)
73+
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
74+
fi
6675

6776
# cleanup
6877
rm -rf "$SCRIPT_DIR"

0 commit comments

Comments
 (0)