Updated the version of wine that gets installed to 7.7. Updated the simlink part of the script so it grabs all the executables.

This commit is contained in:
stormdragon2976 2023-01-24 23:51:54 -05:00
parent fde8b464f6
commit d34abd2f34

View File

@ -2,7 +2,7 @@
# URL from where wine is downloaded, must be i686
# Make sure system is up to date
yay -Syu --noconfirm
@ -15,17 +15,18 @@ curl --output "$wineFile" "$wineURL"
# Create wine directory
sudo mkdir -p /opt/wine
pushd /opt/wine
sudo tar xf "$wineFile"
sudo tar vxf "$wineFile"
# Create files and links in /usr/local/bin
sudo mkdir -p /usr/local/bin
echo -e '#!/bin/bash\nsetarch linux32 -L /opt/wine/bin/wine "$@"' | sudo tee /usr/local/bin/wine > /dev/null
sudo chmod 755 /usr/local/bin/wine
for i in wineboot winecfg winepath wineserver ; do
sudo ln -s /opt/wine/bin/"$i" /usr/local/bin/"$i"
sudo chmod 755 /usr/local/bin/"$i"
find /opt/wine/bin/ -type f -perm -u+x -exec bash -c '
for i ; do
sudo ln -s "$i" /usr/local/bin/
sudo chmod 755 /usr/local/bin/"${i##*/}"
done' _ {} \;
# Install audiogame-manager
if [[ -d ~/audiogame-manager ]]; then