electron-packager
Advanced tools
Comparing version 15.5.0 to 15.5.1
@@ -7,2 +7,11 @@ # Electron Packager: Changes by Version | ||
## [15.5.1] - 2022-04-20 | ||
[15.5.1]: https://github.com/electron/electron-packager/compare/v15.5.0...v15.5.1 | ||
### Fixed | ||
* Univeral builds single-arch components are now built sequentially instead of in parallel to fix race conditions in hooks | ||
* The typescript definition for HookFunction now correctly allows an error to be passed | ||
## [15.5.0] - 2022-04-19 | ||
@@ -9,0 +18,0 @@ |
{ | ||
"name": "electron-packager", | ||
"version": "15.5.0", | ||
"version": "15.5.1", | ||
"description": "Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -120,3 +120,3 @@ // Originally based on the type definitions for electron-packager 14.0 | ||
arch: TargetArch, | ||
callback: () => void | ||
callback: (err?: Error | null) => void | ||
) => void; | ||
@@ -123,0 +123,0 @@ |
@@ -29,3 +29,5 @@ 'use strict' | ||
const [x64AppPath, arm64AppPath] = await Promise.all(['x64', 'arm64'].map((tempArch) => { | ||
const tempPackages = {} | ||
for (const tempArch of ['x64', 'arm64']) { | ||
const tempOpts = { | ||
@@ -44,5 +46,8 @@ ...comboOpts, | ||
return packageForPlatformAndArchWithOpts(tempOpts, tempDownloadOpts) | ||
})) | ||
tempPackages[tempArch] = await packageForPlatformAndArchWithOpts(tempOpts, tempDownloadOpts) | ||
} | ||
const x64AppPath = tempPackages.x64 | ||
const arm64AppPath = tempPackages.arm64 | ||
common.info(`Stitching universal app for platform ${comboOpts.platform}`, comboOpts.quiet) | ||
@@ -49,0 +54,0 @@ |
138239
2202