tsloughter / beamup

Install and control active BEAM languages and components
https://tsloughter.github.io/beamup/
Apache License 2.0
40 stars 2 forks source link

Unable to install from GitHub on MacOS #13

Closed DanielleMaywood closed 1 month ago

DanielleMaywood commented 1 month ago

When running beamup install gleam latest on macOS I get the following error:

Error: no gleam asset found to support arch:aarch64 os:macos

Location:
    src/github.rs:32:33

It appears this is because of the following code: https://github.com/tsloughter/beamup/blob/109d9f3fa96fe9bf0675af1dbf37c92ecfc7c2dd/src/github.rs#L25-L35

apple is not a valid value for std::env::consts::OS, instead it looks to be macos. https://doc.rust-lang.org/std/env/consts/constant.OS.html

DanielleMaywood commented 1 month ago

It also appears aarch is not a valid value for std::env::consts::ARCH, but instead aarch64 https://doc.rust-lang.org/std/env/consts/constant.ARCH.html