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]>
This commit is contained in:
Thomas Boop
2022-09-26 10:12:13 +02:00
committed by GitHub
co-authored by Ivan
parent 857c316a9d
commit a351d9ea84
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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) => {