NSIS Installer & GitHub Actions building #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes NSIS script and shell script responsible for generating file list, with some icons I made bundled in ArcCreateIcons.dll for file associations.
I've only tested this action locally with
act
, it will need manual test on GitHub.There are several iteration on the script, old one had copy recursively and delete recursively command.
Later found out recursive deleting is quite dangerous and I was looking for solutions.
NSIS isn't able to track installed files nor remove only installed files, I had to write some shell script to generate list of files.
Beside listing files required to install, this script also handles optional user data install/deletions,
NSIS/userfiles
is a list of files where the file shouldn't be replaced or removed unlessRemove User Data
is checked in the installer.NSIS/excludes
is another file list for ignoring unnecessary files, should be self-explanatory.These two files matches exactly from start to end, remove trailing space if you want to edit the list.