mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-11-02 11:25:48 +01:00
126 lines
5.0 KiB
Bash
126 lines
5.0 KiB
Bash
#!/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 #
|
|
# Time/Date: 16:00/21.10.2021 #
|
|
# Version: 1.2 #
|
|
####################################################################################################
|
|
|
|
###############################################################################################################################################################
|
|
# ALL FUNCTIONS & DIALOGS ARE ARRANGED HERE: #
|
|
###############################################################################################################################################################
|
|
|
|
# Airfoil Tools
|
|
|
|
function airfoil-tools-plugin-custom {
|
|
WINEPREFIX=$custom_directory wine data/resources/extensions/AirfoilTools_win64.msi
|
|
}
|
|
|
|
##############################################################################
|
|
|
|
# Additive Assistant (FFF)
|
|
|
|
function additive-assistant-plugin-custom {
|
|
WINEPREFIX=$custom_directory wine data/resources/extensions/AdditiveAssistant_win64.msi
|
|
}
|
|
|
|
##############################################################################
|
|
|
|
# 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"
|
|
manager-extensions-custom
|
|
install-extensions-custom
|
|
;;
|
|
-1)
|
|
zenity --error \
|
|
--text="$text_error"
|
|
exit;
|
|
;;
|
|
esac
|
|
}
|
|
|
|
function czech-locale-plugin-custom {
|
|
czech-locale-search-plugin
|
|
WINEPREFIX=$custom_directory wine $CZECH_LOCALE
|
|
}
|
|
|
|
##############################################################################
|
|
|
|
# HP 3D Printers for Autodesk® Fusion 360™
|
|
|
|
function hp-3dprinter-connector-plugin-custom {
|
|
WINEPREFIX=$custom_directory wine data/resources/extensions/HP3DPrintersForFusion360_win64.msi
|
|
}
|
|
|
|
##############################################################################
|
|
|
|
# OctoPrint for Autodesk® Fusion 360™
|
|
|
|
function octoprint-plugin-custom {
|
|
WINEPREFIX=$custom_directory wine data/resources/extensions/OctoPrintForFusion360_win64.msi
|
|
}
|
|
|
|
##############################################################################
|
|
|
|
# RoboDK
|
|
|
|
function robodk-plugin-custom {
|
|
WINEPREFIX=$custom_directory wine data/resources/extensions/RoboDK_win64.msi
|
|
}
|
|
|
|
##############################################################################
|
|
# ALL DIALOGS ARE ARRANGED HERE:
|
|
##############################################################################
|
|
|
|
# Installation of various extensions is offered here. For examble: OctoPrint for Autodesk® Fusion 360™
|
|
|
|
function manager-extensions-custom {
|
|
|
|
response=$(zenity --list \
|
|
--checklist \
|
|
--title="$program_name" \
|
|
--width=900 \
|
|
--height=500 \
|
|
--column="Select" --column="Extension" --column="Description"\
|
|
FALSE "Airfoil Tools" "Description_1" \
|
|
FALSE "Additive Assistant (FFF)" "Description_2" \
|
|
FALSE "Czech localization for F360" "Description_3" \
|
|
FALSE "HP 3D Printers for Autodesk® Fusion 360™" "Description_4" \
|
|
FALSE "OctoPrint for Autodesk® Fusion 360™" "Description_5" \
|
|
FALSE "RoboDK" "Description_6" )
|
|
|
|
[[ $response = *"Airfoil Tools"* ]] && airfoil-tools-plugin-custom
|
|
|
|
[[ $response = *"Additive Assistant (FFF)"* ]] && additive-assistant-plugin-custom
|
|
|
|
[[ $response = *"Czech localization for F360"* ]] && czech-locale-plugin-custom
|
|
|
|
[[ $response = *"HP 3D Printers for Autodesk® Fusion 360™"* ]] && hp-3dprinter-connector-plugin-custom
|
|
|
|
[[ $response = *"OctoPrint for Autodesk® Fusion 360™"* ]] && octoprint-plugin-custom
|
|
|
|
[[ $response = *"RoboDK"* ]] && robodk-plugin-custom
|
|
|
|
[[ "$response" ]] || manager-extensions-custom
|
|
}
|
|
|
|
##############################################################################
|
|
# THE INSTALLATION PROGRAM IS STARTED HERE:
|
|
##############################################################################
|
|
|
|
manager-extensions-custom
|