cryinkfly / Autodesk-Fusion-360-for-Linux

This is a project, where I give you a way to use Autodesk Fusion 360 on Linux!
https://github.com/cryinkfly/Fusion-360---Linux-Wine-Version-/wiki
MIT License
1.94k stars 121 forks source link

Fix Refresh action : empty value for SP_SERVER_21 and missing parsing for path #349

Closed GuillaumeSmaha closed 11 months ago

GuillaumeSmaha commented 1 year ago

Hi,

📝 Description

When calling the action "Refresh", after the selection of the WinePrefix, it is missing the parsing of the result. Currently, the path is equal to "DirName + Driver + Path" value which fails the scripts with:

rmdir: failed to remove 'defaultDXVK/home/user/.fusion360/wineprefixes/default/drive_c/users/user/Downloads/Fusion360installer.exe': No such file or directory
cp: cannot create regular file 'defaultDXVK/home/user/.fusion360/wineprefixes/default/drive_c/users/user/Downloads': No such file or directory

Also, once this parser part is added, the script try to download again Fusion360Installer.exe but the URL provided doesn't exist: $SP_SERVER_21 is not defined anywhere. So I added a global variable SP_FUSION360_INSTALLER_URL to define for Installation & Refresh.

📑 Context

It is fixing 2 issues with refresh action

✅ Checklist:

📸 Screenshots (if available)

🔗 Link to story (if available)

GuillaumeSmaha commented 1 year ago

I just noticed that calling ./box-run.sh is deleting and re-downloading Fusion360Installer.exe. It can be annoying to download 1.6GB for each start

I didn't pay attention to the box asking if I want to update Fusion360 ... So everything is good.