Skip to content

Commit

Permalink
Add support for Windows-arm (#320)
Browse files Browse the repository at this point in the history
* update to use pwsh if it is available

* fix spacing

* update install script

* Update src/installer.ts

Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>

* update index.js

* fix format

Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
  • Loading branch information
thboop and IvanZosimov authored Sep 26, 2022
1 parent 857c316 commit a351d9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class DotnetCoreInstaller {
command += ` -ProxyBypassList ${process.env['no_proxy']}`;
}
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
const powershellPath = yield io.which('powershell', true);
const powershellPath = (yield io.which('pwsh', false)) || (yield io.which('powershell', true));
var options = {
listeners: {
stdout: (data) => {
Expand Down
3 changes: 2 additions & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export class DotnetCoreInstaller {
}

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

var options: ExecOptions = {
listeners: {
Expand Down

0 comments on commit a351d9e

Please sign in to comment.