aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2022-12-18 00:06:45 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2022-12-18 00:06:45 +0100
commit7a1422e58774bffabc2cda2c7b8694230ab12856 (patch)
tree09854c0b418ed82ac637fed7cdded197562dcb35
parent2c8063a1697ce4c737a2296b8d6385c9cf761f07 (diff)
downloadLuxcena-Neo-7a1422e58774bffabc2cda2c7b8694230ab12856.tar.gz
Luxcena-Neo-7a1422e58774bffabc2cda2c7b8694230ab12856.zip
Change from pinned release to latest
-rwxr-xr-xbin/install.sh2
-rw-r--r--src/SelfUpdater/index.js2
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);