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 permissions bug with self-update on windows #33

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

Dekkonot
Copy link
Member

For reasons known only to Microsoft, binaries have a moment when they're renamed to something other than a .exe while they're running. This results in a permissions error every time on Windows when running rokit self-update.

The fix to this is simple and it's just to set the extension of the temporary file to .exe on Windows.

Copy link
Collaborator

@filiptibell filiptibell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the investigation and fix! 👍

@Dekkonot Dekkonot merged commit f9d48c7 into main Jul 11, 2024
10 checks passed
@Dekkonot Dekkonot deleted the windows-self-update-exe branch July 11, 2024 00:54
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