This should ensure that each Cura version, either release, prerelease or development
Will be installed completely separate from earlier versions
Contributes to CURA-9459
This should ensure that the default directory will always falls back to
`"$PROGRAMFILES64\${APP_NAME}"` where `APP_NAME` is:
`{{ app_name }} {{ version_major }}.{{ version_minor }}.{{ version_patch }}.{{ version_build }}`
Contributes to CURA-9459
I believe this should ensure that specific
folders and location will then have a unique
path for this app in the registry, which
should make the install path version specific
Contributes to CURA-9365
Users other than the original installer, can't easily uninstall, even if they have the rights. This should be possible. Users without the rights can still try to start the program, but would then need permission and get kicked out. 'HKCU' is a shorthand referring _only_ to the current user. 'HKCR' is a shorthand that refers _both_ to the current user _and_ the local machine. Most (except one) of the registry keys in the old setup (with CPack) where 'installed' to the latter, only one, which doesn't even seem to exist anymore in the new setup, refrered to the former. In short: This commit should restore the ability to uninstall Cura from any sufficiently elevated account to do such action, as was done by the 'old' buildsystem.
should fixUltimaker/Cura#12582
The script got moved. It looks in the directory relative to __file__ for the icon and other files. Those other files also got moved, but the icons were placed in a centrally stored location. So the path needs to be updated to the new relative path.
Contributes to issue CURA-9409.
AppRun is the file that gets packaged inside of the AppImage that bootstraps the application.
The AppImage can only have one icon, so we use the largest sample we have available.
The appdata.xml contains some metadata.
Contributes to issue CURA-9409.
Previously you had to call the script from the dist path specifically, using the cwd as a parameter. Now you can provide a different path, allowing you to call this script from any location.
Also the version number used to be hard-coded. Now that can be provided by the caller.
Contributes to issue CURA-9409.
We shouldn't unpack the list. The first argument is allowed to be a list. If we unpack it, it'll override other arguments to the call function that would be the wrong type then (buffer size).
Contributes to issue CURA-9409.