Switch to manually downloading the binary #201
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #194
In theory we could use
arch -x86_64 curl
on Mac and keep using cargo-dist, but due to axodotdev/cargo-dist#1720 this does not work. I'm not really sure axodotdev/cargo-dist#1720 will get solved, as when I think about this more we are kind of abusing cargo-dist here. It's purpose is really to get you set up to run the tool (so bypassing Rosetta does seem to make sense on their end), all we were using it for is a way to magically download the right one for this platform, but that isn't too hard to set up ourself.This dry run shows this seems to be working right
https://github.com/posit-dev/air/actions/runs/12935503617
I downloaded the x86 mac vsix artifact it created and
file
shows that the air binary bundled in there is indeed the right architecture now. The output from the run on Windows shows that theair.exe
still makes it into thebundled/bin
directory correctly.