2022-02-18 09:14:58 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#!/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                                                         #  
						 
					
						
							
								
									
										
										
										
											2022-02-18 11:43:46 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Copyright (c) 2020-2022                                                   #  
						 
					
						
							
								
									
										
										
										
											2022-02-21 12:09:36 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Time/Date:    12:00/21.02.2022                                            #  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Version:      1.4                                                         #  
						 
					
						
							
								
									
										
										
										
											2022-02-18 09:14:58 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#############################################################################  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-20 12:51:15 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Path: /$HOME/.config/fusion-360/bin/launcher.sh  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 09:14:58 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#################################  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Open Autodesk Fusion 360 now! #  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#################################  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								###############################################################################################################################################################  
						 
					
						
							
								
									
										
										
										
											2022-02-18 11:43:46 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ALL FUNCTIONS ARE ARRANGED HERE:                                                                                                                            #  
						 
					
						
							
								
									
										
										
										
											2022-02-18 09:14:58 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								###############################################################################################################################################################  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# This feature will check if there is a new version of Autodesk Fusion 360.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								function  setupact-check-fusion360 {  
						 
					
						
							
								
									
										
										
										
											2022-02-21 12:26:41 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  wget -N -P $HOME /.config/bin https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/builds/stable-branch/bin/update.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  cd  $HOME /.config/bin
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 09:14:58 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								  chmod +x update.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  . update.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-20 12:51:15 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								###############################################################################################################################################################  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 09:14:58 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# 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 " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								###############################################################################################################################################################  
						 
					
						
							
								
									
										
										
										
											2022-02-18 11:44:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# THE PROGRAM IS STARTED HERE:                                                                                                                                #  
						 
					
						
							
								
									
										
										
										
											2022-02-18 09:14:58 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								###############################################################################################################################################################  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								setupact-check-fusion360
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								setupact-open-fusion360