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

feat: adds support for big sur in curl installer #297

Merged
merged 2 commits into from
Feb 22, 2021

Conversation

EverlastingBugstopper
Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper commented Feb 19, 2021

fixes #295 by providing an x86_64 binary for the Big Sur arm64 machines. This works because those machines can run x86_64 code in emulation mode which is really cool and I'm much less upset with Apple now that I understand what's actually going on.

Shoutout to @benjamn and @JakeDawkins for helping me to confirm that this works on both M1 machines and the older intel machines.

we will still need to figure out signing our MacOS binaries in order for this to work but we shouldn't need any additional CI runners or anything like that.

this PR also does not include any changes to our npm installer, which i'm guessing we will need. similar change to this one, feature detect an M1 macbook and make it not complain about not supporting arm64 by directing them to the x86_64 binary.

@JakeDawkins JakeDawkins added feature 🎉 new commands, flags, functionality, and improved error messages and removed changelog - feature labels Feb 22, 2021
@@ -86,6 +86,13 @@ get_architecture() {
fi
fi

if [ "$_ostype" = Darwin -a "$_cputype" = arm64 ]; then
# Darwin `uname -s` doesn't seem to lie on Big Sur
Copy link
Member

Choose a reason for hiding this comment

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

ah, that's interesting!

Copy link
Member

@lrlna lrlna left a comment

Choose a reason for hiding this comment

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

This looks good! Thank you so much for taking care of this \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎉 new commands, flags, functionality, and improved error messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build binary for arm64 architectures
3 participants