build(just): Add install
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
parent
d2a4b1a1d8
commit
53981cae1d
1 changed files with 5 additions and 0 deletions
5
justfile
5
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}}
|
||||
|
|
Loading…
Reference in a new issue