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))