fix(cli): stabilize Windows ARM64 Node builds (#37503)
This commit is contained in:
@@ -135,7 +135,7 @@ jobs:
|
|||||||
- target: darwin-arm64
|
- target: darwin-arm64
|
||||||
host: macos-26
|
host: macos-26
|
||||||
- target: windows-arm64
|
- target: windows-arm64
|
||||||
host: windows-2025
|
host: blacksmith-4vcpu-windows-2025
|
||||||
- target: windows-x64
|
- target: windows-x64
|
||||||
host: blacksmith-4vcpu-windows-2025
|
host: blacksmith-4vcpu-windows-2025
|
||||||
runs-on: ${{ matrix.settings.host }}
|
runs-on: ${{ matrix.settings.host }}
|
||||||
|
|||||||
@@ -170,8 +170,10 @@ async function resolveTargetNode(target: NodeTarget, host?: string) {
|
|||||||
await rm(temporary, { recursive: true, force: true })
|
await rm(temporary, { recursive: true, force: true })
|
||||||
await mkdir(temporary)
|
await mkdir(temporary)
|
||||||
if (target.platform !== "win32") run("tar", ["-xzf", archive, "-C", temporary])
|
if (target.platform !== "win32") run("tar", ["-xzf", archive, "-C", temporary])
|
||||||
else if (process.platform === "win32") run("tar", ["-xf", archive, "-C", temporary])
|
if (target.platform === "win32" && process.platform === "win32") {
|
||||||
else run("unzip", ["-q", archive, "-d", temporary])
|
run(path.join(process.env.SystemRoot ?? "C:\\Windows", "System32", "tar.exe"), ["-xf", archive, "-C", temporary])
|
||||||
|
}
|
||||||
|
if (target.platform === "win32" && process.platform !== "win32") run("unzip", ["-q", archive, "-d", temporary])
|
||||||
await rm(targetDirectory, { recursive: true, force: true })
|
await rm(targetDirectory, { recursive: true, force: true })
|
||||||
await rename(path.join(temporary, archiveName), targetDirectory)
|
await rename(path.join(temporary, archiveName), targetDirectory)
|
||||||
await writeFile(path.join(targetDirectory, ".verified"), `${expected}\n`)
|
await writeFile(path.join(targetDirectory, ".verified"), `${expected}\n`)
|
||||||
|
|||||||
Reference in New Issue
Block a user