Skip to content

Commit

Permalink
fix(update): crystal (#1571) (#1590)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7e6c8e5)

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

Co-authored-by: madomado <[email protected]>
  • Loading branch information
lleyton and madonuko authored Jul 20, 2024
1 parent ca44747 commit aee9c83
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion anda/langs/crystal/crystal/update.rhai
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit aee9c83

Please sign in to comment.