Repository navigation
electron-builder@27.0.0-alpha.17
Pre-release
Pre-release
·
2 commits
to master
since this release
Immutable
release. Only release title and notes can be modified.
Major Changes
- Fix(publish)!:
electron-builder publishexits with code 1 when publishing fails, so a CI step no longer passes although publishing failed, while thepublish()andpublishArtifactsWithOptions()API functions still resolvenulland leave the exit code of their host process alone. See https://www.electron.build/docs/migration/v27-build-changes#publish-command-exits-with-code-1#106959983a2b
Patch Changes
- Fix(nsis): an
nsis-webinstaller started with a--package-filethat does not exist aborts (exit code 2)#10684a60ad40—app-builder-lib - Fix(publish):
electron-builder publish -fand thepublish()/publishArtifactsWithOptions()API upload with acustompublish provider instead of failing with "Cannot read properties of null (reading 'type')" and uploading nothing for every entry of thepublishlist, and a custom publisher that reads the packager's app info gets the app's info, including the-vbuild version#10694d731858—electron-builder,app-builder-lib - Fix(publish): macros such as
${version},${productName}and${env.NAME}in the rootpublishconfiguration are expanded again for the uploads of the artifactsafterAllArtifactBuildreturns, as in v26, and for the files ofelectron-builder publish -f, and${os}, which only a platform defines, stays as written there, with a warning, instead of failing the build; the 27.0.0 alphas passed every macro to the publisher unexpanded. A publishing build withafterAllArtifactBuildexpands those macros at build start, so one that cannot be expanded fails the build before anything is packed.#10696b25f1a7—app-builder-lib - Fix(nsis): launch the bundled Windows
makensis.exedirectly instead of throughmakensis.cmd. cross-spawn 7.1.0+ (the GHSA-ghv9-86vm-4v8m fix) doubles the quotes inside arguments passed to batch files, and makensis reads each doubled quote as a literal quote that also ends the quoted text, so quoted-Xvalues with spaces (such as-XOutFileand-XVIAddVersionKey) were split and the build failed withunterminated string parsing line at <command line>. Customtoolsets.nsisbundles that ship amakensis.cmdstill run through it#10676302a9c9—app-builder-lib - Fix: the build warning for a
genericpublishurlwith a query string and electron-updater's warning for a download that does not get the feed query name only the query parameters that have a value: a part without a name, or with nothing but=after its first=(a bare token such as?token,?=token,?YWI=or?dGVzdA==, or a name with an empty value such as?token=), is counted as1 value without a name. The effective configuration (builder-effective-config.yaml, the debug output) writes a bare token, with or without base64 padding, and a name with an empty value as<redacted>#106974499c68—app-builder-lib,builder-util-runtime - Fix(migrate-schema): remove a leftover
toolsets.linuxToolsMac(a key of the v27 prereleases, replaced bytoolsets.archive) whatever its value, in static and JS/TS configs, with a notice namingtoolsets.archive, and fail a build that still sets it with a message namingtoolsets.archiveinstead of a bare unknown-property error; both link https://www.electron.build/docs/migration/v27-config-changes#toolsetslinuxtoolsmac-replaced-by-toolsetsarchive#10706605b122—electron-builder,app-builder-lib
Full Changelog: https://github.com/electron-userland/electron-builder/compare/electron-builder@27.0.0-alpha.16...electron-builder@27.0.0-alpha.17