fix: set version when not using latest
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Successful in 47s
Continuous Integration / TypeScript Tests (push) Successful in 56s
Continuous Integration / GitHub Actions Test (push) Failing after 20s

This commit is contained in:
2024-12-28 12:28:05 +13:00
parent 9168ecec34
commit 042eb7b9f9
4 changed files with 7 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ export async function download(version: string): Promise<string> {
if (version == '') {
ver = await getLatestVersion()
} else {
ver = version
}
const url = `https://ziglang.org/download/${ver}/zig-${platform}-${architecture}-${ver}.${extension}`