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
@@ -82,6 +85,7 @@ Don't customize paths to background and icon, — just follow conventions.
82
85
| npmSkipBuildFromSource | <aname="BuildMetadata-npmSkipBuildFromSource"></a>*two package.json structure only* Whether to omit using [--build-from-source](https://github.com/mapbox/node-pre-gyp#options) flag when installing app native deps. Defaults to `false`.
83
86
| nodeGypRebuild | <aname="BuildMetadata-nodeGypRebuild"></a>Whether to execute `node-gyp rebuild` before starting to package the app. Defaults to `false`.
84
87
| electronDist | <aname="BuildMetadata-electronDist"></a>The path to custom Electron build (e.g. `~/electron/out/R`). Only macOS supported, file issue if need for Linux or Windows.
| packageCategory | <aname="LinuxBuildOptions-packageCategory"></a>The [package category](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Section). Not applicable for AppImage.
136
140
| description | <aname="LinuxBuildOptions-description"></a>As [description](#AppMetadata-description) from application package.json, but allows you to specify different for Linux.
137
-
| target | <aname="LinuxBuildOptions-target"></a><p>Target package type: list of <code>AppImage</code>, <code>deb</code>, <code>rpm</code>, <code>freebsd</code>, <code>pacman</code>, <code>p5p</code>, <code>apk</code>, <code>7z</code>, <code>zip</code>, <code>tar.xz</code>, <code>tar.lz</code>, <code>tar.gz</code>, <code>tar.bz2</code>. Defaults to <code>AppImage</code>.</p> <p>The most effective [xz](https://en.wikipedia.org/wiki/Xz) compression format used by default.</p> <p>Only <code>deb</code> and <code>AppImage</code> is tested. Feel free to file issues for <code>rpm</code> and other package formats.</p>
141
+
| target | <aname="LinuxBuildOptions-target"></a><p>Target package type: list of <code>AppImage</code>, <code>deb</code>, <code>rpm</code>, <code>freebsd</code>, <code>pacman</code>, <code>p5p</code>, <code>apk</code>, <code>7z</code>, <code>zip</code>, <code>tar.xz</code>, <code>tar.lz</code>, <code>tar.gz</code>, <code>tar.bz2</code>, <code>dir</code>. Defaults to <code>AppImage</code>.</p> <p>The most effective [xz](https://en.wikipedia.org/wiki/Xz) compression format used by default.</p> <p>Only <code>deb</code> and <code>AppImage</code> is tested. Feel free to file issues for <code>rpm</code> and other package formats.</p>
138
142
| synopsis | <aname="LinuxBuildOptions-synopsis"></a>*deb-only.* The [short description](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description).
139
143
| maintainer | <aname="LinuxBuildOptions-maintainer"></a>The maintainer. Defaults to [author](#AppMetadata-author).
140
144
| vendor | <aname="LinuxBuildOptions-vendor"></a>The vendor. Defaults to [author](#AppMetadata-author).
@@ -150,7 +154,7 @@ MacOS specific build options.
150
154
| Name | Description
151
155
| --- | ---
152
156
| category | <aname="MacOptions-category"></a><p>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>
153
-
| target | <aname="MacOptions-target"></a>Target package type: list of `default`, `dmg`, `mas`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`. Defaults to `default` (dmg and zip for Squirrel.Mac).
157
+
| target | <aname="MacOptions-target"></a>Target package type: list of `default`, `dmg`, `mas`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `default` (dmg and zip for Squirrel.Mac).
154
158
| identity | <aname="MacOptions-identity"></a><p>The name of certificate to use when signing. Consider using environment variables [CSC_LINK or CSC_NAME](https://github.com/electron-userland/electron-builder/wiki/Code-Signing). MAS installer identity is specified in the [.build.mas](#MasBuildOptions-identity).</p>
155
159
| icon | <aname="MacOptions-icon"></a>The path to application icon. Defaults to `build/icon.icns` (consider using this convention instead of complicating your configuration).
156
160
| entitlements | <aname="MacOptions-entitlements"></a><p>The path to entitlements file for signing the app. <code>build/entitlements.mac.plist</code> will be used if exists (it is a recommended way to set). MAS entitlements is specified in the [.build.mas](#MasBuildOptions-entitlements).</p>
@@ -198,6 +202,32 @@ macOS only.
198
202
| role | <aname="Protocol-role"></a>*macOS-only* The app’s role with respect to the type. The value can be `Editor`, `Viewer`, `Shell`, or `None`. Defaults to `Editor`.
199
203
| **schemes** | <aname="Protocol-schemes"></a>The schemes. e.g. `["irc", "ircs"]`.
200
204
205
+
<aname="PublishConfiguration"></a>
206
+
### `.build.publish`
207
+
208
+
Please see [Publishing Artifacts](https://github.com/electron-userland/electron-builder/wiki/Publishing-Artifacts).
209
+
210
+
Array of option objects.
211
+
212
+
| Name | Description
213
+
| --- | ---
214
+
| **provider** | <aname="PublishConfiguration-provider"></a>The provider, one of `github`, `bintray`.
| vPrefixedTagName | <aname="GithubOptions-vPrefixedTagName"></a>Whether to use `v`-prefixed tag name. Defaults to `true`.
230
+
201
231
<aname="SquirrelWindowsOptions"></a>
202
232
### `.build.squirrelWindows`
203
233
| Name | Description
@@ -216,7 +246,7 @@ Windows specific build options.
216
246
217
247
| Name | Description
218
248
| --- | ---
219
-
| target | <aname="WinBuildOptions-target"></a>Target package type: list of `nsis`, `squirrel`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`. Defaults to `squirrel`.
249
+
| target | <aname="WinBuildOptions-target"></a>Target package type: list of `nsis`, `squirrel`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `squirrel`.
220
250
| signingHashAlgorithms | <aname="WinBuildOptions-signingHashAlgorithms"></a>Array of signing algorithms used. Defaults to `['sha1', 'sha256']`
221
251
| icon | <aname="WinBuildOptions-icon"></a>The path to application icon. Defaults to `build/icon.ico` (consider using this convention instead of complicating your configuration).
222
252
| legalTrademarks | <aname="WinBuildOptions-legalTrademarks"></a>The trademarks and registered trademarks.
Copy file name to clipboardExpand all lines: docs/Publishing Artifacts.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
Travis and AppVeyor support publishing artifacts. But it requires additional configuration. For each CI (since AppVeyor can build only Windows and Travis only MacOS / Linux).
1
+
Travis and AppVeyor support publishing artifacts. But it requires additional configuration. For each CI (since AppVeyor can build only Windows and Travis only macOS / Linux).
2
2
3
3
`electron-builder` allows you to just add `GH_TOKEN` environment variable and that's all.
4
4
5
-
Currently, only GitHub Releases is supported.
5
+
Currently, [GitHub Releases](https://help.github.com/articles/about-releases/) and [Bintray](https://bintray.com) are supported.
6
6
7
-
`--publish` option values:
7
+
CLI `--publish` option values:
8
8
9
9
| Value | Description
10
10
| -------------- | -----------
@@ -38,9 +38,19 @@ But please consider using automatic rules instead of explicitly specifying `publ
38
38
```
39
39
and if you run `npm run release`, a release will be drafted (if doesn't already exist) and artifacts published.
40
40
41
-
# GitHub Repository
41
+
# GitHub Repository and Bintray Package
42
42
43
-
No option to specify GitHub repository, detected automatically using:
43
+
Detected automatically using:
44
44
*[repository](https://docs.npmjs.com/files/package.json#repository) in the application or development `package.json`,
45
45
* if not set, env `TRAVIS_REPO_SLUG` or `APPVEYOR_ACCOUNT_NAME`/`APPVEYOR_PROJECT_NAME` or `CIRCLE_PROJECT_USERNAME`/`CIRCLE_PROJECT_REPONAME`,
46
46
* if no env, from `.git/config` origin url.
47
+
48
+
# Publish Options
49
+
50
+
[build.publish](https://github.com/electron-userland/electron-builder/wiki/Options#PublishConfiguration) can be specified in [build](https://github.com/electron-userland/electron-builder/wiki/Options#build) or any platform- or target- specific options.
thrownewError(`Please specify 'repository' in the dev package.json ('${packager.devPackageFile}')`)
314
+
thrownewError(`Please specify "repository" in the dev package.json ('${packager.devPackageFile}').\nPlease see https://github.com/electron-userland/electron-builder/wiki/Publishing-Artifacts`)
Target package type: list of `default`, `dmg`, `mas`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`. Defaults to `default` (dmg and zip for Squirrel.Mac).
19
+
Target package type: list of `default`, `dmg`, `mas`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `default` (dmg and zip for Squirrel.Mac).
0 commit comments