From 6918cc2823ab4776707ed5c0cf1e5112f863f0a6 Mon Sep 17 00:00:00 2001 From: NextTurn <45985406+NextTurn@users.noreply.github.com> Date: Fri, 7 Dec 2018 00:00:00 +0800 Subject: [PATCH] Update DEVELOPER.md --- DEVELOPER.md | 8 ++++---- generate-key.ps1 | 3 +++ sign.sh | 8 -------- 3 files changed, 7 insertions(+), 12 deletions(-) create mode 100644 generate-key.ps1 delete mode 100755 sign.sh diff --git a/DEVELOPER.md b/DEVELOPER.md index f6595ee..6e8a3bb 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -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 .gitignore 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 diff --git a/generate-key.ps1 b/generate-key.ps1 new file mode 100644 index 0000000..4b5f6f8 --- /dev/null +++ b/generate-key.ps1 @@ -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 diff --git a/sign.sh b/sign.sh deleted file mode 100755 index 8124c08..0000000 --- a/sign.sh +++ /dev/null @@ -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