diff --git a/website/content/public/downloads/winesetup/net6_mgfxc_wine_setup.sh b/website/content/public/downloads/winesetup/net6_mgfxc_wine_setup.sh index 082411aa..9793e58d 100755 --- a/website/content/public/downloads/winesetup/net6_mgfxc_wine_setup.sh +++ b/website/content/public/downloads/winesetup/net6_mgfxc_wine_setup.sh @@ -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" diff --git a/website/content/public/downloads/winesetup/net8_mgfxc_wine_setup.sh b/website/content/public/downloads/winesetup/net8_mgfxc_wine_setup.sh index 4f8ccc6c..76d8d068 100755 --- a/website/content/public/downloads/winesetup/net8_mgfxc_wine_setup.sh +++ b/website/content/public/downloads/winesetup/net8_mgfxc_wine_setup.sh @@ -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" diff --git a/website/content/public/downloads/winesetup/net9_mgfxc_wine_setup.sh b/website/content/public/downloads/winesetup/net9_mgfxc_wine_setup.sh index fa1d912d..b8df1bc4 100755 --- a/website/content/public/downloads/winesetup/net9_mgfxc_wine_setup.sh +++ b/website/content/public/downloads/winesetup/net9_mgfxc_wine_setup.sh @@ -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/" @@ -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"