loda-lang / loda-cpp

Runtime and miner for the LODA language written in C++
https://loda-lang.org/
Apache License 2.0
21 stars 1 forks source link

Install script #214

Closed ckrause closed 1 year ago

ckrause commented 1 year ago

Make installation as easy as for homebrew: https://brew.sh/

=> create an installation script that automatically downloads the right binary and installs LODA.

ckrause commented 1 year ago

To find out whether the script is running on Linux or macOS, we could check $OSTYPE. Example values: linux-gnu, darwin22.1.0.

On Linux, the architecture can be determined using lscpu | grep "Architecture" | awk '{print $2}'. Example values: x86_64, i686, aarch64.

Based on this info, we can determine which loda binary to use.