Files
packages/anda/devs/ghostty/nightly/update.rhai
T
Gil c48c26e603 Feat (Ghostty): Changes, fixes, and more (#3173)
* Ghostty updates and changes

* ...Bump rel
2025-02-04 18:58:40 +08:00

14 lines
527 B
Plaintext

let url = `https://api.github.com/repos/ghostty-org/ghostty/releases/83450291`;
let json = get(url).json();
let commit = json.target_commitish;
rpm.global("commit", commit);
if rpm.changed() {
let date = json.created_at;
date.truncate(10);
let html = get(`https://raw.githubusercontent.com/ghostty-org/ghostty/refs/heads/main/build.zig.zon`);
let ver = find(".version = \"([\\d.]+)\"", html, 1);
rpm.version(gh_tag("ghostty-org/ghostty"));
rpm.global("fulldate", date);
rpm.global("dev_ver", ver)
}