Update ubuntu-wine.sh
This commit is contained in:
parent
e44d8d9ab8
commit
e0bf6210fb
@ -17,52 +17,17 @@ sudo wget -nc https://dl.winehq.org/wine-builds/winehq.key
|
||||
# add wine repo key
|
||||
sudo apt-key add winehq.key
|
||||
|
||||
# adds repo for Ubuntu 18.04 and libfaudio0, which isn't available in the standard repo
|
||||
if $(lsb_release -a | grep -q -e "18.04"); then
|
||||
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
|
||||
root="https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/amd64/"
|
||||
root32="https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/i386/"
|
||||
tmp=$(curl -s $root | grep -Po libfaudio0.*?.deb | head -1)
|
||||
tmp32=$(curl -s $root32 | grep -Po libfaudio0.*?.deb | head -1)
|
||||
fi
|
||||
|
||||
# adds repo for Ubuntu 18.10 and libfaudio0, which isn't available in the standard repo
|
||||
if $(lsb_release -a | grep -q -e "18.10"); then
|
||||
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
|
||||
root="https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/amd64/"
|
||||
root32="https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/i386/"
|
||||
tmp=$(curl -s $root | grep -Po libfaudio0.*?.deb | head -1)
|
||||
tmp32=$(curl -s $root32 | grep -Po libfaudio0.*?.deb | head -1)
|
||||
fi
|
||||
|
||||
# adds repo for Ubuntu 19.04 and libfaudio0, which isn't available in the standard repo
|
||||
if $(lsb_release -a | grep -q -e "19.04"); then
|
||||
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
|
||||
root="https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04/amd64/"
|
||||
root32="https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04/i386/"
|
||||
tmp=$(curl -s $root | grep -Po libfaudio0.*?.deb | head -1)
|
||||
tmp32=$(curl -s $root32 | grep -Po libfaudio0.*?.deb | head -1)
|
||||
fi
|
||||
|
||||
# download faudio packages
|
||||
sudo wget -nc $root$tmp
|
||||
sudo wget -nc $root32$tmp32
|
||||
|
||||
# install faudio
|
||||
sudo dpkg -i *.deb
|
||||
|
||||
sudo apt -y --fix-broken install
|
||||
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt -y install libfaudio0-amd64 libfaudio0-i386 libfaudio0
|
||||
|
||||
# install wine-staging
|
||||
sudo apt -y install --install-recommends winehq-staging
|
||||
|
||||
# install winetricks
|
||||
sudo apt -y install winetricks
|
||||
|
||||
# vcrun2017 is recommended
|
||||
winetricks vcrun2017
|
||||
|
||||
# cleanup
|
||||
sudo rm -rf /tmp/wine_install
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user