mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-11-02 19:35:51 +01:00
Update extensions-custom.sh
This commit is contained in:
@@ -15,56 +15,6 @@
|
|||||||
# ALL FUNCTIONS & DIALOGS ARE ARRANGED HERE: #
|
# ALL FUNCTIONS & DIALOGS ARE ARRANGED HERE: #
|
||||||
###############################################################################################################################################################
|
###############################################################################################################################################################
|
||||||
|
|
||||||
# Install selected plugins!
|
|
||||||
|
|
||||||
function install-extensions-custom {
|
|
||||||
|
|
||||||
if [ "$plugin_1" = "1" ]; then
|
|
||||||
airfoil-tools-plugin-custom
|
|
||||||
else
|
|
||||||
echo "Airfoil Tools not selected."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$plugin_2" = "1" ]; then
|
|
||||||
additive-assistant-plugin-custom
|
|
||||||
else
|
|
||||||
echo "Additive Assistant (FFF) not selected."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$plugin_3" = "1" ]; then
|
|
||||||
czech-locale-plugin-custom
|
|
||||||
else
|
|
||||||
echo "Czech localization for F360 not selected."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$plugin_4" = "1" ]; then
|
|
||||||
hp-3dprinter-connector-plugin-custom
|
|
||||||
else
|
|
||||||
echo "HP 3D Printers for Autodesk® Fusion 360™ not selected."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$plugin_5" = "1" ]; then
|
|
||||||
octoprint-plugin-custom
|
|
||||||
else
|
|
||||||
echo "OctoPrint for Autodesk® Fusion 360™ not selected."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$plugin_6" = "1" ]; then
|
|
||||||
robodk-plugin-custom
|
|
||||||
else
|
|
||||||
echo "RoboDK not selected."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$reset" = "1" ]; then
|
|
||||||
manager-extensions-custom
|
|
||||||
install-extensions-custom
|
|
||||||
else
|
|
||||||
echo "Reset!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
# Airfoil Tools
|
# Airfoil Tools
|
||||||
|
|
||||||
function airfoil-tools-plugin-custom {
|
function airfoil-tools-plugin-custom {
|
||||||
@@ -140,40 +90,32 @@ function robodk-plugin-custom {
|
|||||||
|
|
||||||
function manager-extensions-custom {
|
function manager-extensions-custom {
|
||||||
|
|
||||||
plugin_1="0"
|
|
||||||
plugin_2="0"
|
|
||||||
plugin_3="0"
|
|
||||||
plugin_4="0"
|
|
||||||
plugin_5="0"
|
|
||||||
plugin_6="0"
|
|
||||||
reset="0"
|
|
||||||
|
|
||||||
response=$(zenity --list \
|
response=$(zenity --list \
|
||||||
--checklist \
|
--checklist \
|
||||||
--title="$program_name" \
|
--title="$program_name" \
|
||||||
--width=1000 \
|
--width=900 \
|
||||||
--height=500 \
|
--height=500 \
|
||||||
--column="$text_select" --column="$text_extension" --column="$text_extension_description"\
|
--column="Select" --column="Extension" --column="Description"\
|
||||||
FALSE "Airfoil Tools" "$text_extension_description_1" \
|
FALSE "Airfoil Tools" "Description_1" \
|
||||||
FALSE "Additive Assistant (FFF)" "$text_extension_description_2" \
|
FALSE "Additive Assistant (FFF)" "Description_2" \
|
||||||
FALSE "Czech localization for F360" "$text_extension_description_3" \
|
FALSE "Czech localization for F360" "Description_3" \
|
||||||
FALSE "HP 3D Printers for Autodesk® Fusion 360™" "$text_extension_description_4" \
|
FALSE "HP 3D Printers for Autodesk® Fusion 360™" "Description_4" \
|
||||||
FALSE "OctoPrint for Autodesk® Fusion 360™" "$text_extension_description_5" \
|
FALSE "OctoPrint for Autodesk® Fusion 360™" "Description_5" \
|
||||||
FALSE "RoboDK" "$text_extension_description_6" )
|
FALSE "RoboDK" "Description_6" )
|
||||||
|
|
||||||
[[ $response = *"Airfoil Tools"* ]] && plugin_1="1"
|
[[ $response = *"Airfoil Tools"* ]] && airfoil-tools-plugin-custom
|
||||||
|
|
||||||
[[ $response = *"Additive Assistant (FFF)"* ]] && plugin_2="1"
|
[[ $response = *"Additive Assistant (FFF)"* ]] && additive-assistant-plugin-custom
|
||||||
|
|
||||||
[[ $response = *"Czech localization for F360"* ]] && plugin_3="1"
|
[[ $response = *"Czech localization for F360"* ]] && czech-locale-plugin-custom
|
||||||
|
|
||||||
[[ $response = *"HP 3D Printers for Autodesk® Fusion 360™"* ]] && plugin_4="1"
|
[[ $response = *"HP 3D Printers for Autodesk® Fusion 360™"* ]] && hp-3dprinter-connector-plugin-custom
|
||||||
|
|
||||||
[[ $response = *"OctoPrint for Autodesk® Fusion 360™"* ]] && plugin_5="1"
|
[[ $response = *"OctoPrint for Autodesk® Fusion 360™"* ]] && octoprint-plugin-custom
|
||||||
|
|
||||||
[[ $response = *"RoboDK"* ]] && plugin_6="1"
|
[[ $response = *"RoboDK"* ]] && robodk-plugin-custom
|
||||||
|
|
||||||
[[ "$response" ]] || reset="1" #manager-extensions-custom
|
[[ "$response" ]] || manager-extensions-custom
|
||||||
}
|
}
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@@ -181,4 +123,3 @@ reset="0"
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
manager-extensions-custom
|
manager-extensions-custom
|
||||||
install-extensions-custom
|
|
||||||
|
|||||||
Reference in New Issue
Block a user