mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-23 07:25:16 +00:00
Add fix for Apple Silicon to build command
This commit is contained in:
@@ -170,7 +170,13 @@ namespace ElectronNET.CLI.Commands
|
||||
|
||||
Console.WriteLine("Executing electron magic in this directory: " + buildPath);
|
||||
|
||||
|
||||
string electronArch = "x64";
|
||||
//Somewhat janky fix for Apple Silicon:
|
||||
if (platformInfo.NetCorePublishRid == "osx-arm64")
|
||||
{
|
||||
electronArch = "arm64";
|
||||
}
|
||||
if (parser.Arguments.ContainsKey(_paramElectronArch))
|
||||
{
|
||||
electronArch = parser.Arguments[_paramElectronArch][0];
|
||||
|
||||
Reference in New Issue
Block a user