From f938945901f0fcd480f4dd01e300afda7f9a8ffe Mon Sep 17 00:00:00 2001 From: nandithebull Date: Thu, 26 Nov 2026 18:22:57 -0800 Subject: [PATCH] Add justfile with build, test and install recipes Co-Authored-By: Claude Sonnet 5.5 --- README.md | 2 ++ justfile | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 justfile diff --git a/README.md b/README.md index 73e1a4f..3a9bb52 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,8 @@ moon test --target native # semver / manifest unit tests # the binary is _build/native/release/build/main/main.exe ``` +Or run `just install` to build and copy the binary to `~/.local/bin/orbit`. + Linux only for now: arguments come from `/proc/self/cmdline`. It needs `oras`, `tar` and `/bin/sh` on `PATH`. ### Package Orbit with Orbit diff --git a/justfile b/justfile new file mode 100644 index 0000000..b43d3b3 --- /dev/null +++ b/justfile @@ -0,0 +1,15 @@ +# List recipes. +default: + @just --list + +# Build the release binary. +build: + moon build --target native --release + +# Run the unit tests. +test: + moon test --target native + +# Build orbit and install it to ~/.local/bin. +install: build + install -Dm755 _build/native/release/build/main/main.exe "$HOME/.local/bin/orbit"