fix: install powershell-core on windows

This commit is contained in:
Amin Yahyaabadi 2022-08-07 16:17:45 -07:00
parent 26e03ff671
commit 4a78b34d52
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ import { execSudo } from "../utils/exec/sudo"
export async function setupPowershell(version: string | undefined, _setupDir: string, _arch: string) {
switch (process.platform) {
case "win32": {
await setupChocoPack("powershell", version)
await setupChocoPack("powershell-core", version)
const binDir = "C:/Program Files/PowerShell/7"
await addPath(binDir)
return { binDir }