Skip to content

Commit

Permalink
Instructions & script changes for installing downloaded binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
greghuels committed Apr 19, 2024
1 parent 4cfd8d3 commit a89641a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a89641a

Please sign in to comment.