Files
Autodesk-Fusion-360-for-Linux/files/scripts/stable-branch/data/resources/extensions/extensions-standard.sh

126 lines
5.3 KiB
Bash
Raw Normal View History

2021-10-20 14:16:43 +02:00
#!/bin/bash
####################################################################################################
# Name: Autodesk Fusion 360 - Setup Wizard (Linux) #
# Description: With this file you get all extensions for the Setup Wizard. #
# Author: Steve Zabka #
# Author URI: https://cryinkfly.com #
# License: MIT #
# Copyright (c) 2020-2021 #
2021-10-21 16:08:31 +02:00
# Time/Date: 16:00/21.10.2021 #
# Version: 1.2 #
2021-10-20 14:16:43 +02:00
####################################################################################################
###############################################################################################################################################################
# ALL FUNCTIONS & DIALOGS ARE ARRANGED HERE: #
###############################################################################################################################################################
# Airfoil Tools
function airfoil-tools-plugin-standard {
WINEPREFIX=$HOME/.wineprefixes/fusion360 wine data/resources/extensions/AirfoilTools_win64.msi
}
##############################################################################
# Additive Assistant (FFF)
function additive-assistant-plugin-standard {
2021-10-21 16:51:29 +02:00
WINEPREFIX=$HOME/.wineprefixes/fusion360 wine data/resources/extensions/AdditiveAssistant_win64.msi
2021-10-20 14:16:43 +02:00
}
##############################################################################
# Czech localization for F360
function czech-locale-search-plugin {
CZECH_LOCALE=`zenity --file-selection --title="$text_select_czech_plugin"`
case $? in
0)
echo "\"$FILE\" selected.";;
1)
zenity --info \
--text="$text_info_czech_plugin"
2021-10-21 16:16:58 +02:00
manager-extensions-standard
2021-10-20 14:16:43 +02:00
install-extensions-standard
;;
-1)
2021-10-21 16:16:58 +02:00
zenity --error \
--text="$text_error"
exit;
;;
2021-10-20 14:16:43 +02:00
esac
}
function czech-locale-plugin-standard {
czech-locale-search-plugin
WINEPREFIX=$HOME/.wineprefixes/fusion360 wine $CZECH_LOCALE
}
##############################################################################
# HP 3D Printers for Autodesk® Fusion 360™
function hp-3dprinter-connector-plugin-standard {
2021-10-21 16:51:29 +02:00
WINEPREFIX=$HOME/.wineprefixes/fusion360 wine data/resources/extensions/HP3DPrintersForFusion360_win64.msi
2021-10-20 14:16:43 +02:00
}
##############################################################################
# OctoPrint for Autodesk® Fusion 360™
function octoprint-plugin-standard {
2021-10-21 16:51:29 +02:00
WINEPREFIX=$HOME/.wineprefixes/fusion360 wine data/resources/extensions/OctoPrintForFusion360_win64.msi
2021-10-20 14:16:43 +02:00
}
##############################################################################
# RoboDK
function robodk-plugin-standard {
2021-10-21 16:51:29 +02:00
WINEPREFIX=$HOME/.wineprefixes/fusion360 wine data/resources/extensions/RoboDK_win64.msi
2021-10-20 14:16:43 +02:00
}
##############################################################################
# ALL DIALOGS ARE ARRANGED HERE:
##############################################################################
# Installation of various extensions is offered here. For examble: OctoPrint for Autodesk® Fusion 360™
2021-10-21 16:08:31 +02:00
function manager-extensions-standard {
2021-10-21 16:16:58 +02:00
2021-10-20 14:16:43 +02:00
response=$(zenity --list \
--checklist \
--title="$program_name" \
2021-10-21 17:28:46 +02:00
--width=1000 \
2021-10-20 15:55:32 +02:00
--height=500 \
2021-10-21 17:28:46 +02:00
--column="$text_select" --column="$text_extension" --column="$text_extension_description"\
FALSE "Airfoil Tools" "$text_extension_description_1" \
FALSE "Additive Assistant (FFF)" "$text_extension_description_2" \
FALSE "Czech localization for F360" "$text_extension_description_3" \
FALSE "HP 3D Printers for Autodesk® Fusion 360™" "$text_extension_description_4" \
FALSE "OctoPrint for Autodesk® Fusion 360™" "$text_extension_description_5" \
FALSE "RoboDK" "$text_extension_description_6" )
2021-10-20 14:16:43 +02:00
2021-10-21 17:16:51 +02:00
[[ $response = *"Airfoil Tools"* ]] && airfoil-tools-plugin-standard
2021-10-20 14:16:43 +02:00
2021-10-21 17:16:51 +02:00
[[ $response = *"Additive Assistant (FFF)"* ]] && additive-assistant-plugin-standard
2021-10-20 14:16:43 +02:00
2021-10-21 17:16:51 +02:00
[[ $response = *"Czech localization for F360"* ]] && czech-locale-plugin-standard
2021-10-20 14:16:43 +02:00
2021-10-21 17:16:51 +02:00
[[ $response = *"HP 3D Printers for Autodesk® Fusion 360™"* ]] && hp-3dprinter-connector-plugin-standard
2021-10-20 14:16:43 +02:00
2021-10-21 17:16:51 +02:00
[[ $response = *"OctoPrint for Autodesk® Fusion 360™"* ]] && octoprint-plugin-standard
2021-10-20 14:16:43 +02:00
2021-10-21 17:16:51 +02:00
[[ $response = *"RoboDK"* ]] && robodk-plugin-standard
2021-10-20 14:16:43 +02:00
2021-10-21 17:16:51 +02:00
[[ "$response" ]] || manager-extensions-standard
2021-10-20 14:16:43 +02:00
}
##############################################################################
# THE INSTALLATION PROGRAM IS STARTED HERE:
##############################################################################
2021-10-21 16:08:31 +02:00
manager-extensions-standard