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:
parent
fde8b464f6
commit
d34abd2f34
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
# URL from where wine is downloaded, must be i686
|
# URL from where wine is downloaded, must be i686
|
||||||
wineURL="https://www.playonlinux.com/wine/binaries/phoenicis/upstream-linux-x86/PlayOnLinux-wine-6.17-upstream-linux-x86.tar.gz"
|
wineURL="https://www.playonlinux.com/wine/binaries/phoenicis/upstream-linux-x86/PlayOnLinux-wine-7.7-upstream-linux-x86.tar.gz"
|
||||||
|
|
||||||
# Make sure system is up to date
|
# Make sure system is up to date
|
||||||
yay -Syu --noconfirm
|
yay -Syu --noconfirm
|
||||||
@ -15,17 +15,18 @@ curl --output "$wineFile" "$wineURL"
|
|||||||
# Create wine directory
|
# Create wine directory
|
||||||
sudo mkdir -p /opt/wine
|
sudo mkdir -p /opt/wine
|
||||||
pushd /opt/wine
|
pushd /opt/wine
|
||||||
sudo tar xf "$wineFile"
|
sudo tar vxf "$wineFile"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Create files and links in /usr/local/bin
|
# Create files and links in /usr/local/bin
|
||||||
sudo mkdir -p /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
|
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
|
sudo chmod 755 /usr/local/bin/wine
|
||||||
for i in wineboot winecfg winepath wineserver ; do
|
find /opt/wine/bin/ -type f -perm -u+x -exec bash -c '
|
||||||
sudo ln -s /opt/wine/bin/"$i" /usr/local/bin/"$i"
|
for i ; do
|
||||||
sudo chmod 755 /usr/local/bin/"$i"
|
sudo ln -s "$i" /usr/local/bin/
|
||||||
done
|
sudo chmod 755 /usr/local/bin/"${i##*/}"
|
||||||
|
done' _ {} \;
|
||||||
|
|
||||||
# Install audiogame-manager
|
# Install audiogame-manager
|
||||||
if [[ -d ~/audiogame-manager ]]; then
|
if [[ -d ~/audiogame-manager ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user