mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2025-01-05 05:07:06 +03:00
add a script to transparently download Buck
This commit is contained in:
parent
6ff575b1ba
commit
cf1ed11277
13
script/buck2
Executable file
13
script/buck2
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! test -d buck-out; then
|
||||
mkdir buck-out
|
||||
fi
|
||||
|
||||
if ! test -f buck-out/buck2; then
|
||||
# TODO: adjust download location for different os/arch combinations
|
||||
curl -L https://github.com/facebook/buck2/releases/download/latest/buck2-aarch64-apple-darwin.zst | zstd -d > buck-out/buck2
|
||||
chmod +x buck-out/buck2
|
||||
fi
|
||||
|
||||
exec buck-out/buck2 $@
|
Loading…
Reference in New Issue
Block a user