Skip to content

Commit

Permalink
Merge pull request #6 from zostay/release/v0.0.2
Browse files Browse the repository at this point in the history
chore: fixing the install script
  • Loading branch information
zostay authored Jun 27, 2024
2 parents 7c1edf0 + f8d4031 commit c1c0fd3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.0.2 2024-06-27

* Fixing the install script.

## v0.0.1 2024-06-27

* Adding binaries to the release.
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.0.2
4 changes: 2 additions & 2 deletions tools/install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh

INSTALL_DIR=/usr/local/bin
CURRENT_VERSION=$(curl -s https://api.github.com/repos/zostay/genifest/releases/latest | grep tag_name | cut -d '"' -f 4)
CURRENT_VERSION=$(curl -s https://api.github.com/repos/zostay/genifest/releases/latest | grep tag_name | cut -d '"' -f 4 | cut -c 2-)
OS_NAME=$(uname -s | tr '[:upper:]' '[:lower:]')
OS_ARCH=$(uname -m)
DOWNLOAD_URL="https://github.com/zostay/genifest/releases/download/$CURRENT_VERSION/genifest-$CURRENT_VERSION-$OS_NAME-$OS_ARCH"

curl -L "$DOWNLOAD_URL" -o "$INSTALL_DIR/genifest"
sudo sh -c 'curl -L "$DOWNLOAD_URL" -o "$INSTALL_DIR/genifest" && chmod +x "$INSTALL_DIR/genifest"'

0 comments on commit c1c0fd3

Please sign in to comment.