ubuntu-wine.sh

Updated ubuntu-wine.sh to support 20.04 Focal Foss
This commit is contained in:
Adam Burke 2020-05-01 11:05:46 +01:00
parent 60a19ee420
commit 2fc2fb158c

View File

@ -2,7 +2,7 @@ if [ -z "$DISPLAY" ]; then
export DISPLAY=:0.0
fi
if ! $(lsb_release -a | grep -q -e "18.04" -e "18.10" -e "19.04" -e "19.10"); then
if ! $(lsb_release -a | grep -q -e "18.04" -e "18.10" -e "19.04" -e "19.10" -e "20.04"); then
echo "You need at least Ubuntu 18.04"
exit 1
fi
@ -32,6 +32,10 @@ if $(lsb_release -a | grep -q -e "19.10"); then
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'
fi
if $(lsb_release -a | grep -q -e "20.04"); then
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
fi
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport -y
sudo apt update