Skip to content

Commit dbb02d2

Browse files
authored
Update install.sh
1 parent 71dbe31 commit dbb02d2

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

files/builds/development-branch/bin/install.sh

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,19 @@ function SP_LOAD_OS_PACKAGES {
165165
elif [[ $SP_OS_VERSION = "12" ]]; then
166166
echo "Gentoo Linux" && OS_GENTOO_LINUX
167167
else
168-
echo "No Linux distribution was selected!" # Replace with a dialogue!
168+
echo "No Linux distribution was selected!" # <-- Replace with a GUI!
169169
fi
170170
}
171171

172172
###############################################################################################################################################################
173173

174174
function OS_ARCHLINUX {
175-
echo "Checking for multilib..."
175+
echo "Checking for multilib..." # <-- Replace with a GUI!
176176
if ARCHLINUX_VERIFY_MULTILIB ; then
177-
echo "multilib found. Continuing..."
177+
echo "multilib found. Continuing..." # <-- Replace with a GUI!
178178
pkexec sudo pacman -Sy --needed wine wine-mono wine_gecko winetricks p7zip curl cabextract samba ppp
179179
else
180-
echo "Enabling multilib..."
180+
echo "Enabling multilib..." # <-- Replace with a GUI!
181181
echo "[multilib]" | sudo tee -a /etc/pacman.conf
182182
echo "Include = /etc/pacman.d/mirrorlist" | sudo tee -a /etc/pacman.conf
183183
pkexec sudo pacman -Sy --needed wine wine-mono wine_gecko winetricks p7zip curl cabextract samba ppp
@@ -205,7 +205,7 @@ function OS_DEBIAN {
205205
OS_DEBIAN_11
206206
DEBIAN_BASED_2
207207
else
208-
echo "Your Linux distribution is not supported yet!"
208+
echo "Your Linux distribution is not supported yet!" # <-- Replace with a GUI!
209209
fi
210210
}
211211

@@ -263,7 +263,7 @@ function OS_UBUNTU {
263263
OS_UBUNTU_22
264264
DEBIAN_BASED_2
265265
else
266-
echo "Your Linux distribution is not supported yet!"
266+
echo "Your Linux distribution is not supported yet!" # <-- Replace with a GUI!
267267
fi
268268
}
269269

@@ -302,7 +302,7 @@ function OS_FEDORA {
302302
OS_FEDORA_RAWHIDE
303303
FEDORA_BASED_2
304304
else
305-
echo "Your Linux distribution is not supported yet!"
305+
echo "Your Linux distribution is not supported yet!" # <-- Replace with a GUI!
306306
fi
307307
}
308308

@@ -339,7 +339,7 @@ function OS_OPENSUSE {
339339
elif [[ $SP_OS_VERSION == *"openSUSE"*"MicroOS"* ]]; then
340340
OS_OPENSUSE_MICROOS # This option is still in experimental status and is for using Fusion 360 into a Distrobox-Container!
341341
else
342-
echo "Your Linux distribution is not supported yet!"
342+
echo "Your Linux distribution is not supported yet!" # <-- Replace with a GUI!
343343
fi
344344
}
345345

@@ -369,7 +369,7 @@ function OS_REDHAT_LINUX {
369369
elif [[ $SP_OS_VERSION == *"Red Hat Enterprise Linux"*"9"* ]]; then
370370
OS_REDHAT_LINUX_9
371371
else
372-
echo "Your Linux distribution is not supported yet!"
372+
echo "Your Linux distribution is not supported yet!" # <-- Replace with a GUI!
373373
fi
374374
}
375375

@@ -426,7 +426,7 @@ function SP_INSTALL_SPACENAVD {
426426
elif VERB="$( which emerge )" 2> /dev/null; then
427427
echo "Gentoo-based" && sudo emerge -av app-misc/spacenavd
428428
else
429-
echo "${RED}I can't find your package manager!${NOCOLOR}"
429+
echo "${RED}I can't find your package manager!${NOCOLOR}" # <-- Replace with a GUI!
430430
exit;
431431
fi
432432
}
@@ -439,9 +439,9 @@ function SP_INSTALL_SPACENAVD {
439439
function SP_CHECK_REQUIRED_WINE_VERSION {
440440
SP_REQUIRED_WINE_VERSION=$(wine --version)
441441
if [[ $SP_REQUIRED_WINE_VERSION == *"wine-6.23"* ]] || [[ $SP_REQUIRED_WINE_VERSION == *"wine-7"* ]] || [[ $SP_REQUIRED_WINE_VERSION == *"wine-8"* ]]; then
442-
SP_SELECT_WINE_GPU_DRIVER
442+
SP_INSTALL_SPACENAVD && SP_SELECT_WINE_GPU_DRIVER
443443
else
444-
SP_INSTALL_OS_PACKAGES && SP_SELECT_WINE_GPU_DRIVER
444+
SP_INSTALL_OS_PACKAGES && SP_INSTALL_SPACENAVD && SP_SELECT_WINE_GPU_DRIVER
445445
fi
446446
}
447447

@@ -544,7 +544,7 @@ function SP_WELCOME {
544544
elif [ $PIPESTATUS -eq 1 ]; then
545545
SP_LOCALE=$(echo $LANG) && SP_WELCOME_EXIT # Displays a warning to the user whether the program should really be terminated.
546546
elif [ $PIPESTATUS -eq 255 ]; then
547-
echo "[ESC] key pressed." # Program has been terminated manually!
547+
echo "[ESC] key pressed." # Program has been terminated manually! <-- Replace with a GUI!
548548
else
549549
exit;
550550
fi
@@ -559,14 +559,14 @@ function SP_WELCOME_EXIT {
559559
case $response in
560560
0) clear && exit;; # Program has been terminated manually!
561561
1) SP_WELCOME;; # Go back to the welcome window!
562-
255) echo "[ESC] key pressed.";; # Program has been terminated manually!
562+
255) echo "[ESC] key pressed.";; # Program has been terminated manually! <-- Replace with a GUI!
563563
esac
564564
}
565565

566566
###############################################################################################################################################################
567567

568568
function SP_LICENSE_SHOW {
569-
SP_LICENSE_CHECK=$(dialog --backtitle "SP_TITLE" \
569+
SP_LICENSE_CHECK=$(dialog --backtitle "$SP_TITLE" \
570570
--title "$SP_LICENSE_SHOW_SUBTITLE" \
571571
--checklist "`cat $SP_LICENSE_FILE`" 0 0 0 \
572572
"$SP_LICENSE_SHOW_TEXT_1" "$SP_LICENSE_SHOW_TEXT_2" off 3>&1 1>&2 2>&3 3>&-;)
@@ -576,7 +576,7 @@ function SP_LICENSE_SHOW {
576576
elif [ $PIPESTATUS -eq 1 ]; then
577577
SP_WELCOME
578578
elif [ $PIPESTATUS -eq 255 ]; then
579-
echo "[ESC] key pressed." # Program has been terminated manually!
579+
echo "[ESC] key pressed." # Program has been terminated manually! <-- Replace with a GUI!
580580
else
581581
exit;
582582
fi
@@ -591,16 +591,16 @@ function SP_SHOW_LICENSE_WARNING {
591591
case $response in
592592
0) SP_LICENSE_SHOW;; # Open the next dialog for accept the license.
593593
1) exit;; # Program has been terminated manually!
594-
255) echo "[ESC] key pressed.";; # Program has been terminated manually!
594+
255) echo "[ESC] key pressed.";; # Program has been terminated manually! <-- Replace with a GUI!
595595
esac
596596
}
597597

598598
###############################################################################################################################################################
599599

600600
function SP_SELECT_OS_VERSION {
601-
SP_OS_VERSION=$(dialog --backtitle "Setup - Autodesk Fusion 360 for Linux [Build Version 1.9.0]" \
602-
--title "Linux distribution - Configuration" \
603-
--radiolist "Please select your Linux distribution to install the required packages for the installation:" 0 0 0 \
601+
SP_OS_VERSION=$(dialog --backtitle "$SP_TITLE" \
602+
--title "$SP_SELECT_OS_VERSION_SUBTITLE" \
603+
--radiolist "$SP_SELECT_OS_VERSION_TEXT" 0 0 0 \
604604
01 "Arch Linux" off\
605605
02 "Debian" off\
606606
03 "EndeavourOS" off\
@@ -619,7 +619,7 @@ function SP_SELECT_OS_VERSION {
619619
elif [ $PIPESTATUS -eq 1 ]; then
620620
SP_LICENSE_SHOW
621621
elif [ $PIPESTATUS -eq 255 ]; then
622-
echo "[ESC] key pressed." # Program has been terminated manually!
622+
echo "[ESC] key pressed." # Program has been terminated manually! <-- Replace with a GUI!
623623
else
624624
exit;
625625
fi

0 commit comments

Comments
 (0)