Skip to content

fix(updater): clear macOS quarantine flag during self-update - #4

Merged
winball501 merged 3 commits into
mainfrom
fix/macos-quarantine-loop
Oct 25, 2026
Merged

winball501 merged 3 commits into
mainfrom
fix/macos-quarantine-loop

Conversation

@iemirakman

Copy link
Copy Markdown
Member
  • Add remove_quarantine helper function in selfupdate.rs for macOS targets
  • Strip com.apple.quarantine extended attribute right after ditto extraction and before application relaunch
  • Handle xattr execution errors gracefully to prevent update flow blockage
  • Fix Gatekeeper blocking updated binaries and causing infinite auto-update loops

@iemirakman
iemirakman requested review from winball501 and a balanced review from Copilot October 25, 2026 00:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@winball501 winball501 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Clearing the macOS quarantine flag fixes the update loop.

The cargo fmt check failed on Ubuntu, so I made two small formatting fixes in selfupdate.rs: removed trailing whitespace on a blank line and fixed the indentation of .to_path_buf();. No behavior change; all checks pass now. Approved.

@winball501
winball501 merged commit 245351e into main Oct 25, 2026
5 checks passed
@iemirakman
iemirakman deleted the fix/macos-quarantine-loop branch October 25, 2026 13:34
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.

3 participants