github electron-userland/electron-builder electron-builder@27.0.0-alpha.17

pre-releaseone hour ago

Major Changes

Patch Changes

  • Fix(nsis): an nsis-web installer started with a --package-file that does not exist aborts (exit code 2) #10684 a60ad40 — app-builder-lib
  • Fix(publish): electron-builder publish -f and the publish() / publishArtifactsWithOptions() API upload with a custom publish provider instead of failing with "Cannot read properties of null (reading 'type')" and uploading nothing for every entry of the publish list, and a custom publisher that reads the packager's app info gets the app's info, including the -v build version #10694 d731858 — electron-builder, app-builder-lib
  • Fix(publish): macros such as ${version}, ${productName} and ${env.NAME} in the root publish configuration are expanded again for the uploads of the artifacts afterAllArtifactBuild returns, as in v26, and for the files of electron-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 with afterAllArtifactBuild expands those macros at build start, so one that cannot be expanded fails the build before anything is packed. #10696 b25f1a7 — app-builder-lib
  • Fix(nsis): launch the bundled Windows makensis.exe directly instead of through makensis.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 -X values with spaces (such as -XOutFile and -XVIAddVersionKey) were split and the build failed with unterminated string parsing line at <command line>. Custom toolsets.nsis bundles that ship a makensis.cmd still run through it #10676 302a9c9 — app-builder-lib
  • Fix: the build warning for a generic publish url with 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 as 1 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> #10697 4499c68 — app-builder-lib, builder-util-runtime
  • Fix(migrate-schema): remove a leftover toolsets.linuxToolsMac (a key of the v27 prereleases, replaced by toolsets.archive) whatever its value, in static and JS/TS configs, with a notice naming toolsets.archive, and fail a build that still sets it with a message naming toolsets.archive instead of a bare unknown-property error; both link https://www.electron.build/docs/migration/v27-config-changes#toolsetslinuxtoolsmac-replaced-by-toolsetsarchive #10706 605b122 — 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

Don't miss a new electron-builder release

NewReleases is sending notifications on new releases.