Files
packages/anda/themes/lightly-qt6/update.rhai
T
Raboneko 8456c6a38d fix(lightly-qt6): Update script and build (#4673) (#4679)
* fix(lightly-qt6): Funny missing labels in update.rhai

Signed-off-by: Gilver <rockgrub@disroot.org>

* While I'm here

Signed-off-by: Gilver <rockgrub@disroot.org>

* That was the name of the CMake file but okay

Signed-off-by: Gilver <rockgrub@disroot.org>

* Update lightly-qt6.spec

Signed-off-by: Gilver <rockgrub@disroot.org>

* Update lightly-qt6.spec

Signed-off-by: Gilver <rockgrub@disroot.org>

* Try to rule out any missing build deps but I don't think it's that

Signed-off-by: Gilver <rockgrub@disroot.org>

* ?

Signed-off-by: Gilver <rockgrub@disroot.org>

* Update lightly-qt6.spec

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
(cherry picked from commit 05c1d59a06)

Co-authored-by: Gilver <rockgrub@disroot.org>
2025-05-05 06:00:59 -05:00

15 lines
579 B
Plaintext

import "andax/bump_extras.rhai" as bump;
fn main(labels) {
let branch = bump::as_bodhi_ver(labels.branch);
let url = `https://bodhi.fedoraproject.org/updates/?search=qt6-6.&status=stable&releases=${branch}&rows_per_page=1&page=1`;
for entry in get(url).json().updates[0].title.split(' ') {
let matches = find_all(`qt6-([\d.]+)-(\d+)\.[\w\d]+$`, entry);
if matches.len() != 0 {
return matches[0][1].split(".")[1];
}
}
}
open_file("anda/themes/lightly-qt6/VER6.txt").write(`${main(labels)}`); // will trig rebuild when changed