You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returns nothing because https://api.github.com/repos/$REPO/releases/latest only contains information about library at the moment. I assume that it only ever contains information about whichever of either stats or library has been more recently released.
Solution:
A more reliable method of fetching the download URL for the latest release that will work for either stats or library is:
(replace stats with library to make it work with library)
This circumvents the problem of the "latest release" being only one of either stats or library by using the page that contains all the releases, then grepping for the particular app you are interested in, and choosing the latest one.
The text was updated successfully, but these errors were encountered:
Issue:
Install.sh script fails to install the stats app
Cause:
This line
LATEST_RELEASE_URL=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | grep "browser_download_url.*spicetify-stats.release.zip" | cut -d '"' -f 4)
returns nothing because
https://api.github.com/repos/$REPO/releases/latest
only contains information about library at the moment. I assume that it only ever contains information about whichever of either stats or library has been more recently released.Solution:
A more reliable method of fetching the download URL for the latest release that will work for either stats or library is:
LATEST_RELEASE_URL=$(curl -s "https://api.github.com/repos/$REPO/releases" | grep "browser_download_url.*spicetify-stats.release.zip" | cut -d '"' -f 4 | head -1)
(replace stats with library to make it work with library)
This circumvents the problem of the "latest release" being only one of either stats or library by using the page that contains all the releases, then grepping for the particular app you are interested in, and choosing the latest one.
The text was updated successfully, but these errors were encountered: