mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-10-26 00:46:09 +02:00
Implement timeouts for Autodesk Fusion installation runs
Added timeout for the first and second runs of the Autodesk Fusion installer to handle potential delays.
This commit is contained in:
@@ -105,11 +105,20 @@ xdg-mime default adskidmgr-opener.desktop x-scheme-handler/adskidmgr
|
||||
|
||||
# ----------------------------------------------------------------------------------------------------------------- #
|
||||
|
||||
# Installation of Autodesk Fusion
|
||||
# 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"
|
||||
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
|
||||
|
||||
# --- 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
|
||||
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
|
||||
|
||||
# ----------------------------------------------------------------------------------------------------------------- #
|
||||
|
||||
|
||||
Reference in New Issue
Block a user