Last active
December 24, 2023 05:36
-
-
Save Le0xFF/6d2476c64280e4308664ddf9d12c566f to your computer and use it in GitHub Desktop.
Fusion360 working in Void Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Latest update: 2021/09/06 | |
# Wine version: 6.16 | |
# | |
# How to make Fusion360 work under Void Linux with latest Wine available directly from xbps. | |
# | |
# Resources heavily taken from: | |
# https://github.com/cryinkfly/Fusion-360---Linux-Wine-Version- | |
# ======================== | |
# OpenGL as graphic driver | |
# ======================== | |
# Install all the required dependencies | |
sudo xbps-install -Sy wine wine-mono wine-gecko winetricks p7zip curl cabextract samba ppp dialog | |
# Configure a dedicated wine prefix inside $HOME/.Fusion360 hidden folder with appropriates winetricks verbs (-q -> quiet install) | |
WINEPREFIX="/home/$USER/.Fusion360" winetricks -q msxml4 msxml6 vcrun2017 corefonts fontsmooth=rgb win8 | |
# Download Fusion360 installer, rename it to Fusion360.exe and install it inside the dedicated wine prefix | |
wget https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe -O $HOME/Downloads/Fusion360.exe | |
WINEPREFIX="/home/$USER/.Fusion360" wine $HOME/Downloads/Fusion360.exe -p deploy -g -f log.txt --quiet | |
# Set OpenGL as graphic driver in Fusion360 before first launch | |
mkdir -p "$HOME/.Fusion360/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform/Options/" | |
cat <<'EOF' >> "$HOME/.Fusion360/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform/Options/NMachineSpecificOptions.xml" | |
<?xml version="1.0" encoding="UTF-16" standalone="no" ?> | |
<OptionGroups> | |
<BootstrapOptionsGroup SchemaVersion="2" ToolTip="Special preferences that require the application to be restarted after a change." UserName="Bootstrap"> | |
<driverOptionId ToolTip="The driver used to display the graphics" UserName="Graphics driver" Value="VirtualDeviceGLCore"/></BootstrapOptionsGroup> | |
</OptionGroups> | |
EOF | |
# Finally run Fusion360 | |
env WINEPREFIX="/home/$USER/.Fusion360" wine /home/$USER/.Fusion360/drive_c/Program\ Files/Autodesk/webdeploy/production/6a0c9611291d45bb9226980209917c3d/FusionLauncher.exe | |
# =========================== | |
# DirectX 9 as graphic driver | |
# =========================== | |
# Install all the required dependencies | |
sudo xbps-install -Sy wine wine-mono wine-gecko winetricks p7zip curl cabextract samba ppp dialog | |
# Configure a dedicated wine prefix inside $HOME/.Fusion360 hidden folder with appropriates winetricks verbs (-q -> quiet install) | |
WINEPREFIX="/home/$USER/.Fusion360" winetricks -q msxml4 msxml6 vcrun2017 corefonts fontsmooth=rgb dxvk d3d10core=disabled d3d11=native d3d9=builtin dxgi=native win8 | |
# Download Fusion360 installer, rename it to Fusion360.exe and install it inside the dedicated wine prefix | |
wget https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe -O $HOME/Downloads/Fusion360.exe | |
WINEPREFIX="/home/$USER/.Fusion360" wine $HOME/Downloads/Fusion360.exe -p deploy -g -f log.txt --quiet | |
# Set DirectX 9 as graphic driver in Fusion360 before first launch | |
mkdir -p "$HOME/.Fusion360/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform/Options/" | |
cat <<'EOF' >> "$HOME/.Fusion360/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform/Options/NMachineSpecificOptions.xml" | |
<?xml version="1.0" encoding="UTF-16" standalone="no" ?> | |
<OptionGroups> | |
<BootstrapOptionsGroup SchemaVersion="2" ToolTip="Special preferences that require the application to be restarted after a change." UserName="Bootstrap"> | |
<driverOptionId ToolTip="The driver used to display the graphics" UserName="Graphics driver" Value="VirtualDeviceDx9"/></BootstrapOptionsGroup> | |
</OptionGroups> | |
EOF | |
# Finally run Fusion360 | |
env WINEPREFIX="/home/$USER/.Fusion360" DXVK_LOG_PATH=none wine /home/$USER/.Fusion360/drive_c/Program\ Files/Autodesk/webdeploy/production/6a0c9611291d45bb9226980209917c3d/FusionLauncher.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Le0xFF Great Job 👏 😊 I will add this to my script later. 🕛