fix(astal-gtk): add commit (#6204)

This commit is contained in:
madonuko
2025-08-30 21:51:44 +08:00
parent ec7ab7cdc8
commit a5519f9655
2 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
%global commit 5d4eef6
%global commit_date 20250812
%global commit 20bd8318e4136fbd3d4eb2d64dbabc3acbc915dd
%global shortcommit 20bd831
%global commit_date 20250830
Name: astal
Version: 0^%commit_date.%commit
+5 -1
View File
@@ -1,8 +1,12 @@
import "andax/bump_extras.rhai" as bump;
import "andax/spec.rhai" as spec;
let mg = bump::madoguchi_json("astal", labels.branch);
rpm.global("commit_date", `0\^(\d+)\.([[:xdigit:]]+)`.find(mg.ver, 1));
rpm.global("commit", `0\^(\d+)\.([[:xdigit:]]+)`.find(mg.ver, 2));
rpm.global("shortcommit", `0\^(\d+)\.([[:xdigit:]]+)`.find(mg.ver, 2));
if rpm.changed() {
rpm.release(`^(\d+)\.`.find(mg.rel, 1));
rpm.global("commit", spec::get_global(#{
f: open_file("anda/lib/astal/astal/astal.spec").read_string()
}, "commit"));
}