Remove nightly for discord-canary-openasar

This commit is contained in:
windowsboy111
2023-01-24 16:04:08 +08:00
parent b6d320aa1c
commit 5d693bb457
2 changed files with 0 additions and 10 deletions
@@ -2,7 +2,4 @@ project pkg {
rpm {
spec = "discord-canary-openasar.spec"
}
labels {
nightly = "1"
}
}
@@ -1,10 +1,3 @@
if filters.contains("nightly") {
let req = new_req("https://api.github.com/repos/GooseMod/OpenAsar/commits/HEAD");
req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`);
let sha = req.get().json().sha;
rpm.define("commit", sha);
rpm.release();
}
let html = get("https://discordapp.com/api/download/canary?platform=linux&format=tar.gz");
let newver = find("https://dl-canary\\.discordapp\\.net/apps/linux/([\\.\\d]+)/", html, 1);
rpm.version(newver);