Skip to content

Commit 3476145

Browse files
authored
Merge pull request #821 from sajmonr/feature/osx-architecture-detection
Added OSX architecture detection
2 parents e4e96bb + 53ccf4d commit 3476145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static GetTargetPlatformInformationResult Do(string desiredPlatform, stri
4848
}
4949
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
5050
{
51-
netCorePublishRid = "osx-x64";
51+
netCorePublishRid = RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ? "osx-arm64" : "osx-x64";
5252
electronPackerPlatform = "mac";
5353
}
5454
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))

0 commit comments

Comments
 (0)