-
Notifications
You must be signed in to change notification settings - Fork 13
/
com.autodesk.fusion360.yaml
66 lines (66 loc) · 3.16 KB
/
com.autodesk.fusion360.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# WARNING: WIP, it doesn't work yet
# TODO: add mimetypes: *. f3d and other from https://knowledge.autodesk.com/support/fusion-360/troubleshooting/caas/sfdcarticles/sfdcarticles/File-formats-supported-by-Fusion-360.html
# INFO: skip login window with `$ fusion360 --autologin user,password`
app-id: com.autodesk.fusion360
runtime: org.winehq.Platform
runtime-version: master
sdk: org.winehq.Sdk
command: fusion360
finish-args:
- --filesystem=home
- --share=network
# TODO: evalute dbus access
- --socket=session-bus
- --socket=system-bus
# broken in wayland, maybe due to the cross-process rendering issue mentioned @ https://www.winehq.org/pipermail/wine-devel/2021-December/203035.html
# a possible workaround is to set `QTWEBENGINE_CHROMIUM_FLAGS` as `--disable-gpu` and/or `--single-process`
# - --socket=fallback-x11
modules:
- name: fusion360
buildsystem: simple
build-commands:
- install -Dm755 apply_extra fusion360 install_fusion360 -t ${FLATPAK_DEST}/bin/
- install -Dm644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications/
- |
for s in 32 48 64 128 256; do
install -Dm644 fusion360_${s}.png ${FLATPAK_DEST}/share/icons/hicolor/${s}x${s}/apps/${FLATPAK_ID}.png
done
- install -Dm644 dll_overrides.reg -t ${FLATPAK_DEST}/share/wine/
sources:
- type: extra-data
filename: fusion360-installer.exe
url: https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe
sha256: c7836c88bf6fd1cc38a21795ce984e5c8a48079fb9807aa8eb6400af32d1c023
size: 1046066840
- type: script
dest-filename: apply_extra
commands:
- echo 'doing nothing'
- type: script
dest-filename: install_fusion360
commands:
- wineboot -i && wineserver -w
- winetricks -q corefonts cjkfonts msxml4 msxml6 vcrun2017 fontsmooth=rgb win8 && wineserver -w
- setup_dxvk.sh install --without-dxgi --symlink && wineserver -w
- regedit /app/share/wine/dll_overrides.reg && wineserver -w
# References:
# - How to deploy Fusion 360 @ https://knowledge.autodesk.com/support/fusion-360/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-deploy-Fusion-360.html
# - Lab Installation Instructions @ http://www.appstreaming.autodesk.com/static/content/Fusion%20360%20Lab%20Installation.pdf
# - Advanced Lab Installation Instructions @ https://damassets.autodesk.net/content/dam/autodesk/docs/pdfs/Advanced_Fusion360_Lab_Installation_Instructions_en-GB.pdf
- wine /app/extra/fusion360-installer.exe --process deploy --globalinstall --logfile c:\\users\\$USER\\temp\\fusion360-installer_$(date +'%FT%T').log --quiet && wineserver -w
- type: file
path: fusion360
- type: file
path: dll_overrides.reg
- type: file
path: com.autodesk.fusion360.desktop
- type: file
path: icons/fusion360_32.png
- type: file
path: icons/fusion360_48.png
- type: file
path: icons/fusion360_64.png
- type: file
path: icons/fusion360_128.png
- type: file
path: icons/fusion360_256.png