Update DEVELOPER.md

pull/352/head
NextTurn 2018-12-07 00:00:00 +08:00
parent 6e9d25a7b5
commit 6918cc2823
No known key found for this signature in database
GPG Key ID: 17A0D50ADDE1A0C4
3 changed files with 7 additions and 12 deletions

View File

@ -3,10 +3,10 @@ WinSW Developer Information
### Build Environment
* IDE: [Visual Studio Community 2013](http://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx) (free for open-source projects)
* `winsw_key.snk` should be available in the project's root in order to build the executable
* You can generate the certificate in "Project Settings/Signing"
* The certificate is in <code>.gitignore</code> list. Please do not add it to the repository
* IDE: [Visual Studio Community 2019](https://visualstudio.microsoft.com/vs/) (free for open-source projects)
* *winsw_key.snk* should be available in the project's root in order to build the executable
* You can generate the certificate by running *generate-key.ps1*
* The certificate is in *.gitignore* list. Please do not add it to the repository
### Testing

3
generate-key.ps1 Normal file
View File

@ -0,0 +1,3 @@
$files = Get-ChildItem -Path 'C:\Program Files (x86)\Microsoft SDKs\Windows\' -Filter 'sn.exe' -Recurse | Select-Object -Property FullName
$files
& $files[0].FullName -k winsw_key.snk

View File

@ -1,8 +0,0 @@
#!/bin/bash -ex
export "PATH=$PATH:/cygdrive/c/Program Files/Windows Kits/8.1/bin/x86"
for f in Release Debug;
do
signtool sign /f winsw-key.snk /t http://timestamp.verisign.com/scripts/timestamp.dll bin/$f/winsw.exe
signtool verify /v /pa bin/$f/winsw.exe
done
echo success