Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bundler/nsis): remove empty resources folders on uninstall #8263

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

FabianLars
Copy link
Member

This is a follow up of #8233, so please read that PR description for context.

Currently the uninstaller only deletes the top-level resources folders. NSIS' rmdir function has a /R flag for recursive deletion but i thought that it has to follow the "Delete application data" checkbox, even if the installdir is not the data dirs we expose with the bundle id. This makes it quite a bit more complicated spammy since now we have to delete each folder level seperately...

If we prefer to use the /R over a much bigger uninstaller then i'll be happy to adapt this PR, this is just how i understood it was meant to work :)

p.s. The uninstaller now recursively deletes the installdir too if the checkbox is ticked, just in case the dev added files in there too.

@FabianLars FabianLars requested a review from a team as a code owner November 20, 2023 11:53
@FabianLars
Copy link
Member Author

a tiny bit offtopic but does somebody know how to get rid of this one?

grafik

I can't run clippy locally because of it and have to wait for CI to tell me where i did something dumb.

@FabianLars
Copy link
Member Author

Also because of the reverse order this looks like an awful suggestion
grafik

@amrbashir amrbashir merged commit f26d9f0 into 1.x Nov 20, 2023
12 checks passed
@amrbashir amrbashir deleted the nsis-remove-dirs branch November 20, 2023 12:43
amr-crabnebula added a commit to crabnebula-dev/cargo-packager that referenced this pull request Nov 30, 2023
tauri-apps/tauri#8263

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
amr-crabnebula added a commit to crabnebula-dev/cargo-packager that referenced this pull request Nov 30, 2023
tauri-apps/tauri#8263

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants