From 15e498f0e539f254ebf7ccc38fc95b27fab7461d Mon Sep 17 00:00:00 2001 From: Steve Zabka <79079633+cryinkfly@users.noreply.github.com> Date: Fri, 18 Feb 2022 09:14:58 +0100 Subject: [PATCH] Create launcher.sh --- files/scripts/stable-branch/bin/launcher.sh | 39 +++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 files/scripts/stable-branch/bin/launcher.sh diff --git a/files/scripts/stable-branch/bin/launcher.sh b/files/scripts/stable-branch/bin/launcher.sh new file mode 100644 index 0000000..59d44cc --- /dev/null +++ b/files/scripts/stable-branch/bin/launcher.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +############################################################################# +# Name: Autodesk Fusion 360 - Launcher (Linux) # +# Description: With this file you run Autodesk Fusion 360 on your system. # +# Author: Steve Zabka # +# Author URI: https://cryinkfly.com # +# License: MIT # +# Copyright (c) 2020-2021 # +# Time/Date: 09:00/18.02.2022 # +# Version: 1.2 # +############################################################################# + +################################# +# Open Autodesk Fusion 360 now! # +################################# + +############################################################################################################################################################### +# ALL LOG-FUNCTIONS ARE ARRANGED HERE: # +############################################################################################################################################################### + +# This feature will check if there is a new version of Autodesk Fusion 360. +function setupact-check-fusion360 { + wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/scripts/stable-branch/.config/fusion-360/bin/update.sh + chmod +x update.sh + . update.sh +} + +# You must change the first part ($HOME/.wineprefixes/fusion360) and the last part (WINEPREFIX="$HOME/.wineprefixes/fusion360") when you have installed Autodesk Fusion 360 into another directory! +function setupact-open-fusion360 { + launcher="$(find $HOME/.wineprefixes/fusion360 -name Fusion360.exe -printf "%T+ %p\n" | sort -r 2>&1 | head -n 1 | sed -r 's/.+0000000000 (.+)/\1/')" && WINEPREFIX="$HOME/.wineprefixes/fusion360" wine "$launcher" +} + +############################################################################################################################################################### +# THE INSTALLATION PROGRAM IS STARTED HERE: # +############################################################################################################################################################### + +setupact-check-fusion360 +setupact-open-fusion360