Files
packages/anda/tools/codium/update.rhai
T
madomado 4d015c5f9c fix(update): codium (#568)
This fixes the issue where it fails to build because the assets in the gh release is not ready yet

Signed-off-by: madomado <wboy111@outlook.com>
2023-06-16 21:51:43 +07:00

11 lines
329 B
Plaintext

let release = get("https://api.github.com/repos/vscodium/vscodium/releases").json_arr()[0];
let i = 0;
for asset in release.assets {
if asset.name == `VSCodium-linux-x64-${release.tag_name}.tar.gz` || asset.name == `VSCodium-linux-arm64-${release.tag_name}.tar.gz` {
i += 1;
}
}
if i == 2 {
rpm.version(release.tag_name);
}