Update fusion360-install.sh

This commit is contained in:
Steve Zabka
2021-08-06 19:09:39 +02:00
committed by GitHub
parent e0fb3bb74a
commit 46a18773c1

View File

@@ -7,8 +7,8 @@
# Author URI: https://cryinkfly.com # Author URI: https://cryinkfly.com
# License: MIT # License: MIT
# Copyright (c) 2020-2021 # Copyright (c) 2020-2021
# Time/Date: 08:20/06.08.2021 # Time/Date: 19:00/06.08.2021
# Version: 2.6 # Version: 2.7
############################################################################## ##############################################################################
# DESCRIPTION # DESCRIPTION
@@ -66,7 +66,7 @@ function welcome_screen {
HEIGHT=15 HEIGHT=15
WIDTH=60 WIDTH=60
CHOICE_HEIGHT=2 CHOICE_HEIGHT=2
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.6" BACKTITLE="Installation of Autodesk Fusion360 - Version 2.7"
TITLE="Do you wish to install Autodesk Fusion 360?" TITLE="Do you wish to install Autodesk Fusion 360?"
MENU="Choose one of the following options:" MENU="Choose one of the following options:"
@@ -96,7 +96,7 @@ function select_your_os {
HEIGHT=15 HEIGHT=15
WIDTH=60 WIDTH=60
CHOICE_HEIGHT=10 CHOICE_HEIGHT=10
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.6" BACKTITLE="Installation of Autodesk Fusion360 - Version 2.7"
TITLE="Select your Linux distribution" TITLE="Select your Linux distribution"
MENU="Choose one of the following options:" MENU="Choose one of the following options:"
@@ -204,11 +204,19 @@ esac
} }
function select_your_path { function select_your_path {
dialog --backtitle "Installation of Autodesk Fusion360 - Version 2.6" \ dialog --backtitle "Installation of Autodesk Fusion360 - Version 2.7" \
--title "Description - Configure the installation location" \ --title "Description - Configure the installation location" \
--msgbox 'Now you have to determine where you want to install Fusion 360 and then the .fusion360 folder will be created for you automatically. For examlble you can install it on a external usb-drive: /run/media/user/usb-drive/wine/.fusion360 or you install it into your home folder: /home/user/.fusion360).' 14 200 --msgbox 'Now you have to determine where you want to install Fusion 360 and then the .fusion360 folder will be created for you automatically. For examlble you can install it on a external usb-drive: /run/media/user/usb-drive/wine/.fusion360 or you install it into your home folder: /home/user/.fusion360).' 14 200
filename=$(dialog --stdout --title "Enter the installation path for Fusion 360:" --backtitle "Installation of Autodesk Fusion360 - Version 2.6" --fselect $HOME/ 14 100) filename=$(dialog --stdout --title "Enter the installation path for Fusion 360:" --backtitle "Installation of Autodesk Fusion360 - Version 2.7" --fselect $HOME/ 14 100)
}
function program_exit {
dialog --backtitle "Installation of Autodesk Fusion360 - Version 2.7" \
--title "TAutodesk Fusion 360 is completed." \
--msgbox 'The installation of Autodesk Fusion 360 is completed and you use it for your projects.' 14 200
exit
} }
function debian_based_1 { function debian_based_1 {
@@ -241,7 +249,7 @@ function archlinux_1 {
HEIGHT=15 HEIGHT=15
WIDTH=60 WIDTH=60
CHOICE_HEIGHT=2 CHOICE_HEIGHT=2
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.6" BACKTITLE="Installation of Autodesk Fusion360 - Version 2.7"
TITLE="If you have enabled multilib repository?" TITLE="If you have enabled multilib repository?"
MENU="Choose one of the following options:" MENU="Choose one of the following options:"
@@ -295,10 +303,9 @@ function winetricks {
WINEPREFIX=$filename wine Fusion360.exe -p deploy -g -f log.txt --quiet && WINEPREFIX=$filename wine Fusion360.exe -p deploy -g -f log.txt --quiet &&
cd "$filename/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform" && cd "$filename/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform" &&
mkdir -p Options && mkdir -p Options &&
cd Options cd Options &&
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml &&
echo "The installation of Autodesk Fusion 360 is completed." program_exit
exit
} }
# --------------------------------------------------------------------- # ---------------------------------------------------------------------