OptionalcacheOptionalcacheThe directory that caches Electron artifact downloads.
OptionalchecksumsProvides checksums for the artifact as strings. Can be used if you already know the checksums of the Electron artifact you are downloading and want to skip the checksum file download without skipping the checksum validation.
This should be an object whose keys are the file names of the artifacts and the values are their respective SHA256 checksums.
OptionaldownloaderA custom Downloader class used to download artifacts. Defaults to the built-in FetchDownloader.
OptionaldownloadOptions passed to the downloader module.
FetchDownloaderOptions for options for the default FetchDownloader.
OptionalmirrorOptions related to specifying an artifact mirror.
OptionaltempA temporary directory for downloads. It is used before artifacts are put into cache.
the OS default temporary directory via os.tmpdir()
OptionalunsafelyWhen set to true, disables checking that the artifact download completed successfully
with the correct payload.
Controls the cache read and write behavior.
When set to either ReadOnly or Bypass, the caller is responsible for cleaning up the returned file path once they are done using it (e.g. via
fs.remove(path.dirname(pathFromElectronGet))).When set to either WriteOnly or ReadWrite (the default), the caller should not move or delete the file path that is returned as the path points directly to the disk cache.