mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-10-26 07:56:10 +01:00
Compare commits
7 Commits
2ad75e381c
...
c2bf6aaf08
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2bf6aaf08 | ||
|
|
3b5ee8c13c | ||
|
|
615a53ebda | ||
|
|
842c36ca25 | ||
|
|
554c3fc137 | ||
|
|
8d09aebbb8 | ||
|
|
9e44363b07 |
@@ -77,6 +77,9 @@ flatpak run org.winehq.Wine --version #Check version of wine
|
||||
# since Wine no longer has permissions to reach outside of that sandboxed environment.
|
||||
flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" --command="winetricks" org.winehq.Wine -q sandbox
|
||||
|
||||
# Install wine gecko, ...
|
||||
yes | flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine wineboot --update
|
||||
|
||||
# Install required libraries
|
||||
flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" --command="winetricks" org.winehq.Wine -q sandbox atmlib gdiplus arial corefonts cjkfonts dotnet452 msxml4 msxml6 vcrun2017 fontsmooth=rgb winhttp win10
|
||||
|
||||
@@ -90,6 +93,16 @@ flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/f
|
||||
flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" --command="winetricks" org.winehq.Wine -q dxvk
|
||||
|
||||
# Apply DLL overrides via registry for DirectX, ...
|
||||
|
||||
# OLD:
|
||||
#[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
|
||||
#"*d3d10core"=""
|
||||
#"*d3d11"="native"
|
||||
#"*d3d9"="builtin"
|
||||
#"*dxgi"="native"
|
||||
|
||||
# NEW:
|
||||
|
||||
flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKCU\\Software\\Wine\\DllOverrides" /v "d3d10core" /t REG_SZ /d "native" /f
|
||||
flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKCU\\Software\\Wine\\DllOverrides" /v "d3d11" /t REG_SZ /d "native" /f
|
||||
flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKCU\\Software\\Wine\\DllOverrides" /v "d3d9" /t REG_SZ /d "builtin" /f
|
||||
@@ -115,6 +128,23 @@ mkdir -p "$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/use
|
||||
|
||||
###############################################################################################################################################################
|
||||
|
||||
# Download the Autodesk Fusion Installer
|
||||
curl -L "$AUTODESK_FUSION_INSTALLER_URL" -o "$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/users/$USER/Downloads/Fusion360ClientInstaller.exe"
|
||||
|
||||
# --- First run of the installer: allow up to 10 minutes ---
|
||||
timeout 600 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine $HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/users/$USER/Downloads/Fusion360ClientInstaller.exe --quiet || echo "First run timed out."
|
||||
|
||||
# Kill Wine to ensure clean state
|
||||
flatpak kill org.winehq.Wine
|
||||
|
||||
# --- Second run of the installer: allow up to 1 minute ---
|
||||
timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine $HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/users/$USER/Downloads/Fusion360ClientInstaller.exe --quiet || echo "Second run timed out."
|
||||
|
||||
# Kill Wine to ensure clean state
|
||||
flatpak kill org.winehq.Wine
|
||||
|
||||
###############################################################################################################################################################
|
||||
|
||||
# Create mimetype link to handle web login call backs to the Identity Manager
|
||||
cat > $HOME/.local/share/applications/adskidmgr-opener.desktop << EOL
|
||||
[Desktop Entry]
|
||||
@@ -133,23 +163,6 @@ xdg-mime default adskidmgr-opener.desktop x-scheme-handler/adskidmgr
|
||||
|
||||
###############################################################################################################################################################
|
||||
|
||||
# Download the Autodesk Fusion Installer
|
||||
curl -L "$AUTODESK_FUSION_INSTALLER_URL" -o "$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/users/$USER/Downloads/Fusion360ClientInstaller.exe"
|
||||
|
||||
# --- First run of the installer: allow up to 10 minutes ---
|
||||
timeout 600 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine $HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/users/$USER/Downloads/Fusion360ClientInstaller.exe --quiet || echo "First run timed out."
|
||||
|
||||
# Kill Wine to ensure clean state
|
||||
flatpak kill org.winehq.Wine
|
||||
|
||||
# --- Second run of the installer: allow up to 1 minute ---
|
||||
timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine $HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/users/$USER/Downloads/Fusion360ClientInstaller.exe --quiet || echo "Second run timed out."
|
||||
|
||||
# Kill Wine to ensure clean state
|
||||
flatpak kill org.winehq.Wine
|
||||
|
||||
###############################################################################################################################################################
|
||||
|
||||
# Find the Qt6WebEngineCore.dll file in the Autodesk Fusion directory
|
||||
QT6_WEBENGINECORE=$(find "$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" -name 'Qt6WebEngineCore.dll' -printf "%T+ %p\n" | sort -r | head -n 1 | sed -r 's/^[^ ]+ //')
|
||||
QT6_WEBENGINECORE_DIR=$(dirname "$QT6_WEBENGINECORE")
|
||||
@@ -237,12 +250,12 @@ curl -L "$FIREFOX_ESR_INSTALLER_URL" -o "$HOME/.var/app/org.winehq.Wine/data/win
|
||||
timeout 120 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine $HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/users/$USER/Downloads/FirefoxESRInstaller.exe /silent /install
|
||||
|
||||
# Change Registry: Set Firefox ESR as default browser in Wine Flatpak
|
||||
timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKCU\\Software\\Clients\\StartMenuInternet" /ve /d "Firefox" /f
|
||||
timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKCU\\Software\\Clients\\StartMenuInternet\\Firefox\\shell\\open\\command" /ve /d "\"$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/Program Files/Mozilla Firefox/firefox.exe\" \"%1\"" /f
|
||||
timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKLM\\Software\\Clients\\StartMenuInternet" /ve /d "Firefox" /f
|
||||
timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKLM\\Software\\Clients\\StartMenuInternet\\Firefox\\shell\\open\\command" /ve /d "\"$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/Program Files/Mozilla Firefox/firefox.exe\" \"%1\"" /f
|
||||
|
||||
# Optional: Check if Firefox is set correctly
|
||||
# Execute the query with a timeout and save the output
|
||||
OUTPUT=$(timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg query "HKCU\\Software\\Clients\\StartMenuInternet")
|
||||
OUTPUT=$(timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg query "HKLM\\Software\\Clients\\StartMenuInternet")
|
||||
|
||||
# Display the output in a controlled manner
|
||||
if [ $? -eq 124 ]; then
|
||||
@@ -291,4 +304,5 @@ FUSION_EXE="$NEW_FOLDER/FusionLauncher.exe"
|
||||
flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "https://signin.autodesk.com/idmgr/login"
|
||||
|
||||
# Workaround after the login in the web browser (installed on your Host system or as flatpak app) your must copy the callback code an replace the XXXXXXXXXX with it and run this command in a seperate terminal window
|
||||
# flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine xdg-open "https://signin.autodesk.com/idmgr/callback#code=XXXXXXXXXX"
|
||||
#flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine "C:\\Program Files\\Autodesk\\webdeploy\\production\\7627f627889be835182cfc345110c3c9f5bc9cc3\\Autodesk Identity Manager\\AdskIdentityManager.exe" "https://signin.autodesk.com/idmgr/callback#code=XXXXXXXXXX"
|
||||
# Repeat the the command ...
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
# Author URI: https://cryinkfly.com #
|
||||
# License: MIT #
|
||||
# Copyright (c) 2020-2025 #
|
||||
# Time/Date: 10:12/22.06.2025 #
|
||||
# Version: 2.0.3-Alpha #
|
||||
# Time/Date: 15:15/31.08.2025 #
|
||||
# Version: 2.0.4-Alpha #
|
||||
####################################################################################################
|
||||
|
||||
###############################################################################################################################################################
|
||||
@@ -747,8 +747,6 @@ function download_files() {
|
||||
download_extensions_files
|
||||
# Download the patched Qt6WebEngineCore.dll file
|
||||
curl -L "$QT6_WEBENGINECORE_URL" -o "$SELECTED_DIRECTORY/downloads/Qt6WebEngineCore.dll.7z"
|
||||
# Extract the patched the 6WebEngineCore.dll.7z file with overwrite option
|
||||
7za e -y "$SELECTED_DIRECTORY/downloads/Qt6WebEngineCore.dll.7z" -o"$SELECTED_DIRECTORY/downloads/"
|
||||
# Download the patched siappdll.dll file
|
||||
curl -L "$SIAPPDLL_URL" -o "$SELECTED_DIRECTORY/downloads/siappdll.dll"
|
||||
}
|
||||
@@ -1189,8 +1187,6 @@ function wine_autodesk_fusion_install() {
|
||||
cd "$SELECTED_DIRECTORY/wineprefixes/default" || return
|
||||
WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" sh "$SELECTED_DIRECTORY/bin/winetricks" -q sandbox
|
||||
sleep 5s
|
||||
WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" sh "$SELECTED_DIRECTORY/bin/winetricks" -q sandbox
|
||||
sleep 5s
|
||||
# We must install some packages!
|
||||
WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" sh "$SELECTED_DIRECTORY/bin/winetricks" -q atmlib gdiplus arial corefonts cjkfonts dotnet452 msxml4 msxml6 vcrun2017 fontsmooth=rgb winhttp win10
|
||||
# We must install cjkfonts again then sometimes it doesn't work in the first time!
|
||||
@@ -1210,6 +1206,10 @@ function wine_autodesk_fusion_install() {
|
||||
# Fixed the problem with the bcp47langs issue and now the login works again!
|
||||
WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" wine reg add "HKCU\Software\Wine\DllOverrides" /v "bcp47langs" /t REG_SZ /d "" /f
|
||||
sleep 5s
|
||||
# Install 7-Zip inside the Wine prefix via winetricks.
|
||||
# This method does NOT require 7-Zip on the host system and is more stable/reliable than previous approaches.
|
||||
WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" sh "$SELECTED_DIRECTORY/bin/winetricks" -q 7zip
|
||||
WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" wine "$SELECTED_DIRECTORY/wineprefixes/default/drive_c/Program Files/7-Zip/7z.exe" x "C:\\users\\$USER\\Downloads\\Qt6WebEngineCore.dll.7z" -o"C:\\users\\$USER\\Downloads\\"
|
||||
# Disabled by Default - Configure the correct virtual desktop resolution
|
||||
# WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" sh "$SELECTED_DIRECTORY/bin/winetricks" -q vd="$MONITOR_RESOLUTION"
|
||||
# Download and install WebView2 to handle Login attempts, required even though we redirect to your default browser
|
||||
|
||||
Reference in New Issue
Block a user