electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.59k stars 1.73k forks source link

Code signing flexibility for multiple Windows targets #8009

Open smasuda-isi opened 7 months ago

smasuda-isi commented 7 months ago

Is there any way to designate specific Windows targets to sign? I want to build an unsigned zip for easy testing and a signed AppX for deployment.

The only way I can think of to do this currently is to have 2 separate electron-builder config files.

mmaietta commented 7 months ago

I think you can use nsis.signAndEditExecutable: false and appx.signAndEditExecutable: true in your config? https://www.electron.build/configuration/win