Added OSX architecture detection

This commit is contained in:
Adam Simonicek
2023-11-04 14:09:07 -04:00
parent 23f4d39a30
commit 53ccf4d302

View File

@@ -48,7 +48,7 @@ namespace ElectronNET.CLI.Commands.Actions
}
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
netCorePublishRid = "osx-x64";
netCorePublishRid = RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ? "osx-arm64" : "osx-x64";
electronPackerPlatform = "mac";
}
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))