Files
packages/anda/system/wine/stable/update.rhai
T
Raboneko 137c333f7a fix(wine-stable): Turn update variable into string (#5152) (#5154)
(cherry picked from commit 82c669f234)

Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
2025-05-31 00:46:55 -05:00

9 lines
256 B
Plaintext

let v = [];
// Only find versions ending in .0. Stable WINE always ends in .0
for matches in find_all("[\\d.]+\\.0", get("https://dl.winehq.org/wine/source/")) {
v += matches[0].parse_float();
}
v.dedup();
v.sort();
rpm.version(`${v[v.len()-1]}`);