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 to download the correct binary for Apple silicon Macs #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alpinevm
Copy link

Previously, using the (node) crate with the from_downloaded() trait would fail on apple silicon with bad CPU type in executable

Part of the update includes some code-signing, this is necessary for unsigned binaries (like bitcoind) to run on Arm Macs:
bitcoin/bitcoin#26694 (comment)

@tcharding
Copy link
Member

Mad! Thanks for the contribution mate.

utACK f168d5a

I don't have an OSX machine so untested.

CI is going to fail with formatting errors. You can use just fmt to fix them.

@alpinevm
Copy link
Author

alpinevm commented Feb 20, 2025

Glad to help! I'm going to pause on merging for now, I discovered the codesign logic fails on macOS Sequoia due to invalid permissions. Will commit to this PR with a more robust solution once I find something.

@alpinevm
Copy link
Author

Couldn't reproduce the codesign failure after running on a few machines. Probably fine for now given this is how it's done in bitcoin core. I've also run just fmt against the branch.

@tcharding
Copy link
Member

Can you squash the third patch into the first one and force push please.

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