From c8254e2d84f95c182db2f5f1d3c5157853fb887e Mon Sep 17 00:00:00 2001 From: Marco Achtziger Date: Thu, 19 Apr 2018 21:14:00 +0200 Subject: [PATCH] added support for linux-arm platform --- .../Commands/Actions/GetTargetPlatformInformation.cs | 4 ++++ ElectronNET.CLI/Commands/BuildCommand.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs b/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs index 856b77c..a7afc02 100644 --- a/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs +++ b/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs @@ -33,6 +33,10 @@ namespace ElectronNET.CLI.Commands.Actions netCorePublishRid = "linux-x64"; electronPackerPlatform = "linux"; break; + case "linux-arm": + netCorePublishRid = "linux-arm"; + electronPackerPlatform = "linux"; + break; case "custom": var splittedSpecified = specifiedPlatfromFromCustom.Split(';'); netCorePublishRid = splittedSpecified[0]; diff --git a/ElectronNET.CLI/Commands/BuildCommand.cs b/ElectronNET.CLI/Commands/BuildCommand.cs index 09478db..7eb57ac 100644 --- a/ElectronNET.CLI/Commands/BuildCommand.cs +++ b/ElectronNET.CLI/Commands/BuildCommand.cs @@ -48,7 +48,7 @@ namespace ElectronNET.CLI.Commands string specifiedFromCustom = string.Empty; if (desiredPlatform == "custom" && parser.Arguments[_paramTarget].Length > 1) { - specifiedFromCustom = parser.Arguments["target"][1]; + specifiedFromCustom = parser.Arguments[_paramTarget][1]; } string configuration = "Release";