mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-11-12 16:25:45 +01:00
Add a new function
This commit is contained in:
@@ -7,14 +7,63 @@
|
||||
# Author URI: https://cryinkfly.com #
|
||||
# License: MIT #
|
||||
# Copyright (c) 2020-2021 #
|
||||
# Time/Date: 15:00/21.10.2021 #
|
||||
# Version: 1.1 #
|
||||
# Time/Date: 16:00/21.10.2021 #
|
||||
# Version: 1.2 #
|
||||
####################################################################################################
|
||||
|
||||
###############################################################################################################################################################
|
||||
# ALL FUNCTIONS & DIALOGS ARE ARRANGED HERE: #
|
||||
###############################################################################################################################################################
|
||||
|
||||
# Install selected plugins!
|
||||
|
||||
function install-extensions-standard {
|
||||
|
||||
if [ "$plugin_1" = "1" ]; then
|
||||
airfoil-tools-plugin-standard
|
||||
else
|
||||
echo "Airfoil Tools not selected."
|
||||
fi
|
||||
|
||||
if [ "$plugin_2" = "1" ]; then
|
||||
additive-assistant-plugin-standard
|
||||
else
|
||||
echo "Additive Assistant (FFF) not selected."
|
||||
fi
|
||||
|
||||
if [ "$plugin_3" = "1" ]; then
|
||||
czech-locale-plugin-standard
|
||||
else
|
||||
echo "Czech localization for F360 not selected."
|
||||
fi
|
||||
|
||||
if [ "$plugin_4" = "1" ]; then
|
||||
hp-3dprinter-connector-plugin-standard
|
||||
else
|
||||
echo "HP 3D Printers for Autodesk® Fusion 360™ not selected."
|
||||
fi
|
||||
|
||||
if [ "$plugin_5" = "1" ]; then
|
||||
octoprint-plugin-standard
|
||||
else
|
||||
echo "OctoPrint for Autodesk® Fusion 360™ not selected."
|
||||
fi
|
||||
|
||||
if [ "$plugin_6" = "1" ]; then
|
||||
robodk-plugin-standard
|
||||
else
|
||||
echo "RoboDK not selected."
|
||||
fi
|
||||
|
||||
if [ "$reset" = "1" ]; then
|
||||
manager-extensions-standard
|
||||
else
|
||||
echo "Reset!"
|
||||
fi
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
|
||||
# Airfoil Tools
|
||||
|
||||
function airfoil-tools-plugin-standard {
|
||||
@@ -84,7 +133,7 @@ function robodk-plugin-standard {
|
||||
|
||||
# Installation of various extensions is offered here. For examble: OctoPrint for Autodesk® Fusion 360™
|
||||
|
||||
function install-extensions-standard {
|
||||
function manager-extensions-standard {
|
||||
response=$(zenity --list \
|
||||
--checklist \
|
||||
--title="$program_name" \
|
||||
@@ -98,23 +147,32 @@ function install-extensions-standard {
|
||||
FALSE "OctoPrint for Autodesk® Fusion 360™" "$text_extension_description_5" \
|
||||
FALSE "RoboDK" "$text_extension_description_6" )
|
||||
|
||||
[[ $response = *"Airfoil Tools"* ]] && airfoil-tools-plugin-standard
|
||||
[[ $response = *"Airfoil Tools"* ]] && plugin_1="1"
|
||||
|
||||
[[ $response = *"Additive Assistant (FFF)"* ]] && additive-assistant-plugin-standard
|
||||
[[ $response = *"Additive Assistant (FFF)"* ]] && plugin_2="1"
|
||||
|
||||
[[ $response = *"Czech localization for F360"* ]] && czech-locale-plugin-standard
|
||||
[[ $response = *"Czech localization for F360"* ]] && plugin_3="1"
|
||||
|
||||
[[ $response = *"HP 3D Printers for Autodesk® Fusion 360™"* ]] && hp-3dprinter-connector-plugin-standard
|
||||
[[ $response = *"HP 3D Printers for Autodesk® Fusion 360™"* ]] && plugin_4="1"
|
||||
|
||||
[[ $response = *"OctoPrint for Autodesk® Fusion 360™"* ]] && octoprint-plugin-standard
|
||||
[[ $response = *"OctoPrint for Autodesk® Fusion 360™"* ]] && plugin_5="1"
|
||||
|
||||
[[ $response = *"RoboDK"* ]] && robodk-plugin-standard
|
||||
[[ $response = *"RoboDK"* ]] && plugin_6="1"
|
||||
|
||||
[[ "$response" ]] || install-extensions-standard
|
||||
[[ "$response" ]] || reset="1" #manager-extensions-standard
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
# THE INSTALLATION PROGRAM IS STARTED HERE:
|
||||
##############################################################################
|
||||
|
||||
plugin_1="0"
|
||||
plugin_2="0"
|
||||
plugin_3="0"
|
||||
plugin_4="0"
|
||||
plugin_5="0"
|
||||
plugin_6="0"
|
||||
reset="0"
|
||||
|
||||
manager-extensions-standard
|
||||
install-extensions-standard
|
||||
|
||||
Reference in New Issue
Block a user