From 53981cae1d4212ca3a244604e7dacd5bf016b67f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20H=C3=A5rek=20Andreassen?= Date: Wed, 16 Oct 2024 22:59:56 +0200 Subject: [PATCH] build(just): Add install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim HĂ„rek Andreassen --- justfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/justfile b/justfile index d8198ca..ba2866d 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,6 @@ builddir := "./build" +prefix := env_var_or_default("PREFIX", "/usr/local") +bindir := prefix + "/bin" default: just --list @@ -31,3 +33,6 @@ build-release tag version os arch: tar czf yr-{{version}}-{{os}}-{{arch}}.tar.gz yr-{{version}} hut git artifact upload --rev {{tag}} yr-{{version}}-{{os}}-{{arch}}.tar.gz + +install: build + install -m 0755 {{builddir}}/yr {{bindir}}