Files
Autodesk-Fusion-360-for-Linux/scripts/stable-branch/fusion360-install.sh

112 lines
4.7 KiB
Bash
Raw Normal View History

#!/bin/bash
# Name: Autodesk Fusion 360 - Installationsskript (Linux)
# Description: With this file you can install Autodesk Fusion 360 on Linux.
# Author: Steve Zabka
# Author URI: https://cryinkfly.de
2021-07-31 21:41:50 +02:00
# Time/Date: 21:30/31.07.2021
# Version: 2.0
# 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.
# Find your correct package manager and install some packages (the minimum requirements), what you need for the installation of Autodesk Fusion 360!
# Debian versions
if VERB="$( which apt-get )" 2> /dev/null; then
echo "Debian-based"
sudo apt-get update &&
sudo apt-get upgrade &&
sudo dpkg --add-architecture i386 &&
wget -nc https://dl.winehq.org/wine-builds/winehq.key &&
sudo apt-key add winehq.key
elif [[ $(lsb_release -rs) == "10" ]]; then
echo "Debian 10 based system"
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'
elif [[ $(lsb_release -rs) == "11" ]]; then
echo "Debian 11 based system"
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main'
2021-07-31 21:41:50 +02:00
# Ubuntu versions
elif [[ $(lsb_release -rs) == "20.04" ]]; then
echo "Ubuntu 20.04 based system"
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
elif [[ $(lsb_release -rs) == "20.10" ]]; then
echo "Ubuntu 20.10 based system"
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main'
elif [[ $(lsb_release -rs) == "21.04" ]]; then
echo "Ubuntu 21.04 based system"
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main'
elif VERB="$( which apt-get )" 2> /dev/null; then
sudo apt-get update &&
sudo apt-get upgrade &&
2021-05-21 22:23:05 +02:00
sudo apt-get install p7zip p7zip-full p7zip-rar curl winbind cabextract &&
# sudo apt-get install xdotool (experimental)
sudo apt-get install --install-recommends winehq-staging
2021-07-31 21:41:50 +02:00
# Fedora 34 version
elif VERB="$( which dnf )" 2> /dev/null; then
echo "RedHat-based"
sudo dnf update &&
2021-05-11 16:31:19 +02:00
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 config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/34/winehq.repo &&
2021-05-21 22:23:05 +02:00
sudo dnf install p7zip p7zip-plugins curl wine cabextract
# sudo dnf install xdotool (experimental)
2021-07-31 21:41:50 +02:00
# Manjaro versions
elif VERB="$( which pacman )" 2> /dev/null; then
echo "Arch-based"
sudo pacman -Syu &&
2021-05-21 22:23:05 +02:00
sudo pacman -S wine wine-mono wine_gecko
# sudo pacman -S xdotool (experimental)
2021-07-31 21:41:50 +02:00
# openSUSE Leap 15.3 version
elif VERB="$( which zypper )" 2> /dev/null; then
echo "openSUSE-based"
2021-07-31 21:41:50 +02:00
su -c 'zypper up && zypper ar -cfp 95 https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.3/ wine && zypper install p7zip-full curl wine cabextract'
2021-05-21 22:23:05 +02:00
# su -c 'zypper install xdotool' (experimental)
else
2021-07-31 21:41:50 +02:00
echo "Non-compatible Linux distribution version was found!"
exit 1
fi
if [[ 1 -ne $# ]]; then
2021-07-31 21:41:50 +02:00
echo "Minimum requirements have been installed and set up for your system!"
# Installation of Autodesk Fusion 360:
echo "The latest version of wintricks will be downloaded and executed."
2021-07-31 08:28:29 +02:00
wget -N https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks &&
chmod +x winetricks &&
2021-06-27 07:51:07 +02:00
WINEPREFIX=~/.fusion360 sh winetricks -q corefonts msxml4 msxml6 vcrun2019 fontsmooth=rgb win8 &&
2021-07-31 21:41:50 +02:00
# Windows Version 10 make some problems at the moment!
echo "Autodesk Fusion 360 will be installed and set up."
mkdir -p fusion360 &&
cd fusion360 &&
2021-07-31 08:28:29 +02:00
wget -N https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe &&
WINEPREFIX=~/.fusion360 wine Fusion\ 360\ Admin\ Install.exe -p deploy -g -f log.txt --quiet &&
WINEPREFIX=~/.fusion360 wine Fusion\ 360\ Admin\ Install.exe -p deploy -g -f log.txt --quiet &&
mkdir -p "$HOME/.fusion360/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform/Options" &&
cat > "$HOME/.fusion360/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform/Options/NMachineSpecificOptions.xml" << "E"
<?xml version="1.0" encoding="UTF-16" standalone="no" ?>
<OptionGroups>
<BootstrapOptionsGroup SchemaVersion="2" ToolTip="Special preferences that require the application to be restarted after a change." UserName="Bootstrap">
<driverOptionId ToolTip="The driver used to display the graphics" UserName="Graphics driver" Value="VirtualDeviceGLCore"/></BootstrapOptionsGroup>
</OptionGroups>
E
echo "The installation of Autodesk Fusion 360 is completed."
exit 1
fi
$VERB "$1"
exit $?