mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-10-26 07:56:10 +01:00
Update autodesk_fusion_installer_x86-64.sh
This commit is contained in:
@@ -10,21 +10,138 @@ YELLOW=$'\033[0;33m'
|
||||
GREEN=$'\033[0;32m'
|
||||
NOCOLOR=$'\033[0m'
|
||||
|
||||
SELECTED_DIRECTORY="$HOME/.autodesk/autodesk_fusion"
|
||||
|
||||
# URL to download winetricks
|
||||
WINETRICKS_URL="https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks"
|
||||
|
||||
# URL to download Fusion360Installer.exe files
|
||||
# AUTODESK_FUSION_INSTALLER_URL="https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe" <-- Old Link!!!
|
||||
AUTODESK_FUSION_INSTALLER_URL="https://dl.appstreaming.autodesk.com/production/installers/Fusion%20Admin%20Install.exe"
|
||||
# AUTODESK_FUSION_INSTALLER_URL="https://dl.appstreaming.autodesk.com/production/installers/Fusion%20Client%20Downloader.exe" <-- Alternative Link!!!
|
||||
|
||||
# URL to download Microsoft Edge WebView2.Exec
|
||||
# WEBVIEW2_INSTALLER_URL="https://github.com/aedancullen/webview2-evergreen-standalone-installer-archive/releases/download/109.0.1518.78/MicrosoftEdgeWebView2RuntimeInstallerX64.exe" <-- Old Link!!!
|
||||
WEBVIEW2_INSTALLER_URL="https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/76eb3dc4-7851-45b7-a392-460523b0e2bb/MicrosoftEdgeWebView2RuntimeInstallerX64.exe"
|
||||
|
||||
# URL to download the patched Qt6WebEngineCore.dll file
|
||||
QT6_WEBENGINECORE_URL="https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/extras/patched-dlls/Qt6WebEngineCore.dll.7z"
|
||||
|
||||
# URL to download the patched siappdll.dll file
|
||||
SIAPPDLL_URL="https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/extras/patched-dlls/siappdll.dll"
|
||||
|
||||
###############################################################################################################################################################
|
||||
# ALL FUNCTIONS ARE HERE: #
|
||||
###############################################################################################################################################################
|
||||
|
||||
check_if_wine_exists() {
|
||||
function check_if_wine_exists() {
|
||||
if command -v wine &> /dev/null; then
|
||||
echo -e "${GREEN}✅ Wine is installed. The installer will be continued.${NOCOLOR}"
|
||||
echo -e "$(gettext "${GREEN}✅ Wine is installed. The installer will be continued.${NOCOLOR}")"
|
||||
else
|
||||
echo -e "${RED}❌ Wine is not installed. The installer will be terminated.${NOCOLOR}"
|
||||
echo -e "$(gettext "${RED}❌ Wine is not installed. The installer will be terminated.${NOCOLOR}")"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
function create_data_structure() {
|
||||
local dirs=(
|
||||
"$SELECTED_DIRECTORY"
|
||||
"$SELECTED_DIRECTORY/cache"
|
||||
"$SELECTED_DIRECTORY/cache/DLLs"
|
||||
"$SELECTED_DIRECTORY/cache/extensions"
|
||||
"$SELECTED_DIRECTORY/logs"
|
||||
"$SELECTED_DIRECTORY/wineprefix/autodesk_fusion"
|
||||
)
|
||||
|
||||
mkdir -p "${dirs[@]}"
|
||||
}
|
||||
|
||||
function download_files() {
|
||||
# Download the newest winetricks version:
|
||||
echo -e "$(gettext "${YELLOW}Downloading the latest version of Winetricks...${NOCOLOR}")"
|
||||
curl -L "$WINETRICKS_URL" -o "$SELECTED_DIRECTORY/winetricks"
|
||||
chmod +x "$SELECTED_DIRECTORY/winetricks"
|
||||
echo -e "$(gettext "${GREEN}The latest winetricks version is downloaded and configured.${NOCOLOR}")"
|
||||
|
||||
# Search for an existing installer of Autodesk Fusion
|
||||
AUTODESK_FUSION_INSTALLER="$SELECTED_DIRECTORY/cache/FusionClientInstaller.exe"
|
||||
if [ -f "$AUTODESK_FUSION_INSTALLER" ]; then
|
||||
echo -e "$(gettext "${GREEN}The latest Autodesk Fusion installer has been found.${NOCOLOR}")"
|
||||
else
|
||||
echo -e "$(gettext "${YELLOW}Downloading the latest version of the Autodesk Fusion installer.${NOCOLOR}")"
|
||||
curl -L "$AUTODESK_FUSION_INSTALLER_URL" -o "$AUTODESK_FUSION_INSTALLER"
|
||||
echo -e "$(gettext "${GREEN}The latest version of the Autodesk Fusion installer is downloaded.${NOCOLOR}")"
|
||||
fi
|
||||
|
||||
# Search for an existing installer of WEBVIEW2
|
||||
WEBVIEW2_INSTALLER="$SELECTED_DIRECTORY/cache/WebView2installer.exe"
|
||||
if [ -f "$WEBVIEW2_INSTALLER" ]; then
|
||||
echo -e "$(gettext "${GREEN}The latest WebView2 installer has been found.${NOCOLOR}")"
|
||||
else
|
||||
echo -e "$(gettext "${YELLOW}Downloading the latest version of the WebView2 installer.${NOCOLOR}")"
|
||||
curl -L "$WEBVIEW2_INSTALLER_URL" -o "$WEBVIEW2_INSTALLER"
|
||||
echo -e "$(gettext "${GREEN}The latest version of the WebView2 installer is downloaded.${NOCOLOR}")"
|
||||
fi
|
||||
|
||||
# Download all verified/tested extensions for Autodesk Fusion
|
||||
echo -e "$(gettext "${YELLOW}Downloading all verified/tested for Autodesk Fusion.${NOCOLOR}")"
|
||||
|
||||
local extensions=(
|
||||
"Ceska_lokalizace_pro_Autodesk_Fusion.exe|https://www.cadstudio.cz/dl/Ceska_lokalizace_pro_Autodesk_Fusion_360.exe"
|
||||
"HP_3DPrinters_for_Fusion360-win64.msi|https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extensions/HP_3DPrinters_for_Fusion360-win64.msi"
|
||||
"Markforged_for_Fusion360-win64.msi|https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extensions/Markforged_for_Fusion360-win64.msi"
|
||||
"OctoPrint_for_Fusion360-win64.msi|https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extensions/OctoPrint_for_Fusion360-win64.msi"
|
||||
"Ultimaker_Digital_Factory-win64.msi|https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extensions/Ultimaker_Digital_Factory-win64.msi"
|
||||
)
|
||||
|
||||
for entry in "${extensions[@]}"; do
|
||||
local EXTENSION_FILE_NAME="${entry%%|*}"
|
||||
local EXTENSION_FILE_URL="${entry##*|}"
|
||||
local EXTENSION_FILE_DIRECTORY="$SELECTED_DIRECTORY/cache/extensions/$EXTENSION_FILE_NAME"
|
||||
|
||||
mkdir -p "$(dirname "$EXTENSION_FILE_DIRECTORY")"
|
||||
|
||||
# Search for all existing installers of the extensions
|
||||
if [ -f "$EXTENSION_FILE_DIRECTORY" ]; then
|
||||
echo -e "$(gettext "${GREEN}The $EXTENSION_FILE_NAME has been found.${NOCOLOR}")"
|
||||
else
|
||||
echo -e "$(gettext "${YELLOW}Downloading the latest version of $EXTENSION_FILE_NAME.${NOCOLOR}")"
|
||||
curl -fL "$EXTENSION_FILE_URL" -o "$EXTENSION_FILE_DIRECTORY" || echo -e "$(gettext "${RED}Failed to download $EXTENSION_FILE_NAME${NOCOLOR}")"
|
||||
fi
|
||||
done
|
||||
|
||||
echo -e "$(gettext "${GREEN}All tested extensions for Autodesk Fusion on Linux are downloaded!${NOCOLOR}")"
|
||||
|
||||
# Download the patched Qt6WebEngineCore.dll file
|
||||
QT6_WEBENGINECORE_DLL="$SELECTED_DIRECTORY/cache/DLLs/Qt6WebEngineCore.dll.7z"
|
||||
if [ -f "$QT6_WEBENGINECORE_DLL" ]; then
|
||||
echo -e "$(gettext "${GREEN}The latest patched Qt6WebEngineCore.dll file has been found.${NOCOLOR}")"
|
||||
else
|
||||
echo -e "$(gettext "${YELLOW}Downloading the latest patched Qt6WebEngineCore.dll file.${NOCOLOR}")"
|
||||
curl -L "$QT6_WEBENGINECORE_URL" -o "$QT6_WEBENGINECORE_DLL"
|
||||
echo -e "$(gettext "${GREEN}The latest patched Qt6WebEngineCore.dll file.${NOCOLOR}")"
|
||||
fi
|
||||
|
||||
# Extract the patched the 6WebEngineCore.dll.7z file with overwrite option
|
||||
7za e -y "$SELECTED_DIRECTORY/cache/DLLs/Qt6WebEngineCore.dll.7z" -o"$SELECTED_DIRECTORY/cache/DLLs/"
|
||||
|
||||
# Download the patched siappdll.dll file
|
||||
SIAPPDLL_DLL="$SELECTED_DIRECTORY/cache/DLLs/siappdll.dll"
|
||||
if [ -f "$SIAPPDLL_DLL" ]; then
|
||||
echo -e "$(gettext "${GREEN}The latest patched siappdll.dll file has been found.${NOCOLOR}")"
|
||||
else
|
||||
echo -e "$(gettext "${YELLOW}Downloading the latest patched siappdll.dll file.${NOCOLOR}")"
|
||||
curl -L "$SIAPPDLL_URL" -o "$SIAPPDLL_DLL"
|
||||
echo -e "$(gettext "${GREEN}The latest patched siappdll.dll file.${NOCOLOR}")"
|
||||
fi
|
||||
}
|
||||
|
||||
###############################################################################################################################################################
|
||||
# THE PROGRAM STARTED HERE: #
|
||||
###############################################################################################################################################################
|
||||
|
||||
check_if_wine_exists
|
||||
create_data_structure
|
||||
download_files
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user