feat(hyprland): move things to separate folder real, better upd scr (#7222) (#7249)

(cherry picked from commit c19f7af2b3)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-11-09 17:49:04 -08:00
committed by GitHub
parent f1cb04e576
commit 9e6c0542ab
27 changed files with 47 additions and 13 deletions
@@ -0,0 +1,16 @@
import "andax/bump_extras.rhai" as bump;
import "andax/spec.rhai" as spec;
rpm.global("commit", gh_commit("hyprwm/hyprgraphics"));
if rpm.changed() {
rpm.global("ver", gh_rawfile("hyprwm/hyprgraphics", "main", "VERSION"));
rpm.global("commit_date", date());
}
// FIXME: should be updbranch but we also need nightly and we are using gh_commit()?
let dir = sub(`/[^/]+$`, "", __script_path);
open_file(`${dir}/VER_hyprlang.txt`, "w").write(bump::madoguchi("hyprlang.nightly", labels.branch));
if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 {
let rel = spec::get_release(rpm).parse_int();
rpm.release(rel + 1);
}
@@ -0,0 +1 @@
0.10.0^20251005git.3df7bde
@@ -0,0 +1,16 @@
import "andax/bump_extras.rhai" as bump;
import "andax/spec.rhai" as spec;
// FIXME: should be updbranch but we also need nightly and we are using gh_commit()?
let dir = sub(`/[^/]+$`, "", __script_path);
open_file(`${dir}/VER_hyprutil.txt`, "w").write(bump::madoguchi("hyprutils.nightly", labels.branch));
if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 {
let rel = spec::get_release(rpm).parse_int();
rpm.release(rel + 1);
}
rpm.global("commit", gh_commit("hyprwm/hyprlang"));
if rpm.changed() {
rpm.global("ver", gh_rawfile("hyprwm/hyprlang", "main", "VERSION"));
rpm.global("commit_date", date());
}
@@ -0,0 +1,14 @@
import "andax/bump_extras.rhai" as bump;
import "andax/spec.rhai" as spec;
let v = gh_rawfile("hyprwm/hyprlock", "main", "VERSION");
v.trim();
rpm.version(v);
// FIXME: should be updbranch but we also need nightly and we are using gh_commit()?
let dir = sub(`/[^/]+$`, "", __script_path);
open_file(`${dir}/VER_hyprgraphics.txt`, "w").write(bump::madoguchi("hyprgraphics.nightly", labels.branch));
if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 {
let rel = spec::get_release(rpm).parse_int();
rpm.release(rel + 1);
}
@@ -1,5 +0,0 @@
rpm.global("commit", gh_commit("hyprwm/hyprgraphics"));
if rpm.changed() {
rpm.global("ver", gh_rawfile("hyprwm/hyprgraphics", "main", "VERSION"));
rpm.global("commit_date", date());
}
@@ -1,5 +0,0 @@
rpm.global("commit", gh_commit("hyprwm/hyprlang"));
if rpm.changed() {
rpm.global("ver", gh_rawfile("hyprwm/hyprlang", "main", "VERSION"));
rpm.global("commit_date", date());
}
@@ -1,3 +0,0 @@
let v = gh_rawfile("hyprwm/hyprlock", "main", "VERSION");
v.trim();
rpm.version(v);