Skip to main content

Interface: AsarOptions

Properties

disableIntegrity?

optional disableIntegrity?: boolean

Whether to skip computing the ASAR integrity hash.

Normally electron-builder computes and embeds a SHA-256 hash of app.asar so that Electron can verify it at startup (when the embeddedAsarIntegrityValidation fuse is enabled). Set to true only for custom Electron forks with encrypted ASAR support where the header is not readable by standard tools.

Default

false

disableSanityCheck?

optional disableSanityCheck?: boolean

Whether to skip the ASAR package integrity sanity check.

Set to true only when using a custom Electron fork that implements its own encrypted or non-standard ASAR integrity validation that is not compatible with electron-builder's default check. Standard builds should leave this false.

Default

false

ordering?

optional ordering?: string | null

Path to a file containing the order in which files should be packed into the asar archive. Each line of the file is a relative path from the app directory. Files listed first are packed first, which can improve app startup time by front-loading frequently accessed modules. See the asar documentation for details.


smartUnpack?

optional smartUnpack?: boolean

Whether to automatically unpack executables files.

Default

true

unpack?

optional unpack?: string | string[] | null

A glob patterns relative to the app directory, which specifies which files to unpack when creating the asar archive.