From a89641aee4279a30d78bd884dbc5824410a6ca89 Mon Sep 17 00:00:00 2001 From: Greg Huels Date: Fri, 19 Apr 2024 11:05:25 -0500 Subject: [PATCH] Instructions & script changes for installing downloaded binaries --- README.md | 12 ++++++++++++ scripts/package.sh | 5 +---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e03df51..7c4045b 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,18 @@ fu and increase productivity. brew install greghuels/tap/git-fury ``` +#### Manual Download + +1. Download the latest binary for your computer's architecture + [latest release](https://github.com/greghuels/git-fury/releases/latest) +1. Ensure it has executable permissions. Example: + `chmod +x ~/Downloads/git-fury-aarch64-unknown-linux-gnu` +1. Rename to "git-fury" and make available to a location on your PATH. Example: + `mv ~/Downloads/git-fury-aarch64-unknown-linux-gnu /usr/local/bin/git-fury` +1. Build source: `deno compile --allow-run ./mod.ts` (using + [deno](https://deno.land/)) +1. Move binary: `mv ./git-fury /usr/local/bin` + #### Building from Source 1. Download and unpack the source code from the diff --git a/scripts/package.sh b/scripts/package.sh index 10a8d59..9fae653 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -14,14 +14,11 @@ fi rm -rf "target/$version" mkdir "target/$version" -export targets=( "aarch64-apple-darwin" "x86_64-apple-darwin" "x86_64-unknown-linux-gnu" ) +export targets=("x86_64-unknown-linux-gnu" "aarch64-unknown-linux-gnu" "x86_64-pc-windows-msvc" "x86_64-apple-darwin" "aarch64-apple-darwin" ) for target in "${targets[@]}" do : filename="./target/${version}/git-fury-${target}" deno compile --allow-run --target=${target} --output=${filename} ./mod.ts - tar -czf ${filename}.tar.gz ${filename} - rm -f ${filename} - shasum -a 256 ${filename}.tar.gz done \ No newline at end of file