Files
packages/anda/themes/lightly-qt6/update.rhai
T
Raboneko f353eac054 Add lightly-qt6 (#1074) (#1080)
* Create lightly-qt6.spec

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

* Create add-missing-files.patch for lightly-qt6

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

* Create anda.hcl for lightly-qt6

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

* Create update.rhai for lightly-qt6

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

* Create VER6.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 46cbb7c0e8)

Co-authored-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
2024-04-05 20:59:02 +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] == "6")[1]; // assume there is only 1 package for v6.x
open_file("anda/themes/lightly-qt6/VER6.txt").write(`${ver}`); // will trig rebuild when changed