Add an install script for the prebuilt joltc binary
install (root) downloads the self-contained joltc release asset for the host platform, verifies its sha256, and drops the binary in /usr/local/bin (--dir / --version override). Resolves the latest release via the GitHub API, clears the macOS quarantine flag, and backs up an existing joltc. Modeled on babashka's installer. README gets a one-line curl|bash install.
This commit is contained in:
parent
b5998f4b4a
commit
b460875772
2 changed files with 170 additions and 0 deletions
13
README.md
13
README.md
|
|
@ -7,6 +7,19 @@ Jolt reads Clojure source, analyzes it to a host-neutral IR, emits Scheme, and
|
|||
runs it on Chez. The compiler is self-hosted: it is written in Clojure
|
||||
(`jolt-core/`) and compiles itself. It ships a Clojure-compatible standard library.
|
||||
|
||||
## Install
|
||||
|
||||
Grab the self-contained `joltc` binary (Linux/macOS) — it bundles the runtime,
|
||||
compiler, and standard library, so there is nothing else to install:
|
||||
|
||||
```bash
|
||||
curl -sL https://raw.githubusercontent.com/jolt-lang/jolt/main/install | bash
|
||||
```
|
||||
|
||||
It installs to `/usr/local/bin` by default; `--dir <dir>` and `--version <v>`
|
||||
override that. Then `joltc -e '(+ 1 2)'`. To run from source instead (needs Chez),
|
||||
see [Build](#build).
|
||||
|
||||
## Requirements
|
||||
|
||||
Only [Chez Scheme](https://cisco.github.io/ChezScheme/) (the gate invokes it as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue