abs-lang / abs

Home of the ABS programming language: the joy of shell scripting.
https://www.abs-lang.org
MIT License
510 stars 35 forks source link

Installation script fails on Apple Silicon #460

Closed jamesgecko closed 2 years ago

jamesgecko commented 2 years ago

The output of uname -m on newer Apple M1 laptops is arm64. But the install.sh script builds the following URL, which does not exist:

https://github.com/abs-lang/abs/releases/latest/download/abs-darwin-386

Intel builds will work on M1 if Rosetta 2 is installed, so a quick fix would be to download the abs-darwin-amd64 binary instead. A long term solution is probably building a abs-darwin-arm64 binary.

odino commented 2 years ago

@jamesgecko could you try the following installer and let me know if it works?

https://gist.github.com/odino/4795c7707964a25af2cb566493edd7ae

odino commented 2 years ago

this should be fixed -- feel free to re-open if needed

https://github.com/abs-lang/abs/blob/master/docs/src/.vuepress/dist/installer.sh