Skip to content

Commit 066b99a

Browse files
committed
123
1 parent 5c6ec60 commit 066b99a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/ElectronNET.API/Runtime/Services/ElectronProcess/ElectronProcessActive.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.ComponentModel;
77
using System.IO;
8+
using System.Runtime.InteropServices;
89
using System.Threading.Tasks;
910

1011
/// <summary>
@@ -42,6 +43,11 @@ protected override Task StartCore()
4243
var electrondir = Path.Combine(dir.FullName, ".electron");
4344
startCmd = Path.Combine(electrondir, "node_modules", "electron", "dist", "electron");
4445

46+
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
47+
{
48+
startCmd = Path.Combine(electrondir, "node_modules", "electron", "dist", "Electron.app", "Contents", "MacOS", "Electron");
49+
}
50+
4551
args = $"main.js -unpackeddotnet --trace-warnings -electronforcedport={this.socketPort:D} " + this.extraArguments;
4652
workingDir = electrondir;
4753
}

0 commit comments

Comments
 (0)