Skip to content

Commit

Permalink
feat(installer): get latest version from Github API
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jun 4, 2023
1 parent 1763a36 commit 957c085
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ ICON_PATH=/usr/share/icons/spotube/spotube-logo.png
BIN_SYMLINK_PATH=/usr/bin/spotube

TEMP_DIR=/tmp/spotube-installer
VERSION="2.7.1"

# get latest version from github api
VERSION=$(curl --silent "https://api.github.com/repos/KRTirtho/spotube/releases/latest" \
| grep -Po '"tag_name": "\K.*?(?=")')

function spotube_help(){
# available flags are -v or --version to specify what version to download
Expand Down

0 comments on commit 957c085

Please sign in to comment.