Skip to content

Commit 6042351

Browse files
committed
fix: use .bat extension for bootstrap-vcpkg
1 parent 338c572 commit 6042351

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vcpkg/vcpkg.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ export async function setupVcpkg(_version: string, setupDir: string, _arch: stri
4444
}
4545
}
4646

47-
if (!existsSync(join(setupDir, addShExt("bootstrap-vcpkg")))) {
47+
if (!existsSync(join(setupDir, addShExt("bootstrap-vcpkg", ".bat")))) {
4848
execa.sync("git", ["clone", "https://github.com/microsoft/vcpkg"], { cwd: dirname(setupDir), stdio: "inherit" })
4949
} else {
5050
notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)
5151
}
5252

53-
execa.sync(addShExt(addShRelativePrefix("bootstrap-vcpkg")), { cwd: setupDir, shell: true, stdio: "inherit" })
53+
execa.sync(addShExt(addShRelativePrefix("bootstrap-vcpkg"), ".bat"), {
54+
cwd: setupDir,
55+
shell: true,
56+
stdio: "inherit",
57+
})
5458

5559
giveUserAccess(setupDir)
5660

0 commit comments

Comments
 (0)