mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-11-05 04:45:48 +01:00
Change the path of the log file ...
This commit is contained in:
@@ -1,17 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Name: Autodesk Fusion 360 - Installationsskript (Linux)
|
# Name: Autodesk Fusion 360 - Installationsskript (Linux) #
|
||||||
# Description: With this file you can install Autodesk Fusion 360 on Linux.
|
# Description: With this file you can install Autodesk Fusion 360 on Linux. #
|
||||||
# Author: Steve Zabka
|
# Author: Steve Zabka #
|
||||||
# Author URI: https://cryinkfly.com
|
# Author URI: https://cryinkfly.com #
|
||||||
# License: MIT
|
# License: MIT #
|
||||||
# Copyright (c) 2020-2021
|
# Copyright (c) 2020-2021 #
|
||||||
# Time/Date: 20:40/03.09.2021
|
# Time/Date: 15:00/04.09.2021 #
|
||||||
# Version: 3.9
|
# Version: 4.0 #
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
# With the help of my script, You get a way to install the Autodesk Fusion 360 on your Linux system.
|
# With the help of my script, You get a way to install the Autodesk Fusion 360 on your Linux system.
|
||||||
# Certain packages and programs that are required will be set up on your system.
|
# Certain packages and programs that are required will be set up on your system.
|
||||||
@@ -20,15 +22,30 @@
|
|||||||
#
|
#
|
||||||
# And so, You must to purchase the licenses directly from the manufacturer of the program Autodesk Fusion 360!
|
# And so, You must to purchase the licenses directly from the manufacturer of the program Autodesk Fusion 360!
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
############################################################################################################################################################
|
############################################################################################################################################################
|
||||||
# 1. Step: Open a Terminal and run this command: cd Downloads && chmod +x fusion360-install.sh && bash fusion360-install.sh
|
# 1. Step: Open a Terminal and run this command: cd Downloads && chmod +x fusion360-install.sh && bash fusion360-install.sh
|
||||||
# 2. Step: The installation will now start and set up everything for you automatically.
|
# 2. Step: The installation will now start and set up everything for you automatically!
|
||||||
############################################################################################################################################################
|
############################################################################################################################################################
|
||||||
|
|
||||||
driver_used=0
|
##############################################################################
|
||||||
|
# ALL FUNCTIONS ARE ARRANGED HERE:
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
function requirement-check {
|
# Here you can select the language for the installation! (Is still in process!)
|
||||||
|
|
||||||
|
function select-language {
|
||||||
|
export LC_ALL=en_US.UTF-8
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
export LANGUAGE=en_US.UTF-8
|
||||||
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# The minimum requirements for installing Autodesk Fusion 360 will be installed here!
|
||||||
|
|
||||||
|
function check-requirement {
|
||||||
echo "Find your correct package manager and install the package dialog and wmctrl, what you need for the installation of Autodesk Fusion 360!"
|
echo "Find your correct package manager and install the package dialog and wmctrl, what you need for the installation of Autodesk Fusion 360!"
|
||||||
echo -n "Do you wish to install this package (y/n)?"
|
echo -n "Do you wish to install this package (y/n)?"
|
||||||
read answer
|
read answer
|
||||||
@@ -71,8 +88,12 @@ else
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# It will check whether Autodesk Fusion 360 is already installed on your system or not!
|
||||||
|
|
||||||
function check-if-fusion360-exists {
|
function check-if-fusion360-exists {
|
||||||
FILE=/$HOME/.local/share/fusion360log/log.txt
|
FILE=/$HOME/.local/share/fusion360/logfiles/path-log.txt
|
||||||
if [ -f "$FILE" ]; then
|
if [ -f "$FILE" ]; then
|
||||||
welcome-screen-2
|
welcome-screen-2
|
||||||
else
|
else
|
||||||
@@ -80,12 +101,16 @@ else
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Autodesk Fusion 360 will be installed from scratch on this system!
|
||||||
|
|
||||||
function welcome-screen-1 {
|
function welcome-screen-1 {
|
||||||
|
|
||||||
HEIGHT=15
|
HEIGHT=15
|
||||||
WIDTH=60
|
WIDTH=60
|
||||||
CHOICE_HEIGHT=2
|
CHOICE_HEIGHT=2
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 3.9"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 4.0"
|
||||||
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:"
|
||||||
|
|
||||||
@@ -103,6 +128,8 @@ CHOICE=$(dialog --clear \
|
|||||||
clear
|
clear
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
1)
|
1)
|
||||||
|
|
||||||
|
driver_used=0 &&
|
||||||
select_dxvk_or_opengl
|
select_dxvk_or_opengl
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
@@ -111,12 +138,16 @@ case $CHOICE in
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Autodesk Fusion 360 has already been installed on your system and you will now be given various options to choose from!
|
||||||
|
|
||||||
function welcome-screen-2 {
|
function welcome-screen-2 {
|
||||||
|
|
||||||
HEIGHT=15
|
HEIGHT=15
|
||||||
WIDTH=180
|
WIDTH=180
|
||||||
CHOICE_HEIGHT=3
|
CHOICE_HEIGHT=3
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 3.9"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 4.0"
|
||||||
TITLE="This Setup has checked your system for a existing Autodesk Fusion 360 components and it was found that Autodesk Fusion 360 already exists on your system!"
|
TITLE="This Setup has checked your system for a existing Autodesk Fusion 360 components and it was found that Autodesk Fusion 360 already exists on your system!"
|
||||||
MENU="Choose one of the following options:"
|
MENU="Choose one of the following options:"
|
||||||
|
|
||||||
@@ -135,46 +166,41 @@ CHOICE=$(dialog --clear \
|
|||||||
clear
|
clear
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
1)
|
1)
|
||||||
select_dxvk_or_opengl
|
driver_used=0 &&
|
||||||
|
select-dxvk-or-opengl
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
update_autodesk_fusion360_info &&
|
change-fusion360-1 &&
|
||||||
update_autodesk_fusion360_select &&
|
change-fusion360-2 &&
|
||||||
cd $filename/fusion360download &&
|
cd $filename/fusion360download &&
|
||||||
WINEPREFIX=$filename wine Fusion360installer.exe -p deploy -g -f log.txt --quiet &&
|
WINEPREFIX=$filename wine Fusion360installer.exe -p deploy -g -f log.txt --quiet &&
|
||||||
WINEPREFIX=$filename wine Fusion360installer.exe -p deploy -g -f log.txt --quiet &&
|
WINEPREFIX=$filename wine Fusion360installer.exe -p deploy -g -f log.txt --quiet &&
|
||||||
program_exit
|
program-exit
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
update_autodesk_fusion360_info &&
|
change-fusion360-1 &&
|
||||||
update_autodesk_fusion360_select &&
|
change-fusion360-2 &&
|
||||||
rmdir "$filename" &&
|
rmdir "$filename" &&
|
||||||
program_exit_uninstall
|
# Remove this path into the log file is still in process!
|
||||||
|
program-exit-uninstall
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
function update_autodesk_fusion360_info {
|
# Here you have to decide whether you want to use Autodesk Fusion 360 with DXVK (DirectX 9) or OpenGL! - Part 1
|
||||||
dialog --title "Make a note of the path to your Autodesk Fusion 360 installation so that you can use it in the next step!" --textbox "/$HOME/TEST.txt" 14 180
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_autodesk_fusion360_select {
|
function select-dxvk-or-opengl {
|
||||||
filename=$(dialog --stdout --title "Enter the installation path for Fusion 360:" --backtitle "Installation of Autodesk Fusion360 - Version 3.9" --fselect $HOME/ 14 100)
|
|
||||||
}
|
|
||||||
|
|
||||||
function select_dxvk_or_opengl {
|
|
||||||
HEIGHT=15
|
HEIGHT=15
|
||||||
WIDTH=200
|
WIDTH=200
|
||||||
CHOICE_HEIGHT=10
|
CHOICE_HEIGHT=10
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 3.9"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 4.0"
|
||||||
TITLE="Select preferred driver"
|
TITLE="Select preferred driver"
|
||||||
MENU="Choose one of the following options:"
|
MENU="Choose one of the following options:"
|
||||||
|
|
||||||
OPTIONS=(1 "OpenGL (default, choose this if you're not sure)"
|
OPTIONS=(1 "OpenGL (default, choose this if you're not sure)"
|
||||||
2 "DXVK (choose this if you want to use Intel GPU)"
|
2 "DXVK (choose this if you want to use Intel GPU)")
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
CHOICE=$(dialog --clear \
|
CHOICE=$(dialog --clear \
|
||||||
--backtitle "$BACKTITLE" \
|
--backtitle "$BACKTITLE" \
|
||||||
@@ -190,22 +216,84 @@ case $CHOICE in
|
|||||||
1)
|
1)
|
||||||
|
|
||||||
driver_used=1 &&
|
driver_used=1 &&
|
||||||
select_your_os
|
select-your-os
|
||||||
;;
|
;;
|
||||||
|
|
||||||
2)
|
2)
|
||||||
|
|
||||||
driver_used=2 &&
|
driver_used=2 &&
|
||||||
select_your_os
|
select-your-os
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
function select_your_os {
|
##############################################################################
|
||||||
|
|
||||||
|
# Here you have to decide whether you want to use Autodesk Fusion 360 with DXVK (DirectX 9) or OpenGL! - Part 2
|
||||||
|
|
||||||
|
function configure-dxvk-or-opengl-standard-1 {
|
||||||
|
if [ $driver_used -eq 2 ]; then
|
||||||
|
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 sh winetricks -q dxvk &&
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.reg &&
|
||||||
|
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 wine regedit.exe DXVK.reg
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function configure-dxvk-or-opengl-standard-2 {
|
||||||
|
if [ $driver_used -eq 2 ]; then
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.xml &&
|
||||||
|
mv DXVK.xml NMachineSpecificOptions.xml
|
||||||
|
else
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function configure-dxvk-or-opengl-standard-3 {
|
||||||
|
if [ $driver_used -eq 2 ]; then
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.xml &&
|
||||||
|
mv DXVK.xml NMachineSpecificOptions.xml
|
||||||
|
else
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function configure-dxvk-or-opengl-custom-1 {
|
||||||
|
if [ $driver_used -eq 2 ]; then
|
||||||
|
WINEPREFIX=$filename sh winetricks -q dxvk &&
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.reg &&
|
||||||
|
WINEPREFIX=$filename wine regedit.exe DXVK.reg
|
||||||
|
else
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function configure-dxvk-or-opengl-custom-2 {
|
||||||
|
if [ $driver_used -eq 2 ]; then
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.xml &&
|
||||||
|
mv DXVK.xml NMachineSpecificOptions.xml
|
||||||
|
else
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function configure-dxvk-or-opengl-custom-3 {
|
||||||
|
if [ $driver_used -eq 2 ]; then
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.xml &&
|
||||||
|
mv DXVK.xml NMachineSpecificOptions.xml
|
||||||
|
else
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# For the installation of Autodesk Fusion 360 one of the supported Linux distributions must be selected! - Part 1
|
||||||
|
|
||||||
|
function select-your-os {
|
||||||
HEIGHT=15
|
HEIGHT=15
|
||||||
WIDTH=200
|
WIDTH=200
|
||||||
CHOICE_HEIGHT=10
|
CHOICE_HEIGHT=10
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 3.9"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 4.0"
|
||||||
TITLE="Select your Linux distribution"
|
TITLE="Select your Linux distribution"
|
||||||
MENU="Choose one of the following options:"
|
MENU="Choose one of the following options:"
|
||||||
|
|
||||||
@@ -224,9 +312,7 @@ OPTIONS=(1 "Arch Linux, Manjaro Linux, EndeavourOS, ..."
|
|||||||
13 "Ubuntu 20.10"
|
13 "Ubuntu 20.10"
|
||||||
14 "Ubuntu 21.04, Pop!_OS 21.04, ..."
|
14 "Ubuntu 21.04, Pop!_OS 21.04, ..."
|
||||||
15 "Void Linux"
|
15 "Void Linux"
|
||||||
16 "Gentoo Linux"
|
16 "Gentoo Linux")
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
CHOICE=$(dialog --clear \
|
CHOICE=$(dialog --clear \
|
||||||
--backtitle "$BACKTITLE" \
|
--backtitle "$BACKTITLE" \
|
||||||
@@ -240,103 +326,96 @@ clear
|
|||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
1)
|
1)
|
||||||
|
|
||||||
archlinux_1 &&
|
archlinux-1
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
2)
|
2)
|
||||||
|
|
||||||
debian_based_1 &&
|
debian-based-1 &&
|
||||||
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main' &&
|
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main' &&
|
||||||
debian_based_2 &&
|
debian-based-2
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
3)
|
3)
|
||||||
|
|
||||||
debian_based_1 &&
|
debian-based-1 &&
|
||||||
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main' &&
|
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main' &&
|
||||||
debian_based_2 &&
|
debian-based-2
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
4)
|
4)
|
||||||
|
|
||||||
fedora_based_1 &&
|
fedora-based-1 &&
|
||||||
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/33/winehq.repo &&
|
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/33/winehq.repo &&
|
||||||
fedora_based_2 &&
|
fedora-based-2
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
5)
|
5)
|
||||||
|
|
||||||
fedora_based_1 &&
|
fedora-based-1 &&
|
||||||
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/34/winehq.repo &&
|
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/34/winehq.repo &&
|
||||||
fedora_based_2 &&
|
fedora-based-2
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
6)
|
6)
|
||||||
|
|
||||||
su -c 'zypper up && zypper rr https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.2/ wine && zypper ar -cfp 95 https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.2/ wine && zypper install p7zip-full curl wget wine cabextract' &&
|
su -c 'zypper up && zypper rr https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.2/ wine && zypper ar -cfp 95 https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.2/ wine && zypper install p7zip-full curl wget wine cabextract' &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
|
|
||||||
7)
|
7)
|
||||||
|
|
||||||
su -c 'zypper up && zypper rr https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.3/ wine && zypper ar -cfp 95 https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.3/ wine && zypper install p7zip-full curl wget wine cabextract' &&
|
su -c 'zypper up && zypper rr https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.3/ wine && zypper ar -cfp 95 https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.3/ wine && zypper install p7zip-full curl wget wine cabextract' &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
|
|
||||||
8)
|
8)
|
||||||
|
|
||||||
su -c 'zypper up && zypper install p7zip-full curl wget wine cabextract' &&
|
su -c 'zypper up && zypper install p7zip-full curl wget wine cabextract' &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
|
|
||||||
9)
|
9)
|
||||||
|
|
||||||
redhat-linux &&
|
redhat-linux &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
|
|
||||||
10)
|
10)
|
||||||
|
|
||||||
solus-linux &&
|
solus-linux &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
|
|
||||||
11)
|
11)
|
||||||
|
|
||||||
debian_based_1 &&
|
debian-based-1 &&
|
||||||
sudo apt-add-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' &&
|
sudo apt-add-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' &&
|
||||||
wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O Release.key -O- | sudo apt-key add - &&
|
wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O Release.key -O- | sudo apt-key add - &&
|
||||||
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./' &&
|
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./' &&
|
||||||
debian_based_2 &&
|
debian-based-2
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
12)
|
12)
|
||||||
|
|
||||||
debian_based_1 &&
|
debian-based-1 &&
|
||||||
sudo add-apt-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' &&
|
sudo add-apt-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' &&
|
||||||
wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.04/Release.key -O Release.key -O- | sudo apt-key add - &&
|
wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.04/Release.key -O Release.key -O- | sudo apt-key add - &&
|
||||||
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.04/ ./' &&
|
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.04/ ./' &&
|
||||||
debian_based_2 &&
|
debian-based-2
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
13)
|
13)
|
||||||
|
|
||||||
debian_based_1 &&
|
debian-based-1 &&
|
||||||
sudo add-apt-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main' &&
|
sudo add-apt-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main' &&
|
||||||
wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.10/Release.key -O Release.key -O- | sudo apt-key add - &&
|
wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.10/Release.key -O Release.key -O- | sudo apt-key add - &&
|
||||||
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.10/ ./' &&
|
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.10/ ./' &&
|
||||||
debian_based_2 &&
|
debian-based-2
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
14)
|
14)
|
||||||
|
|
||||||
# Note: This installs the public key to trusted.gpg.d - While this is "acceptable" behaviour it is not best practice.
|
# Note: This installs the public key to trusted.gpg.d - While this is "acceptable" behaviour it is not best practice.
|
||||||
# It is infinitely better than using apt-key add though.
|
# It is infinitely better than using apt-key add though.
|
||||||
# For more information and for instructions to utalise best practices, see:
|
# For more information and for instructions to utalise best practices, see:
|
||||||
@@ -355,90 +434,34 @@ case $CHOICE in
|
|||||||
sudo mv *.gpg /etc/apt/trusted.gpg.d/ && cd /tmp && sudo rm -rf 360 &&
|
sudo mv *.gpg /etc/apt/trusted.gpg.d/ && cd /tmp && sudo rm -rf 360 &&
|
||||||
echo "deb [signed-by=/etc/apt/trusted.gpg.d/opensuse-wine.gpg] https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_21.04/ ./" | sudo tee -a /etc/apt/sources.list.d/opensuse-wine.list
|
echo "deb [signed-by=/etc/apt/trusted.gpg.d/opensuse-wine.gpg] https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_21.04/ ./" | sudo tee -a /etc/apt/sources.list.d/opensuse-wine.list
|
||||||
sudo add-apt-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main' &&
|
sudo add-apt-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main' &&
|
||||||
debian_based_2 &&
|
debian-based-2
|
||||||
select_your_path
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
15)
|
15)
|
||||||
|
|
||||||
void-linux &&
|
void-linux &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
|
|
||||||
16)
|
16)
|
||||||
|
|
||||||
gentoo-linux &&
|
gentoo-linux &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
function select_your_path {
|
##############################################################################
|
||||||
|
|
||||||
HEIGHT=15
|
# For the installation of Autodesk Fusion 360 one of the supported Linux distributions must be selected! - Part 2
|
||||||
WIDTH=200
|
|
||||||
CHOICE_HEIGHT=2
|
|
||||||
CHOICE_WIDTH=200
|
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 3.9"
|
|
||||||
TITLE="Choose setup type"
|
|
||||||
MENU="Choose the kind of setup that best suits your needs."
|
|
||||||
|
|
||||||
OPTIONS=(1 "Standard - Install Autodesk Fusion 360 into your home folder. (/home/YOUR-USERNAME/.wineprefixes/fusion360)"
|
function archlinux-1 {
|
||||||
2 "Custom - Install Autodesk Fusion 360 to another place.")
|
|
||||||
|
|
||||||
CHOICE=$(dialog --clear \
|
|
||||||
--backtitle "$BACKTITLE" \
|
|
||||||
--title "$TITLE" \
|
|
||||||
--menu "$MENU" \
|
|
||||||
$HEIGHT $WIDTH $CHOICE_HEIGHT \
|
|
||||||
"${OPTIONS[@]}" \
|
|
||||||
2>&1 >/dev/tty)
|
|
||||||
|
|
||||||
clear
|
|
||||||
case $CHOICE in
|
|
||||||
1)
|
|
||||||
winetricks-standard
|
|
||||||
;;
|
|
||||||
2)
|
|
||||||
select_your_path_custom &&
|
|
||||||
winetricks-custom
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function select_your_path_custom {
|
|
||||||
dialog --backtitle "Installation of Autodesk Fusion360 - Version 3.9" \
|
|
||||||
--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/YOUR-USERNAME/.wineprefixes/fusion360).' 14 200
|
|
||||||
|
|
||||||
filename=$(dialog --stdout --title "Enter the installation path for Fusion 360:" --backtitle "Installation of Autodesk Fusion360 - Version 3.9" --fselect $HOME/ 14 100)
|
|
||||||
}
|
|
||||||
|
|
||||||
function program_exit {
|
|
||||||
dialog --backtitle "Installation of Autodesk Fusion360 - Version 3.9" \
|
|
||||||
--title "Autodesk Fusion 360 is completed." \
|
|
||||||
--msgbox 'The installation of Autodesk Fusion 360 is completed and you can use it for your projects.' 14 200
|
|
||||||
|
|
||||||
clear
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
function program_exit_uninstall {
|
|
||||||
dialog --backtitle "Installation of Autodesk Fusion360 - Version 3.9" \
|
|
||||||
--title "Uninstalling Autodesk Fusion 360!" \
|
|
||||||
--msgbox 'Autodesk Fusion 360 uninstallation is complete!' 14 200
|
|
||||||
|
|
||||||
clear
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
function archlinux_1 {
|
|
||||||
|
|
||||||
HEIGHT=15
|
HEIGHT=15
|
||||||
WIDTH=60
|
WIDTH=60
|
||||||
CHOICE_HEIGHT=2
|
CHOICE_HEIGHT=2
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 3.9"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 4.0"
|
||||||
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:"
|
||||||
|
|
||||||
@@ -456,23 +479,23 @@ CHOICE=$(dialog --clear \
|
|||||||
clear
|
clear
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
1)
|
1)
|
||||||
archlinux_2 &&
|
archlinux-2 &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
sudo echo "[multilib]" >> /etc/pacman.conf &&
|
sudo echo "[multilib]" >> /etc/pacman.conf &&
|
||||||
sudo echo "Include = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf &&
|
sudo echo "Include = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf &&
|
||||||
archlinux_2 &&
|
archlinux-2 &&
|
||||||
select_your_path
|
select-your-path
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
function archlinux_2 {
|
function archlinux-2 {
|
||||||
sudo pacman -Sy --needed wine wine-mono wine_gecko winetricks p7zip curl cabextract samba ppp
|
sudo pacman -Sy --needed wine wine-mono wine_gecko winetricks p7zip curl cabextract samba ppp
|
||||||
}
|
}
|
||||||
|
|
||||||
function debian_based_1 {
|
function debian-based-1 {
|
||||||
sudo apt-get update &&
|
sudo apt-get update &&
|
||||||
sudo apt-get upgrade &&
|
sudo apt-get upgrade &&
|
||||||
sudo dpkg --add-architecture i386 &&
|
sudo dpkg --add-architecture i386 &&
|
||||||
@@ -480,21 +503,23 @@ function debian_based_1 {
|
|||||||
sudo apt-key add winehq.key
|
sudo apt-key add winehq.key
|
||||||
}
|
}
|
||||||
|
|
||||||
function debian_based_2 {
|
function debian-based-2 {
|
||||||
sudo apt-get update &&
|
sudo apt-get update &&
|
||||||
sudo apt-get upgrade &&
|
sudo apt-get upgrade &&
|
||||||
sudo apt-get install p7zip p7zip-full p7zip-rar curl winbind cabextract wget &&
|
sudo apt-get install p7zip p7zip-full p7zip-rar curl winbind cabextract wget &&
|
||||||
sudo apt-get install --install-recommends winehq-staging
|
sudo apt-get install --install-recommends winehq-staging &&
|
||||||
|
select-your-path
|
||||||
}
|
}
|
||||||
|
|
||||||
function fedora_based_1 {
|
function fedora-based_1 {
|
||||||
sudo dnf update &&
|
sudo dnf update &&
|
||||||
sudo dnf upgrade &&
|
sudo dnf upgrade &&
|
||||||
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||||
}
|
}
|
||||||
|
|
||||||
function fedora_based_2 {
|
function fedora_based_2 {
|
||||||
sudo dnf install p7zip p7zip-plugins curl wget wine cabextract
|
sudo dnf install p7zip p7zip-plugins curl wget wine cabextract &&
|
||||||
|
select-your-path
|
||||||
}
|
}
|
||||||
|
|
||||||
function redhat-linux {
|
function redhat-linux {
|
||||||
@@ -516,6 +541,56 @@ function gentoo-linux {
|
|||||||
sudo emerge -av virtual/wine app-emulation/winetricks app-emulation/wine-mono app-emulation/wine-gecko app-arch/p7zip app-arch/cabextract net-misc/curl net-fs/samba net-dialup/ppp
|
sudo emerge -av virtual/wine app-emulation/winetricks app-emulation/wine-mono app-emulation/wine-gecko app-arch/p7zip app-arch/cabextract net-misc/curl net-fs/samba net-dialup/ppp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Here you can determine how Autodesk Fusion 360 should be instierlert! (Installation location)
|
||||||
|
|
||||||
|
function select-your-path {
|
||||||
|
|
||||||
|
HEIGHT=15
|
||||||
|
WIDTH=200
|
||||||
|
CHOICE_HEIGHT=2
|
||||||
|
CHOICE_WIDTH=200
|
||||||
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 4.0"
|
||||||
|
TITLE="Choose setup type"
|
||||||
|
MENU="Choose the kind of setup that best suits your needs."
|
||||||
|
|
||||||
|
OPTIONS=(1 "Standard - Install Autodesk Fusion 360 into your home folder. (/home/YOUR-USERNAME/.wineprefixes/fusion360)"
|
||||||
|
2 "Custom - Install Autodesk Fusion 360 to another place.")
|
||||||
|
|
||||||
|
CHOICE=$(dialog --clear \
|
||||||
|
--backtitle "$BACKTITLE" \
|
||||||
|
--title "$TITLE" \
|
||||||
|
--menu "$MENU" \
|
||||||
|
$HEIGHT $WIDTH $CHOICE_HEIGHT \
|
||||||
|
"${OPTIONS[@]}" \
|
||||||
|
2>&1 >/dev/tty)
|
||||||
|
|
||||||
|
clear
|
||||||
|
case $CHOICE in
|
||||||
|
1)
|
||||||
|
winetricks-standard
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
select-your-path-custom &&
|
||||||
|
winetricks-custom
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function select-your-path-custom {
|
||||||
|
dialog --backtitle "Installation of Autodesk Fusion360 - Version 4.0" \
|
||||||
|
--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/YOUR-USERNAME/.wineprefixes/fusion360).' 14 200
|
||||||
|
|
||||||
|
filename=$(dialog --stdout --title "Enter the installation path for Fusion 360:" --backtitle "Installation of Autodesk Fusion360 - Version 4.0" --fselect $HOME/ 14 100)
|
||||||
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Autodesk Fusion 360 will now be installed using Wine and Winetricks!
|
||||||
|
|
||||||
function winetricks-standard {
|
function winetricks-standard {
|
||||||
clear
|
clear
|
||||||
mkdir -p /home/$USER/.wineprefixes/fusion360 &&
|
mkdir -p /home/$USER/.wineprefixes/fusion360 &&
|
||||||
@@ -525,12 +600,7 @@ function winetricks-standard {
|
|||||||
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 sh winetricks -q corefonts cjkfonts msxml4 msxml6 vcrun2017 fontsmooth=rgb win8 &&
|
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 sh winetricks -q corefonts cjkfonts msxml4 msxml6 vcrun2017 fontsmooth=rgb win8 &&
|
||||||
# We must install cjkfonts again then sometimes it doesn't work the first time!
|
# We must install cjkfonts again then sometimes it doesn't work the first time!
|
||||||
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 sh winetricks -q cjkfonts &&
|
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 sh winetricks -q cjkfonts &&
|
||||||
# Download and install DXVK if selected
|
configure-dxvk-or-opengl-standard-1 &&
|
||||||
if [ $driver_used -eq 2 ]; then
|
|
||||||
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 sh winetricks -q dxvk &&
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.reg &&
|
|
||||||
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 wine regedit.exe DXVK.reg
|
|
||||||
fi
|
|
||||||
mkdir -p fusion360download &&
|
mkdir -p fusion360download &&
|
||||||
cd fusion360download &&
|
cd fusion360download &&
|
||||||
wget https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe -O Fusion360installer.exe &&
|
wget https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe -O Fusion360installer.exe &&
|
||||||
@@ -540,32 +610,18 @@ function winetricks-standard {
|
|||||||
cd "/home/$USER/.wineprefixes/fusion360/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform" &&
|
cd "/home/$USER/.wineprefixes/fusion360/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform" &&
|
||||||
mkdir -p Options &&
|
mkdir -p Options &&
|
||||||
cd Options &&
|
cd Options &&
|
||||||
# Set DX9 as default renderer if selected DXVK
|
configure-dxvk-or-opengl-standard-2 &&
|
||||||
if [ $driver_used -eq 2 ]; then
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.xml &&
|
|
||||||
mv DXVK.xml NMachineSpecificOptions.xml
|
|
||||||
else
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
|
||||||
fi
|
|
||||||
# Because the location varies depending on the Linux distro!
|
# Because the location varies depending on the Linux distro!
|
||||||
mkdir -p "/home/$USER/.wineprefixes/fusion360/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform" &&
|
mkdir -p "/home/$USER/.wineprefixes/fusion360/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform" &&
|
||||||
cd "/home/$USER/.wineprefixes/fusion360/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform" &&
|
cd "/home/$USER/.wineprefixes/fusion360/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform" &&
|
||||||
mkdir -p Options &&
|
mkdir -p Options &&
|
||||||
cd Options &&
|
cd Options &&
|
||||||
# Set DX9 as default renderer if selected DXVK
|
configure-dxvk-or-opengl-standard-3 &&
|
||||||
if [ $driver_used -eq 2 ]; then
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.xml &&
|
|
||||||
mv DXVK.xml NMachineSpecificOptions.xml
|
|
||||||
else
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
|
||||||
fi
|
|
||||||
#Set up the program launcher for you!
|
#Set up the program launcher for you!
|
||||||
cd "/$HOME/.local/share/applications" &&
|
cd "/$HOME/.local/share/applications" &&
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/Autodesk%20Fusion%20360.desktop
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/Autodesk%20Fusion%20360.desktop &&
|
||||||
mkdir -p "/$HOME/.local/share/fusion360log" &&
|
logfile-installation-standard &&
|
||||||
cd "/$HOME/.local/share/fusion360log" &&
|
program-exit
|
||||||
echo "/home/$USER/.wineprefixes/fusion360" > log.txt &&
|
|
||||||
program_exit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function winetricks-custom {
|
function winetricks-custom {
|
||||||
@@ -577,12 +633,7 @@ function winetricks-custom {
|
|||||||
WINEPREFIX=$filename sh winetricks -q corefonts cjkfonts msxml4 msxml6 vcrun2017 fontsmooth=rgb win8 &&
|
WINEPREFIX=$filename sh winetricks -q corefonts cjkfonts msxml4 msxml6 vcrun2017 fontsmooth=rgb win8 &&
|
||||||
# We must install cjkfonts again then sometimes it doesn't work the first time!
|
# We must install cjkfonts again then sometimes it doesn't work the first time!
|
||||||
WINEPREFIX=$filename sh winetricks -q cjkfonts &&
|
WINEPREFIX=$filename sh winetricks -q cjkfonts &&
|
||||||
#Download and install DXVK if selected
|
configure-dxvk-or-opengl-custom-1 &&
|
||||||
if [ $driver_used -eq 2 ]; then
|
|
||||||
WINEPREFIX=$filename sh winetricks -q dxvk &&
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.reg &&
|
|
||||||
WINEPREFIX=$filename wine regedit.exe DXVK.reg
|
|
||||||
fi
|
|
||||||
mkdir -p fusion360download &&
|
mkdir -p fusion360download &&
|
||||||
cd fusion360download &&
|
cd fusion360download &&
|
||||||
wget https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe -O Fusion360installer.exe &&
|
wget https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe -O Fusion360installer.exe &&
|
||||||
@@ -592,35 +643,77 @@ function winetricks-custom {
|
|||||||
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 &&
|
||||||
# Set DX9 as default renderer if selected DXVK
|
configure-dxvk-or-opengl-custom-2 &&
|
||||||
if [ $driver_used -eq 2 ]; then
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.xml &&
|
|
||||||
mv DXVK.xml NMachineSpecificOptions.xml
|
|
||||||
else
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
|
||||||
fi
|
|
||||||
# Because the location varies depending on the Linux distro!
|
# Because the location varies depending on the Linux distro!
|
||||||
mkdir -p "$filename/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform" &&
|
mkdir -p "$filename/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform" &&
|
||||||
cd "$filename/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform" &&
|
cd "$filename/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform" &&
|
||||||
mkdir -p Options &&
|
mkdir -p Options &&
|
||||||
cd Options &&
|
cd Options &&
|
||||||
# Set DX9 as default renderer if selected DXVK
|
configure-dxvk-or-opengl-custom-3 &&
|
||||||
if [ $driver_used -eq 2 ]; then
|
logfile-installation-custom &&
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/DXVK.xml &&
|
program-exit
|
||||||
mv DXVK.xml NMachineSpecificOptions.xml
|
|
||||||
else
|
|
||||||
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
|
||||||
fi
|
|
||||||
mkdir -p "/$HOME/.local/share/fusion360log" &&
|
|
||||||
cd "/$HOME/.local/share/fusion360log" &&
|
|
||||||
echo "$filename" > log.txt &&
|
|
||||||
program_exit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------
|
##############################################################################
|
||||||
export LC_ALL=en_US.UTF-8
|
|
||||||
export LANG=en_US.UTF-8
|
|
||||||
export LANGUAGE=en_US.UTF-8
|
|
||||||
|
|
||||||
clear
|
# Update/Repair existing installation of Autodesk Fusion 360 on your system!
|
||||||
requirement-check
|
|
||||||
|
function change-fusion360-1 {
|
||||||
|
dialog --title "Make a note of the path to your Autodesk Fusion 360 installation so that you can use it in the next step!" --textbox "/$HOME/.local/share/fusion360log/log.txt" 14 180
|
||||||
|
}
|
||||||
|
|
||||||
|
function change-fusion360-2 {
|
||||||
|
filename=$(dialog --stdout --title "Enter the installation path for Fusion 360:" --backtitle "Installation of Autodesk Fusion360 - Version 4.0" --fselect $HOME/ 14 100)
|
||||||
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# A log file will now be created here so that it can be checked in the future whether an installation of Autodesk Fusion 360 already exists on your system.
|
||||||
|
|
||||||
|
function logfile-installation {
|
||||||
|
mkdir -p "/$HOME/.local/share/fusion360/logfiles/path-log.txt" &&
|
||||||
|
cd "/$HOME/.local/share/fusion360/logfiles/path-log.txt" &&
|
||||||
|
echo "/home/$USER/.wineprefixes/fusion360" >> path-log.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
function logfile-installation-custom {
|
||||||
|
mkdir -p "/$HOME/.local/share/fusion360/logfiles/path-log.txt" &&
|
||||||
|
cd "/$HOME/.local/share/fusion360/logfiles/path-log.txt" &&
|
||||||
|
echo "$filename" >> path-log.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# The uninstallation is complete and will be terminated.
|
||||||
|
|
||||||
|
function program-exit-uninstall {
|
||||||
|
dialog --backtitle "Installation of Autodesk Fusion360 - Version 4.0" \
|
||||||
|
--title "Uninstalling Autodesk Fusion 360!" \
|
||||||
|
--msgbox 'Autodesk Fusion 360 uninstallation is complete!' 14 200
|
||||||
|
|
||||||
|
clear
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# The installation is complete and will be terminated.
|
||||||
|
|
||||||
|
function program-exit {
|
||||||
|
dialog --backtitle "Installation of Autodesk Fusion360 - Version 4.0" \
|
||||||
|
--title "Autodesk Fusion 360 is completed." \
|
||||||
|
--msgbox 'The installation of Autodesk Fusion 360 is completed and you can use it for your projects.' 14 200
|
||||||
|
|
||||||
|
clear
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# THE INSTALLATION PROGRAM IS STARTED HERE:
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
clear &&
|
||||||
|
select-language &&
|
||||||
|
check-requirement
|
||||||
|
|
||||||
|
############################################################################################################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user