diff options
-rwxr-xr-x | bin/install.sh | 2 | ||||
-rw-r--r-- | src/SelfUpdater/index.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/install.sh b/bin/install.sh index 2563ab2..2c96658 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -147,7 +147,7 @@ execCommand "pip3 install virtualenv" header "Download luxcena-neo" INSTALLDIR=$(getent passwd "$username" | cut -d: -f6) APIURL="https://api.github.com/repos/JakobST1n/luxcena-neo" -REPOINFO=$(curl -s "$APIURL/releases/86402456" -H "Accept: application/vnd.github+json") +REPOINFO=$(curl -s "$APIURL/releases/latest" -H "Accept: application/vnd.github+json") TARBALL_NAME=$(echo "$REPOINFO" | jq '.assets[0].name') TARBALL_URL=$(echo "$REPOINFO" | jq '.assets[0].browser_download_url') execCommand "runuser -l $username -c \"curl -s -L -o $INSTALLDIR/$TARBALL_NAME $TARBALL_URL\"" diff --git a/src/SelfUpdater/index.js b/src/SelfUpdater/index.js index 2d8d137..53d66c6 100644 --- a/src/SelfUpdater/index.js +++ b/src/SelfUpdater/index.js @@ -13,7 +13,7 @@ let neoModules; * Get the latest release from GitHub */ async function getLatestRelease() { - let res = await fetch("https://api.github.com/repos/jakobst1n/luxcena-neo/releases/86402456"); + let res = await fetch("https://api.github.com/repos/jakobst1n/luxcena-neo/releases/latest"); if (res.status !== 200) { console.log(res.status); |