Skip to content

19.7.2

Pre-release
Pre-release

Choose a tag to compare

@develar develar released this 22 Jun 16:54
6f8b94b

Build cache is introduced for main executable of Windows targets.

For what:

  • Differential update is coming for Windows NSIS target (it is default target for Windows). Resource editing produces the same data for the same input. But code signing change file noticeably for the same input. So, without build cache it will mean that even if nothing changed, package will be different.
  • Reduce build time. Currently, 6 seconds faster. Yes — build time is not even our goal. Because 90% of build time it is compression and nothing can be improved here. And in any case it doesn't matter — is build took 3 minutes or 4 minutes, because for development you can use or unpacked (--dir), or disable compression (--config.compression=store).

Currently, build cache is enabled only if code signing will be performed, not on CI server (because cache dir is not persisted) and if electronDist is not set (because for now custom electron dist is not validated on build). When differential update feature will be complete, build cache will be enabled on CI servers or another solution will be implemented to ensure that no extra changes if build on CI server.

Build cache can be disabled using ELECTRON_BUILDER_DISABLE_BUILD_CACHE env variable. Cache located in the dist/.cache.

Bug Fixes

  • electron-builder install-app-deps does not honor build.directories.app (6db68be), closes #1721
  • electron-updater: Auto update does not work on machines with Powershell version < 3 (5e09db4), closes #1732
  • mac: clean macOsVersion before gte comparison (#1733) (7ff95ca)
  • windows: Get-PfxCertificate hangs (6f8b94b), closes #1735

Features

  • allow to set electronDist as path to local folder with electron builds zipped (e79a28c), closes #1716