Skip to content

fix(bootstrap): re-seal installer after copying to ~/.hermes on macOS - #38446

Closed
OmarB97 wants to merge 1 commit into
NousResearch:mainfrom
OmarB97:fix/macos-bootstrap-reseal
Closed

fix(bootstrap): re-seal installer after copying to ~/.hermes on macOS#38446
OmarB97 wants to merge 1 commit into
NousResearch:mainfrom
OmarB97:fix/macos-bootstrap-reseal

Conversation

@OmarB97

@OmarB97 OmarB97 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Root-cause fix for macOS in-app updater dying with exit 137. After the bootstrap installer copies itself out of the signed .app bundle, macOS amfid rejects the extracted binary because its ad-hoc signature is bound to the bundle path. This patch re-signs the copied installer immediately, allowing the updater to actually execute.

@OmarB97

OmarB97 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing: upstream main now covers this — apps/bootstrap-installer/src-tauri/src/paths.rs calls repair_macos_installer_helper() right after the self-copy (xattr -cr + codesign --verify + conditional re-sign), which is strictly stronger than the unconditional re-sign here, and std::fs::copy already preserves the executable mode bits the chmod added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants