From 5d446b23fa7c1c4fba1ef59c51f37995bfde4a0a Mon Sep 17 00:00:00 2001 From: Yossi Frances Date: Thu, 10 Jan 2019 20:47:27 +0200 Subject: [PATCH] Added Windows 32bit support for the start command --- .../Commands/Actions/GetTargetPlatformInformation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs b/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs index a7afc02b..ecaf3cf0 100644 --- a/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs +++ b/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs @@ -45,7 +45,7 @@ public static GetTargetPlatformInformationResult Do(string desiredPlatform, stri default: if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { - netCorePublishRid = "win-x64"; + netCorePublishRid = $"win-x{(Environment.Is64BitOperatingSystem ? "64" : "86")}"; electronPackerPlatform = "win32"; } if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))