aboutsummaryrefslogtreecommitdiff
path: root/hooks/update.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-12 12:09:34 +0100
committerMinteck <contact@minteck.org>2022-02-12 12:09:34 +0100
commit38e7fbe2f99a5d0b6a69e54ab3af7ebf451e8f4f (patch)
tree33266f2ba82dd1e22fe85cf77bc0b559e3917af8 /hooks/update.js
parent01160246e4a0c0052181c72a53737e356ea7d02d (diff)
downloadtwilight-38e7fbe2f99a5d0b6a69e54ab3af7ebf451e8f4f.tar.gz
twilight-38e7fbe2f99a5d0b6a69e54ab3af7ebf451e8f4f.tar.bz2
twilight-38e7fbe2f99a5d0b6a69e54ab3af7ebf451e8f4f.zip
Update
Diffstat (limited to 'hooks/update.js')
-rw-r--r--hooks/update.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/hooks/update.js b/hooks/update.js
index f871889..412c733 100644
--- a/hooks/update.js
+++ b/hooks/update.js
@@ -25,6 +25,10 @@ module.exports = async () => {
date: verdata.commit.created_at
}
+ if (typeof pack.pointrelease === "string") {
+ pack.verdata.latest = pack.pointrelease;
+ }
+
let signRaw = { error: "404 Not Found" };
try {
signRaw = (await axios.get(pack.signature.replace("{version}", verdata.commit.id))).data;