Skip to content

Commit 50c3923

Browse files
committed
Fixed single instance behaviour
1 parent d9c8e04 commit 50c3923

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

src/ElectronNET.API/Runtime/StartupManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ private BuildInfo GatherBuildInfo()
167167

168168
if (isSingleInstance?.Length > 0 && bool.TryParse(isSingleInstance, out var isSingleInstanceActive) && isSingleInstanceActive)
169169
{
170-
buildInfo.ElectronSingleInstance = "yes";
170+
buildInfo.ElectronSingleInstance = "true";
171171
}
172172
else
173173
{
174-
buildInfo.ElectronSingleInstance = "no";
174+
buildInfo.ElectronSingleInstance = "false";
175175
}
176176

177177
if (httpPort?.Length > 0 && int.TryParse(httpPort, out var port))
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/refs/heads/master/packages/app-builder-lib/scheme.json",
3+
"compression": "maximum",
4+
"linux": {
5+
"target": [
6+
"tar.xz"
7+
],
8+
"executableArgs": [ "--no-sandbox" ],
9+
"artifactName": "${name}-${arch}-${version}.${ext}"
10+
},
11+
"win": {
12+
"target": [
13+
{
14+
"target": "portable",
15+
"arch": "x64"
16+
}
17+
]
18+
}
19+
}

0 commit comments

Comments
 (0)