diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2022-12-18 00:06:45 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2022-12-18 00:06:45 +0100 |
commit | 7a1422e58774bffabc2cda2c7b8694230ab12856 (patch) | |
tree | 09854c0b418ed82ac637fed7cdded197562dcb35 | |
parent | 2c8063a1697ce4c737a2296b8d6385c9cf761f07 (diff) | |
download | Luxcena-Neo-7a1422e58774bffabc2cda2c7b8694230ab12856.tar.gz Luxcena-Neo-7a1422e58774bffabc2cda2c7b8694230ab12856.zip |
Change from pinned release to latest
-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); |