Skip to content

Commit a351d9e

Browse files
thboopIvanZosimov
andauthored
Add support for Windows-arm (#320)
* update to use pwsh if it is available * fix spacing * update install script * Update src/installer.ts Co-authored-by: Ivan <[email protected]> * update index.js * fix format Co-authored-by: Ivan <[email protected]>
1 parent 857c316 commit a351d9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class DotnetCoreInstaller {
275275
command += ` -ProxyBypassList ${process.env['no_proxy']}`;
276276
}
277277
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
278-
const powershellPath = yield io.which('powershell', true);
278+
const powershellPath = (yield io.which('pwsh', false)) || (yield io.which('powershell', true));
279279
var options = {
280280
listeners: {
281281
stdout: (data) => {

src/installer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ export class DotnetCoreInstaller {
116116
}
117117

118118
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
119-
const powershellPath = await io.which('powershell', true);
119+
const powershellPath =
120+
(await io.which('pwsh', false)) || (await io.which('powershell', true));
120121

121122
var options: ExecOptions = {
122123
listeners: {

0 commit comments

Comments
 (0)