mirror of
https://github.com/winsw/winsw.git
synced 2025-12-10 18:37:28 +08:00
Update DEVELOPER.md
This commit is contained in:
@@ -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
3
generate-key.ps1
Normal 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
|
||||
8
sign.sh
8
sign.sh
@@ -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
|
||||
Reference in New Issue
Block a user