Interface WindowsSignOptions

See the documentation for @electron/windows-sign for details.

interface WindowsSignOptions {
    automaticallySelectCertificate?: boolean;
    certificateFile?: string;
    certificatePassword?: string;
    continueOnError?: boolean;
    debug?: boolean;
    description?: string;
    hookFunction?: HookFunction;
    hookModulePath?: string;
    signJavaScript?: boolean;
    signToolPath?: string;
    signWithParams?: string | string[];
    timestampServer?: string;
    website?: string;
}

Hierarchy

  • Omit<WindowsInternalSignOptions, "appDirectory">
    • WindowsSignOptions

Properties

automaticallySelectCertificate?: boolean

Automatically selects the best signing certificate according to SignTool. Will be passed to signtool.exe as /a.

Default Value

true
certificateFile?: string

Path to a .pfx code signing certificate. Will use process.env.WINDOWS_CERTIFICATE_FILE if this option is not provided.

certificatePassword?: string

Password to certificateFile. If you don't provide this, you need to provide the signWithParams option. Will use process.env.WINDOWS_CERTIFICATE_PASSWORD if this option is not provided.

continueOnError?: boolean
debug?: boolean

Enables debug logging.

Default Value

false
description?: string

Description of the signed content. Will be passed to signtool.exe as /d.

hookFunction?: HookFunction

A hook function called for each file that needs to be signed. Use this for full control over your app's signing logic. @electron/windows-sign will not attempt to sign with SignTool if a custom hook is detected.

hookModulePath?: string

A path to a JavaScript file, exporting a single function that will be called for each file that needs to be signed. Use this for full control over your app's signing logic. @electron/windows-sign will not attempt to sign with SignTool if a custom hook is detected.

signJavaScript?: boolean

Whether or not to sign JavaScript files.

Default Value

false
signToolPath?: string

Path to the signtool.exe used to sign. Will use vendor/signtool.exe if not provided.

signWithParams?: string | string[]

Additional parameters to pass to signtool.exe.

timestampServer?: string

Path to a timestamp server. Will use process.env.WINDOWS_TIMESTAMP_SERVER if this option is not provided.

Default Value

http://timestamp.digicert.com
website?: string

URL for the expanded description of the signed content. Will be passed to signtool.exe as /du.