fix(update): discord* (#2117)

This commit is contained in:
madomado
2024-09-20 22:00:57 +08:00
committed by GitHub
parent 080abce722
commit b5db30851b
6 changed files with 6 additions and 18 deletions
@@ -1,3 +1 @@
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);
rpm.version(get("https://discord.com/api/canary/updates?platform=linux").json().name);
+1 -3
View File
@@ -1,3 +1 @@
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);
rpm.version(get("https://discord.com/api/canary/updates?platform=linux").json().name);
+1 -3
View File
@@ -1,3 +1 @@
let html = get("https://discordapp.com/api/download?platform=linux&format=tar.gz");
let newver = find("https://dl\\.discordapp\\.net/apps/linux/([\\.\\d]+)/", html, 1);
rpm.version(newver);
rpm.version(get("https://discord.com/api/stable/updates?platform=linux").json().name);
+1 -3
View File
@@ -1,3 +1 @@
let html = get("https://discordapp.com/api/download/ptb?platform=linux&format=tar.gz");
let newver = find("https://dl-ptb\\.discordapp\\.net/apps/linux/([\\.\\d]+)/", html, 1);
rpm.version(newver);
rpm.version(get("https://discord.com/api/ptb/updates?platform=linux").json().name);
+1 -3
View File
@@ -1,3 +1 @@
let html = get("https://discordapp.com/api/download/ptb?platform=linux&format=tar.gz");
let newver = find("https://dl-ptb\\.discordapp\\.net/apps/linux/([\\.\\d]+)/", html, 1);
rpm.version(newver);
rpm.version(get("https://discord.com/api/ptb/updates?platform=linux").json().name);
+1 -3
View File
@@ -1,3 +1 @@
let html = get("https://discordapp.com/api/download?platform=linux&format=tar.gz");
let newver = find("https://dl\\.discordapp\\.net/apps/linux/([\\.\\d]+)/", html, 1);
rpm.version(newver);
rpm.version(get("https://discord.com/api/stable/updates?platform=linux").json().name);