Skip to content

Why sign.js is called 8 times? #3995

@universeroc

Description

@universeroc

electron-builder: 20.43.0

electron-updater: 4.0.6

target: Windows 10

The part of package.json

"win": { "target": "nsis", "sign": "./sign.js" }

I'm using the code from https://www.electron.build/tutorials/code-signing-windows-apps-on-unix.html#integrate-signing-with-electron-builder

and the only diff is:

console.log('sign it!')

The full code of sign.js is:

exports.default = async function(configuration) { // do not include passwords or other sensitive data in the file // rather create environment variables with sensitive data const CERTIFICATE_NAME = 'WINDOWS_SIGN_CERTIFICATE_NAME'; const TOKEN_PASSWORD = 'WINDOWS_SIGN_TOKEN_PASSWORD'; console.log('sign it!') require("child_process").execSync(echo ${CERTIFICATE_NAME} ${TOKEN_PASSWORD}, { stdio: "inherit" } ); };

And then I run the command line: yarn dist

Then I get the "sign it" eight times!

I don't know why and how to write the specific sign.js to sign my binary files.

Please help me, thank you in advance! :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions