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
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ Most of the options accept `null` — for example, to explicitly set that DMG ic
37
37
*[mac macOS Specific Options](#MacOptions)
38
38
*[mas MAS (Mac Application Store) Specific Options](#MasBuildOptions)
39
39
*[nsis](#NsisOptions)
40
+
*[nsis Web Installer Specific Options](#NsisWebOptions)
40
41
*[pkg macOS Product Archive Options](#PkgOptions)
41
42
*[protocols URL Protocol Schemes](#Protocol)
42
43
*[squirrelWindows](#SquirrelWindowsOptions)
@@ -191,6 +192,13 @@ See [NSIS target notes](https://github.com/electron-userland/electron-builder/wi
191
192
| menuCategory | <aname="NsisOptions-menuCategory"></a>Whether to create submenu for start menu shortcut and program files directory. Defaults to `false`. If `true`, company name will be used. Or string value.
192
193
| artifactName | <aname="NsisOptions-artifactName"></a>The [artifact file name pattern](https://github.com/electron-userland/electron-builder/wiki/Options#artifact-file-name-pattern). Defaults to `${productName} Setup ${version}.${ext}`.
193
194
195
+
<aname="NsisWebOptions"></a>
196
+
### `nsis` Web Installer Specific Options
197
+
| Name | Description
198
+
| --- | ---
199
+
| appPackageUrl | <aname="NsisWebOptions-appPackageUrl"></a><p>The application package download URL. Optional — by default computed using publish configuration.</p> <p>URL like <code>https://example.com/download/latest</code> allows web installer to be version independent (installer will download latest application package).</p> <p>Custom <code>X-Arch</code> http header is set to <code>32</code> or <code>64</code>.</p>
200
+
| artifactName | <aname="NsisWebOptions-artifactName"></a>The [artifact file name pattern](https://github.com/electron-userland/electron-builder/wiki/Options#artifact-file-name-pattern). Defaults to `${productName} Web Setup ${version}.${ext}`.
201
+
194
202
<aname="PkgOptions"></a>
195
203
### `pkg` macOS Product Archive Options
196
204
| Name | Description
@@ -214,7 +222,7 @@ Please note — on macOS [you need to register an `open-url` event handler](http
214
222
<aname="SquirrelWindowsOptions"></a>
215
223
### `squirrelWindows`
216
224
217
-
To use Squirrel.Windows please install `electron-builder-squirrel-windows` dependency.
225
+
To use Squirrel.Windows please install `electron-builder-squirrel-windows` dependency. Squirrel.Windows target is maintained, but deprecated. Please use `nsis` instead.
| path | <aname="S3Options-path"></a>The directory path. Defaults to `/`.
101
+
| channel | <aname="S3Options-channel"></a>The channel. Defaults to `latest`.
102
+
| acl | <aname="S3Options-acl"></a>The ACL. Defaults to `public-read`.
103
+
| storageClass | <aname="S3Options-storageClass"></a>The type of storage to use for the object. One of `STANDARD`, `REDUCED_REDUNDANCY`, `STANDARD_IA`. Defaults to `STANDARD`.
104
+
92
105
<aname="BintrayOptions"></a>
93
106
### `publish` Bintray
94
107
| Name | Description
@@ -98,10 +111,10 @@ Amazon S3 — `https` must be used, so, if you use direct Amazon S3 endpoints, f
98
111
| user | <aname="BintrayOptions-user"></a>The Bintray user account. Used in cases where the owner is an organization.
99
112
100
113
<aname="GenericServerOptions"></a>
101
-
### `publish` Generic (any https server)
114
+
### `publish` Generic (any HTTP(S) server)
102
115
| Name | Description
103
116
| --- | ---
104
-
| **url** | <aname="GenericServerOptions-url"></a>The base url. e.g. `https://s3.amazonaws.com/bucket_name`. You can use `${os}` (expanded to `mac`, `linux` or `win` according to target platform) and `${arch}` macros.
117
+
| **url** | <aname="GenericServerOptions-url"></a>The base url. e.g. `https://bucket_name.s3.amazonaws.com`. You can use `${os}` (expanded to `mac`, `linux` or `win` according to target platform) and `${arch}` macros.
105
118
| channel | <aname="GenericServerOptions-channel"></a>The channel. Defaults to `latest`.
106
119
107
120
<aname="GithubOptions"></a>
@@ -113,17 +126,4 @@ Amazon S3 — `https` must be used, so, if you use direct Amazon S3 endpoints, f
113
126
| host | <aname="GithubOptions-host"></a>The host (including the port if need). Defaults to `github.com`.
114
127
| protocol | <aname="GithubOptions-protocol"></a><p>The protocol, one of <code>https</code> or <code>http</code>. Defaults to <code>https</code>.</p> <p>GitHub Publisher supports only <code>https</code>.</p>
115
128
116
-
<aname="S3Options"></a>
117
-
### `publish` S3
118
-
119
-
[Getting your credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-your-credentials.html).
| path | <aname="S3Options-path"></a>The directory path. Defaults to `/`.
125
-
| channel | <aname="S3Options-channel"></a>The channel. Defaults to `latest`.
126
-
| acl | <aname="S3Options-acl"></a>The ACL. Defaults to `public-read`.
127
-
| storageClass | <aname="S3Options-storageClass"></a>The type of storage to use for the object. One of `STANDARD`, `REDUCED_REDUNDANCY`, `STANDARD_IA`. Defaults to `STANDARD`.
The base url. e.g. `https://s3.amazonaws.com/bucket_name`. You can use `${os}` (expanded to `mac`, `linux` or `win` according to target platform) and `${arch}` macros.
37
+
The base url. e.g. `https://bucket_name.s3.amazonaws.com`. You can use `${os}` (expanded to `mac`, `linux` or `win` according to target platform) and `${arch}` macros.
The application package download URL. Optional — by default computed using publish configuration.
158
161
159
162
URL like `https://example.com/download/latest` allows web installer to be version independent (installer will download latest application package).
163
+
164
+
Custom `X-Arch` http header is set to `32` or `64`.
160
165
*/
161
166
readonlyappPackageUrl?: string|null
167
+
168
+
/*
169
+
The [artifact file name pattern](https://github.com/electron-userland/electron-builder/wiki/Options#artifact-file-name-pattern). Defaults to `${productName} Web Setup ${version}.${ext}`.
170
+
*/
171
+
readonlyartifactName?: string|null
162
172
}
163
173
164
174
/*
165
175
### `squirrelWindows`
166
176
167
-
To use Squirrel.Windows please install `electron-builder-squirrel-windows` dependency.
177
+
To use Squirrel.Windows please install `electron-builder-squirrel-windows` dependency. Squirrel.Windows target is maintained, but deprecated. Please use `nsis` instead.
messageboxMB_RETRYCANCEL|MB_ICONEXCLAMATION"Unable to download application package (status: $0).$\r$\n$\r$\nPlease check you Internet connection and retry."IDRETRY download
184
+
MessageboxMB_RETRYCANCEL|MB_ICONEXCLAMATION"Unable to download application package from $packageUrl (status: $0).$\r$\n$\r$\nPlease check you Internet connection and retry."IDRETRY download
0 commit comments