Electron-builder: Signtool on programmatic usage(question)

Created on 12 Dec 2017  路  9Comments  路  Source: electron-userland/electron-builder

Hi,

I have a question. How can you assign this type of signtool programmatically? Can you give me an elaborate example? I am currently using 'NSIS' for windows.

SignTool=signname"{#ProjectHomeBase}\build\signtool.exe" sign /f "{#ProjectHomeBase}\build\something.pfx" /t http://timestamp.verisign.com/scripts/timstamp.dll /p 12345678 $f

question

All 9 comments

What problem do you have? Of course, you can set sign to custom function (see https://www.electron.build/configuration/win), but it is advanced usage. I think, it is not required for you.

I already have a signtool.exe but I don't know where to put it on code. Is it like 'signingHashAlgorithms: SignTool=signname'?

electron-builder does it for you. For what do you need to provide your own version?

Oh. Ok I see. I just taught that signing must be done separately. So to clarify? Signing is already being done by electron-builder and so the setup.exe on your folder is already signed?

Unlike other tools, electron-builder is a complete solution. Just provide cert (https://www.electron.build/code-signing) and that's all.

@develar Is the certificateFile in win responsible for showing the digital signature tab on the .exe file?

Yes. You can use or env to specify cert, or this option.

May I ask how can you set it up in the env?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lbssousa picture lbssousa  路  3Comments

ccorcos picture ccorcos  路  3Comments

jhg picture jhg  路  3Comments

philcockfield picture philcockfield  路  3Comments

antonycourtney picture antonycourtney  路  3Comments