build(just): Add install

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-10-16 22:59:56 +02:00
parent d2a4b1a1d8
commit 53981cae1d
No known key found for this signature in database
GPG key ID: E59C7734F0E10EB5

View file

@ -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}}