Merge pull request #821 from sajmonr/feature/osx-architecture-detection

Added OSX architecture detection
This commit is contained in:
Florian Rappl
2024-02-15 00:55:05 +01:00
committed by GitHub

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