Files
packages/anda/themes/lightly-qt5/update.rhai
T
Raboneko 18b350429d Add lightly-qt5 (#1073) (#1079)
* Create lightly-qt5. spec

Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>

* Fix filename & location of lightly-qt5

Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>

* Create anda.hcl for lightly-qt5

Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>

* Create update.rhai

Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>

* Create VER5.txt

Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>

---------

Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
(cherry picked from commit f31987fdd1)

Co-authored-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
2024-04-05 20:56:54 +08:00

8 lines
528 B
Plaintext

let repos = get("https://repology.org/api/v1/project/qt").json_arr();
let branch = sh("git rev-parse --abbrev-ref HEAD", #{"stdout": "piped"}).ctx.stdout;
branch.crop(1);
branch.trim();
let vers = repos.filter(|r| r.repo == `fedora_${branch}`).map(|r| [find("^(\\d+)\\.(\\d+)\\..+$", r.version, 1), find("^(\\d+)\\.(\\d+)\\..+$", r.version, 2)]);
let ver = vers.find(|v| v[0] == "5")[1]; // assume there is only 1 package for v5.x
open_file("anda/themes/lightly-qt5/VER5.txt").write(`${ver}`); // will trig rebuild when changed