Run standard --fix
This commit is contained in:
parent
8554b2f249
commit
e3b63a8160
|
@ -10,7 +10,6 @@ function extForPlatform (platform) {
|
||||||
}[platform]
|
}[platform]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function resolveCommit (arch, platform, version) {
|
function resolveCommit (arch, platform, version) {
|
||||||
const ext = extForPlatform(platform)
|
const ext = extForPlatform(platform)
|
||||||
const resolvedOs = {
|
const resolvedOs = {
|
||||||
|
@ -24,8 +23,8 @@ function resolveCommit (arch, platform, version) {
|
||||||
arm64: 'aarch64',
|
arm64: 'aarch64',
|
||||||
ppc64: 'powerpc64',
|
ppc64: 'powerpc64',
|
||||||
riscv64: 'riscv64',
|
riscv64: 'riscv64',
|
||||||
x64: 'x86_64',
|
x64: 'x86_64'
|
||||||
} [arch]
|
}[arch]
|
||||||
|
|
||||||
const downloadUrl = `https://ziglang.org/builds/zig-${resolvedOs}-${resolvedArch}-${version}.${ext}`
|
const downloadUrl = `https://ziglang.org/builds/zig-${resolvedOs}-${resolvedArch}-${version}.${ext}`
|
||||||
const variantName = `zig-${resolvedOs}-${resolvedArch}-${version}`
|
const variantName = `zig-${resolvedOs}-${resolvedArch}-${version}`
|
||||||
|
@ -58,8 +57,8 @@ async function resolveVersion (arch, platform, version) {
|
||||||
arm64: 'aarch64',
|
arm64: 'aarch64',
|
||||||
ppc64: 'powerpc64',
|
ppc64: 'powerpc64',
|
||||||
riscv64: 'riscv64',
|
riscv64: 'riscv64',
|
||||||
x64: 'x86_64',
|
x64: 'x86_64'
|
||||||
} [arch]
|
}[arch]
|
||||||
|
|
||||||
const host = `${resolvedArch}-${resolvedOs}`
|
const host = `${resolvedArch}-${resolvedOs}`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user