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: README.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,6 @@ _Note: Platform specific `7zip-bin-*` packages are `optionalDependencies`, which
19
19
20
20
Real project example — [onshape-desktop-shell](https://github.com/develar/onshape-desktop-shell).
21
21
22
-
Consider to use `nsis` target for Windows ([auto-update](https://github.com/electron-userland/electron-builder/issues/529) will be implemented this month) for new projects.
23
-
24
22
# Configuration
25
23
26
24
See [options](https://github.com/electron-userland/electron-builder/wiki/Options) for a full reference but consider following the simple guide outlined below first.
Copy file name to clipboardExpand all lines: docs/Options.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,9 +82,9 @@ Don't customize paths to background and icon, — just follow conventions.
82
82
| linux | <aname="BuildMetadata-linux"></a>See [.build.linux](#LinuxBuildOptions).
83
83
| compression | <aname="BuildMetadata-compression"></a>The compression level, one of `store`, `normal`, `maximum` (default: `normal`). If you want to rapidly test build, `store` can reduce build time significantly.
84
84
| afterPack | <aname="BuildMetadata-afterPack"></a>*programmatic API only* The function to be run after pack (but before pack into distributable format and sign). Promise must be returned.
85
-
| npmRebuild | <aname="BuildMetadata-npmRebuild"></a>*two package.json structure only*Whether to [rebuild](https://docs.npmjs.com/cli/rebuild) native dependencies (`npm rebuild`) before starting to package the app. Defaults to `true`.
86
-
| 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`.
87
-
| npmArgs | <aname="BuildMetadata-npmArgs"></a>*two package.json structure only*Additional command line arguments to use when installing app native deps. Defaults to `null`.
85
+
| npmRebuild | <aname="BuildMetadata-npmRebuild"></a>Whether to [rebuild](https://docs.npmjs.com/cli/rebuild) native dependencies (`npm rebuild`) before starting to package the app. Defaults to `true`.
86
+
| npmSkipBuildFromSource | <aname="BuildMetadata-npmSkipBuildFromSource"></a>Whether to omit using [--build-from-source](https://github.com/mapbox/node-pre-gyp#options) flag when installing app native deps. Defaults to `false`.
87
+
| npmArgs | <aname="BuildMetadata-npmArgs"></a>Additional command line arguments to use when installing app native deps. Defaults to `null`.
88
88
| nodeGypRebuild | <aname="BuildMetadata-nodeGypRebuild"></a>Whether to execute `node-gyp rebuild` before starting to package the app. Defaults to `false`.
89
89
| 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.
@@ -255,9 +255,9 @@ Amazon S3 — `https` must be used, so, if you use direct Amazon S3 endpoints, f
255
255
| --- | ---
256
256
| iconUrl | <aname="SquirrelWindowsOptions-iconUrl"></a><p>A URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). Defaults to the Electron icon.</p> <p>Please note — [local icon file url is not accepted](https://github.com/atom/grunt-electron-installer/issues/73), must be https/http.</p> <ul> <li>If you don’t plan to build windows installer, you can omit it.</li> <li>If your project repository is public on GitHub, it will be <code>https://github.com/${u}/${p}/blob/master/build/icon.ico?raw=true</code> by default.</li> </ul>
257
257
| loadingGif | <aname="SquirrelWindowsOptions-loadingGif"></a><p>The path to a .gif file to display during install. <code>build/install-spinner.gif</code> will be used if exists (it is a recommended way to set) (otherwise [default](https://github.com/electron/windows-installer/blob/master/resources/install-spinner.gif)).</p>
258
-
| msi | <aname="SquirrelWindowsOptions-msi"></a>*Squirrel.Windows-only.*Whether to create an MSI installer. Defaults to `false` (MSI is not created).
259
-
| remoteReleases | <aname="SquirrelWindowsOptions-remoteReleases"></a>*Squirrel.Windows-only.*A URL to your existing updates. Or `true` to automatically set to your GitHub repository. If given, these will be downloaded to create delta updates.
260
-
| remoteToken | <aname="SquirrelWindowsOptions-remoteToken"></a>*Squirrel.Windows-only.*Authentication token for remote updates
258
+
| msi | <aname="SquirrelWindowsOptions-msi"></a>Whether to create an MSI installer. Defaults to `false` (MSI is not created).
259
+
| remoteReleases | <aname="SquirrelWindowsOptions-remoteReleases"></a>A URL to your existing updates. Or `true` to automatically set to your GitHub repository. If given, these will be downloaded to create delta updates.
260
+
| remoteToken | <aname="SquirrelWindowsOptions-remoteToken"></a>Authentication token for remote updates
261
261
| useAppIdAsId | <aname="SquirrelWindowsOptions-useAppIdAsId"></a>Use `appId` to identify package instead of `name`.
262
262
263
263
<aname="WinBuildOptions"></a>
@@ -267,7 +267,7 @@ Windows specific build options.
267
267
268
268
| Name | Description
269
269
| --- | ---
270
-
| 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`.
270
+
| 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 `nsis`.
271
271
| signingHashAlgorithms | <aname="WinBuildOptions-signingHashAlgorithms"></a>Array of signing algorithms used. Defaults to `['sha1', 'sha256']`
272
272
| icon | <aname="WinBuildOptions-icon"></a>The path to application icon. Defaults to `build/icon.ico` (consider using this convention instead of complicating your configuration).
273
273
| legalTrademarks | <aname="WinBuildOptions-legalTrademarks"></a>The trademarks and registered trademarks.
*two package.json structure only* Whether to [rebuild](https://docs.npmjs.com/cli/rebuild) native dependencies (`npm rebuild`) before starting to package the app. Defaults to `true`.
198
+
Whether to [rebuild](https://docs.npmjs.com/cli/rebuild) native dependencies (`npm rebuild`) before starting to package the app. Defaults to `true`.
199
199
*/
200
200
readonlynpmRebuild?: boolean
201
201
202
202
/*
203
-
*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`.
203
+
Whether to omit using [--build-from-source](https://github.com/mapbox/node-pre-gyp#options) flag when installing app native deps. Defaults to `false`.
204
204
*/
205
205
readonlynpmSkipBuildFromSource?: boolean
206
206
207
207
/*
208
-
*two package.json structure only* Additional command line arguments to use when installing app native deps. Defaults to `null`.
208
+
Additional command line arguments to use when installing app native deps. Defaults to `null`.
*Squirrel.Windows-only.* Whether to create an MSI installer. Defaults to `false` (MSI is not created).
146
+
Whether to create an MSI installer. Defaults to `false` (MSI is not created).
147
147
*/
148
148
readonlymsi?: boolean
149
149
150
150
/*
151
-
*Squirrel.Windows-only.* A URL to your existing updates. Or `true` to automatically set to your GitHub repository. If given, these will be downloaded to create delta updates.
151
+
A URL to your existing updates. Or `true` to automatically set to your GitHub repository. If given, these will be downloaded to create delta updates.
152
152
*/
153
153
readonlyremoteReleases?: string|boolean|null
154
154
155
155
/*
156
-
*Squirrel.Windows-only.* Authentication token for remote updates
@@ -244,7 +245,6 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
244
245
promises.push(this.postInitApp(appOutDir))
245
246
awaitBluebirdPromise.all(promises)
246
247
})
247
-
awaittask(`Packaging for platform ${platformName}${Arch[arch]} using electron ${this.info.electronVersion} to ${path.relative(this.projectDir,appOutDir)}`,p)
log(`Building Squirrel.Windows for arch ${Arch[arch]}`)
24
+
23
25
if(arch===Arch.ia32){
24
26
warn("For windows consider only distributing 64-bit or use nsis target, see https://github.com/electron-userland/electron-builder/issues/359#issuecomment-214851130")
0 commit comments