mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-09-17 10:17:09 +03:00
download the right Linux binary
This commit is contained in:
parent
4383d50828
commit
5c488ef4b6
20
script/buck2
20
script/buck2
@ -1,12 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd $(git rev-parse --show-toplevel)
|
||||
|
||||
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
|
||||
case "$(uname -s)" in
|
||||
Darwin)
|
||||
# TODO: adjust for processor type
|
||||
curl -L https://github.com/facebook/buck2/releases/download/latest/buck2-aarch64-apple-darwin.zst | zstd -d > buck-out/buck2
|
||||
;;
|
||||
|
||||
Linux)
|
||||
curl -L https://github.com/facebook/buck2/releases/download/latest/buck2-x86_64-unknown-linux-gnu.zst | zstd -d > buck-out/buck2
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "I don't know how to get a download for $(uname -s)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
chmod +x buck-out/buck2
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user