You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 672ff6c
Browse filesBrowse the repository at this point in the historyBrowse files
`Title` is the product name of the application. It is used for the window title, the installer, the macOS app bundle and the Linux desktop entry, and it may contain spaces and other characters that are awkward in a file name.
40
+
41
+
`ElectronExecutableName` controls the name of the executable inside the package (electron-builder's `executableName`). When it is not set, it defaults to the following behavior:
42
+
43
+
| Target | Default |
44
+
| --- | --- |
45
+
| Windows |`$(Title)`|
46
+
| Linux / macOS |`$(ElectronPackageId)`|
47
+
48
+
So to ship a product called `My Great App` with a `mygreatapp` binary on every platform:
> `ElectronExecutable` is a separate, advanced setting: it is the binary Electron.NET launches when the .NET app starts first. It defaults to `ElectronExecutableName` and only needs to be changed when the package contains a launcher stub (for example added by an electron-builder hook) that should be started instead of the Electron binary.
59
+
36
60
### Custom Packaging Layout
37
61
38
62
`ElectronRootDir` tells the .NET app where to find the Electron binary when it is started first (DotNet-First startup of a packaged app). The path is resolved relative to the directory of the .NET executable; absolute paths are used as-is.
@@ -86,11 +110,17 @@ Since electron builder still expects a `package.json` file to exist, ElectronNET
Copy file name to clipboardExpand all lines: src/ElectronNET/build/ElectronNETRules.Project.xaml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -553,6 +553,12 @@
553
553
Category="General">
554
554
</StringProperty>
555
555
556
+
<StringPropertyName="ElectronExecutableName"
557
+
DisplayName="Executable Name"
558
+
Description="Name of the executable inside the package, without extension. Defaults to the title on Windows and to the package id on Linux and macOS"
559
+
Category="General">
560
+
</StringProperty>
561
+
556
562
<StringPropertyName="ElectronRootDir"
557
563
DisplayName="Electron Root Directory"
558
564
Description="Location of the Electron binary relative to the .NET application directory of a packaged app. Default: ../.. (the .NET app lives in resources/bin)"
0 commit comments