forked from thisiszeev/wine-installer
Update wine-installer-ubuntu.sh
This commit is contained in:
parent
39c06c92b0
commit
0e477e206e
|
@ -2,7 +2,7 @@
|
||||||
while getopts ":v:" opt; do
|
while getopts ":v:" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
v)
|
v)
|
||||||
echo "2.1.0"
|
echo "3.0.0"
|
||||||
;;
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
|
@ -57,6 +57,11 @@ if [ "$RELEASE" = "22.04" ]; then
|
||||||
sudo apt update
|
sudo apt update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$RELEASE" = "23.10" ]; then
|
||||||
|
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/mantic/winehq-mantic.sources
|
||||||
|
sudo apt update
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$RELEASE" = "23.04" ]; then
|
if [ "$RELEASE" = "23.04" ]; then
|
||||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources
|
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
@ -68,15 +73,28 @@ fi
|
||||||
sudo apt update
|
sudo apt update
|
||||||
} &> ./logs/repoLog.txt
|
} &> ./logs/repoLog.txt
|
||||||
kill -9 $SPIN_PID
|
kill -9 $SPIN_PID
|
||||||
|
clear
|
||||||
read -p "Install wine? [Y/n]: " -n 1 -r
|
echo "1)Stable build (Recommended)"
|
||||||
|
echo "2)Development build (Recommended for testing use only)"
|
||||||
|
echo "3)Staging build (Recommended for testing use only)"
|
||||||
|
read -p "Select build channel:" build -n 1 -r
|
||||||
|
if ["$build" = "1"]
|
||||||
|
build = "stable"
|
||||||
|
fi
|
||||||
|
if ["$build" = "2"]
|
||||||
|
build = "devel"
|
||||||
|
fi
|
||||||
|
if ["$build" = "3"]
|
||||||
|
build = "staging"
|
||||||
|
fi
|
||||||
|
read -p "Ready? [Y/n]: " -n 1 -r
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
spin &
|
spin &
|
||||||
SPIN_PID=$!
|
SPIN_PID=$!
|
||||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||||
sudo apt install winehq-stable winetricks &> ./logs/installLog.txt
|
sudo apt install winehq-"$build" winetricks &> ./logs/installLog.txt
|
||||||
winecfg &> ./logs/configLog.txt
|
winecfg &> ./logs/configLog.txt
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue