From 85d7c3198623eb6156a85f253d75958aa62cc607 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Fri, 15 Sep 2023 16:55:21 +0200 Subject: [PATCH] Move install.sh to fx.wtf --- RELEASE.md | 3 ++- install.sh | 41 ----------------------------------------- 2 files changed, 2 insertions(+), 42 deletions(-) delete mode 100755 install.sh diff --git a/RELEASE.md b/RELEASE.md index e42d1c2..49d3ab4 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -8,4 +8,5 @@ ```sh npx zx scripts/build.js ``` -6. Bump version [install.sh](install.sh) and upload it to [fx.wtf](https://fx.wtf). +6. Bump version in [install.sh](https://github.com/antonmedv/fx.wtf/blob/master/public/install.sh) and upload it + to [fx.wtf](https://fx.wtf). diff --git a/install.sh b/install.sh deleted file mode 100755 index 12d9189..0000000 --- a/install.sh +++ /dev/null @@ -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