mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-26 05:13:05 +07:00
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 <98037481+IvanZosimov@users.noreply.github.com> * update index.js * fix format Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
This commit is contained in:
parent
857c316a9d
commit
a351d9ea84
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -275,7 +275,7 @@ class DotnetCoreInstaller {
|
|||||||
command += ` -ProxyBypassList ${process.env['no_proxy']}`;
|
command += ` -ProxyBypassList ${process.env['no_proxy']}`;
|
||||||
}
|
}
|
||||||
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
|
// 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 = {
|
var options = {
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
|
@ -116,7 +116,8 @@ export class DotnetCoreInstaller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
|
// 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 = {
|
var options: ExecOptions = {
|
||||||
listeners: {
|
listeners: {
|
||||||
|
Loading…
Reference in New Issue
Block a user