mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 17:32:18 +00:00
8f937512cf
* feat(zig-master{,-bootstrap}): Automatically update mirrors
* ?
* Embarrassing
Signed-off-by: Gilver <rockgrub@disroot.org>
* feat: Use pre.rhai
* A
* AAAA
* feat: Let's try this
* cleanup: Wh
* Aaaaaa
* dfhsdfhjsdfdjkh
* dfhsdfhjsdfdjkh
* dfhsdfhjsdfdjkh
* ???
* ???
* fdhdfssdfhjkksdfhj
* Man
* Maybe this will fix sed
* dshfhjfsdjhk
* Hmm
* Double backslash??
* Locally this works
* Noooo
* feat: Changelog
* feat: Update script
* fix: A
* fix: Copypaste idiot moment
* cleanup: Actually not sure that is needed
* chore: terra-obsoletes
* cleanup: Weird whitespace
* This is a way better idea
---------
Signed-off-by: Gilver <rockgrub@disroot.org>
12 lines
335 B
Plaintext
12 lines
335 B
Plaintext
let url = `https://ziglang.org/download/index.json`;
|
|
let json = get(url).json();
|
|
let v = json.master.version;
|
|
rpm.global("ver", v);
|
|
|
|
if rpm.changed() {
|
|
rpm.release();
|
|
// Update the Zig version in the script
|
|
let dir = sub(`/[^/]+$`, "", __script_path);
|
|
sh(`sed -i 's|version=.*|version=${v}|' setup.sh`, #{ "cwd": dir });
|
|
}
|