From binaries
-
Fetch the latest release for your platform from GitHub.
-
Extract the archive into a
.gluonscriptfolder at the root of yourHOMEfolder. -
Add the location of the
.gluonscript\binto yourPATH.
From source
- Fetch the source code from GitHub by cloning the repo with:
git clone https://github.com/vascocosta/gluonscript.git
- Compile the source code (you need the
Rust toolchain):
cd gluonscript
cargo build -r
Notes
As you can see there is no installer, the interpreter is self-contained and can be executed from anywhere. However, it is strongly recommended that you add the location of the binary to your PATH variable so that you can run gluonscript from anywhere on the command line.
Running a script
-
Edit
my_script.gson your preferred IDE. -
Run the script from the command line:
gluonscript my_script.gs