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
Copy file name to clipboardExpand all lines: docs/Options.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,6 @@ In the development `package.json` custom `build` field can be specified to custo
25
25
As you can see, you need to customize MacOS options only if you want to provide custom `x, y`.
26
26
Don't customize paths to background and icon, — just follow conventions.
27
27
28
-
Here documented only `electron-builder` specific options:
29
-
30
28
<!-- do not edit. start of generated block -->
31
29
32
30
<aname="AppMetadata"></a>
@@ -50,7 +48,7 @@ Here documented only `electron-builder` specific options:
50
48
## `.build`
51
49
| Name | Description
52
50
| --- | ---
53
-
| appId | <aname="BuildMetadata-appId"></a><p>The application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as [Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows.</p> <p>For windows only NSIS target supports it. Squirrel.Windows is not fixed yet.</p> <p>Defaults to <code>com.electron.${name}</code>. It is strongly recommended that an explicit ID be set.</p>
51
+
| appId | <aname="BuildMetadata-appId"></a><p>The application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as [Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows (NSIS target only, Squirrel.Windows not supported).</p> <p>Defaults to <code>com.electron.${name}</code>. It is strongly recommended that an explicit ID be set.</p>
54
52
| category | <aname="BuildMetadata-category"></a><p>*macOS-only.* The application category type, as shown in the Finder via *View -> Arrange by Application Category* when viewing the Applications directory.</p> <p>For example, <code>"category": "public.app-category.developer-tools"</code> will set the application category to *Developer Tools*.</p> <p>Valid values are listed in [Apple’s documentation](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW8).</p>
| asar | <aname="BuildMetadata-asar"></a><p>Whether to package the application’s source code into an archive, using [Electron’s archive format](https://github.com/electron/asar). Defaults to <code>true</code>. Reasons why you may want to disable this feature are described in [an application packaging tutorial in Electron’s documentation](http://electron.atom.io/docs/latest/tutorial/application-packaging/#limitations-on-node-api/).</p> <p>Or you can pass object of any asar options.</p> <p>Node modules, that must be unpacked, will be detected automatically, you don’t need to explicitly set <code>asar.unpackDir</code> - please file issue if this doesn’t work.</p>
@@ -136,7 +134,7 @@ See [NSIS target notes](https://github.com/electron-userland/electron-builder/wi
136
134
| Name | Description
137
135
| --- | ---
138
136
| oneClick | <aname="NsisOptions-oneClick"></a>One-click installation. Defaults to `true`.
139
-
| perMachine | <aname="NsisOptions-perMachine"></a>Install per all users (per-machine). Defaults to `false`.
137
+
| perMachine | <aname="NsisOptions-perMachine"></a><p>Defaults to <code>false</code>.</p> <p>If <code>oneClick</code> is <code>true</code> (default): Install per all users (per-machine).</p> <p>If <code>oneClick</code> is <code>false</code>: no install mode installer page (choice per-machine or per-user), always install per-machine.</p>
140
138
| allowElevation | <aname="NsisOptions-allowElevation"></a>*boring installer only.* Allow requesting for elevation. If false, user will have to restart installer with elevated permissions. Defaults to `true`.
141
139
| runAfterFinish | <aname="NsisOptions-runAfterFinish"></a>*one-click installer only.* Run application after finish. Defaults to `true`.
142
140
| guid | <aname="NsisOptions-guid"></a>See [GUID vs Application Name](https://github.com/electron-userland/electron-builder/wiki/NSIS#guid-vs-application-name).
[CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as
88
-
[Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows.
89
-
90
-
For windows only NSIS target supports it. Squirrel.Windows is not fixed yet.
88
+
[Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows (NSIS target only, Squirrel.Windows not supported).
91
89
92
90
Defaults to `com.electron.${name}`. It is strongly recommended that an explicit ID be set.
!define MULTIUSER_INIT_TEXT_POWERREQUIRED "$(^Caption) requires at least Power User privileges."
41
-
!endif
49
+
!ifndef MULTIUSER_INIT_TEXT_POWERREQUIRED
50
+
!define MULTIUSER_INIT_TEXT_POWERREQUIRED "$(^Caption) requires at least Power User privileges."
51
+
!endif
42
52
43
-
!ifndef MULTIUSER_INIT_TEXT_ALLUSERSNOTPOSSIBLE
44
-
!define MULTIUSER_INIT_TEXT_ALLUSERSNOTPOSSIBLE "Your user account does not have sufficient privileges to install $(^Name) for all users of this computer."
45
-
!endif
53
+
!ifndef MULTIUSER_INIT_TEXT_ALLUSERSNOTPOSSIBLE
54
+
!define MULTIUSER_INIT_TEXT_ALLUSERSNOTPOSSIBLE "Your user account does not have sufficient privileges to install $(^Name) for all users of this computer."
55
+
!endif
46
56
47
-
# checks registry for previous installation path (both for upgrading, reinstall, or uninstall)
48
-
StrCpy$hasPerMachineInstallation"0"
49
-
StrCpy$hasPerUserInstallation"0"
57
+
# checks registry for previous installation path (both for upgrading, reinstall, or uninstall)
58
+
StrCpy$hasPerMachineInstallation"0"
59
+
StrCpy$hasPerUserInstallation"0"
50
60
51
-
# set installation mode to setting from a previous installation
0 commit comments