fix(update): crystal (#1571) (#1590)

(cherry picked from commit 7e6c8e50a4)

# Conflicts:
#	anda/langs/crystal/crystal/update.rhai

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
lea
2024-07-19 23:33:09 -07:00
committed by GitHub
parent ca44747c98
commit aee9c832ea
+9 -1
View File
@@ -1 +1,9 @@
rpm.version(gh("crystal-lang/crystal"));
let v = gh("crystal-lang/crystal");
let url = `crystal-${v}-1-linux-x86_64-bundled.tar.gz`;
if get(`https://github.com/crystal-lang/crystal/releases/expanded_assets/${v}`).contains(url) {
rpm.version(v);
} else {
print(`crystal: ${v} (waiting for bundle)`);
terminate();
}