mirror of https://github.com/antonmedv/fx
Move install.sh to fx.wtf
parent
6529535cc4
commit
85d7c31986
@ -1,41 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
curl -sAx "https://bit.ly/fx-download-counter" > /dev/null
|
|
||||||
|
|
||||||
version='24.1.0'
|
|
||||||
os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
|
||||||
machine=$(uname -m)
|
|
||||||
|
|
||||||
case $os in
|
|
||||||
linux | darwin)
|
|
||||||
ext=''
|
|
||||||
;;
|
|
||||||
windows)
|
|
||||||
os=windows
|
|
||||||
ext='.exe'
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Unsupported OS: $os" >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case $machine in
|
|
||||||
x86_64 | amd64)
|
|
||||||
arch=amd64
|
|
||||||
;;
|
|
||||||
arm64 | aarch64)
|
|
||||||
arch=arm64
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Unsupported architecture: $machine" >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
asset="fx_${os}_${arch}${ext}"
|
|
||||||
echo "Installing fx ${version} (${asset})"
|
|
||||||
curl -Lfs "https://github.com/antonmedv/fx/releases/download/${version}/${asset}" -o fx
|
|
||||||
|
|
||||||
chmod +x fx
|
|
||||||
mv fx /usr/local/bin/fx
|
|
Loading…
Reference in New Issue