Files
packages/anda/devs/ghostty/nightly/update.rhai
T

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)
}