Skip to content

Commit

Permalink
Update shell install script
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieS1103 authored Oct 30, 2022
1 parent 1dc34ad commit 4fa5fb3
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion resources/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@

set -e

download_uri="https://github.com/spicetify/spicetify-marketplace/archive/refs/heads/dist.zip"

# download uri
releases_uri=https://github.com/spicetify/spicetify-marketplace/releases
if [ $# -gt 0 ]; then
tag=$1
else
tag=$(curl -LsH 'Accept: application/json' $releases_uri/latest)
tag=${tag%\,\"update_url*}
tag=${tag##*tag_name\":\"}
tag=${tag%\"}
fi

tag=${tag#v}

echo "FETCHING Version $tag"

download_uri=$releases_uri/download/v$tag/spicetify-marketplace.zip
default_color_uri="https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/resources/color.ini"

SPICETIFY_CONFIG_DIR="${SPICETIFY_CONFIG:-$HOME/.config/spicetify}"
Expand Down

0 comments on commit 4fa5fb3

Please sign in to comment.