Files
packages/anda/multimedia/LCEVCdec/update.rhai
T
Raboneko f130011e3a fix: Update scripts that are missing a spec import (#7834) (#7855)
(cherry picked from commit 93d7fc4b14)

Co-authored-by: Gilver <rockgrub@disroot.org>
2025-12-02 04:19:15 +08:00

13 lines
508 B
Plaintext

import "andax/bump_extras.rhai" as bump;
import "andax/spec.rhai" as spec;
rpm.version(find(`\s+VERSION ([\d.]+)`, gh_rawfile("v-novaltd/LCEVCdec", "main", "CMakeLists.txt"), 1));
open_file("anda/multimedia/LCEVCdec/VERSION_ffmpeg.txt", "w").write(bump::madoguchi("ffmpeg", labels.branch));
let dir = sub(`/[^/]+$`, "", __script_path);
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);
}