fix(update): gtk4 (#464)

* fix(update): gtk4

Signed-off-by: madomado <wboy111@outlook.com>

* Update update.rhai

Signed-off-by: madomado <wboy111@outlook.com>

---------

Signed-off-by: madomado <wboy111@outlook.com>
This commit is contained in:
madomado
2023-05-26 00:27:03 +08:00
committed by GitHub
parent f3f1556806
commit 68bcd5bf57
+7 -3
View File
@@ -1,3 +1,7 @@
let txt = get("https://gitlab.gnome.org/api/v4/projects/665/releases/");
let ver = txt.json_arr()[0].tag_name;
rpm.version(ver);
let txt = get("https://gitlab.gnome.org/api/v4/projects/665/repository/tags");
for item in txt.json_arr() {
if item.name.starts_with("4.") {
rpm.version(item.name);
break;
}
}