forked from worldcoinproject/worldcoin-wallet-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
how-to-codesign-on-windows.txt
24 lines (20 loc) · 1.19 KB
/
how-to-codesign-on-windows.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This how-to describes how to code sign the Windows installer.
1) Build all the installers on your main build machine (assumed not to be a Windows machine).
2) Prepare a directory on a USB drive containing:
+ the windows installer file e.g. worldcoin-wallet-0.5.14-windows-setup.exe
+ the encrypted private key + object signing certificate PFX file.
(James-Burton-object-pfx.p12). This is not under source control for security reasons.
+ we will use KSign to do the signing so you might want a copy of the KSign
installer, ksign-installer.exe, on your USB.
3) Transfer the USB to your Windows signing machine.
4) Install KSign if necessary.
5) Start KSign. add the following entries:
File to sign: worldcoin-wallet-0.5.14-windows-setup.exe
Description: WorldcoinWallet - lightweight Worldcoin wallet
Enter the password to decrypt the PFX file.
6) You should see a success message.
7) Test the installer by double clicking on it.
You should see a User Account Control dialog signed by "James Burton".
8) Transfer the signed installer back to your main build machine.
9) Put it in the releases directory.
Remember: you need to do the PGP signing and SHA256 hashes AFTER code signing.