Skip to content

Commit 3953c3e

Browse files
authored
create wrapper script for wine64 symlink (#211)
1 parent c5eab16 commit 3953c3e

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ then
6161
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
6262
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile
6363

64-
WINEPATH=$(which $WINEEXECUTABLE)
65-
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
64+
# create a wine wrapper script to work around oddities with symlinked wine64
65+
echo -e "#\!/bin/bash\nwine \"\$@\"" > "$HOME/.winemonogame/wine_wrapper.sh"
66+
chmod +x "$HOME/.winemonogame/wine_wrapper.sh"
67+
68+
# symlink wine64 to our wrapper script
69+
ln -s "$HOME/.winemonogame/wine_wrapper.sh" "$HOME/.winemonogame/wine64"
6670
fi
6771

6872
# cleanup

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ then
6969
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
7070
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile
7171

72-
WINEPATH=$(which $WINEEXECUTABLE)
73-
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
72+
# create a wine wrapper script to work around oddities with symlinked wine64
73+
echo -e "#\!/bin/bash\nwine \"\$@\"" > "$HOME/.winemonogame/wine_wrapper.sh"
74+
chmod +x "$HOME/.winemonogame/wine_wrapper.sh"
75+
76+
# symlink wine64 to our wrapper script
77+
ln -s "$HOME/.winemonogame/wine_wrapper.sh" "$HOME/.winemonogame/wine64"
7478
fi
7579

7680
# cleanup

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ then
6969
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
7070
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile
7171

72-
WINEPATH=$(which $WINEEXECUTABLE)
73-
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
72+
# create a wine wrapper script to work around oddities with symlinked wine64
73+
echo -e "#\!/bin/bash\nwine \"\$@\"" > "$HOME/.winemonogame/wine_wrapper.sh"
74+
chmod +x "$HOME/.winemonogame/wine_wrapper.sh"
75+
76+
# symlink wine64 to our wrapper script
77+
ln -s "$HOME/.winemonogame/wine_wrapper.sh" "$HOME/.winemonogame/wine64"
7478
fi
7579

7680
# cleanup

0 commit comments

Comments
 (0)