Switch to the built-in signing procedure.

Each developer will have to specify his own winsw_cert.pfx in the project root.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
pull/62/head
Oleg Nenashev 2015-01-23 15:24:38 +03:00
parent 45fba7f974
commit 99fb13d41a
2 changed files with 11 additions and 7 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ obj
/UpgradeLog.htm /UpgradeLog.htm
/winsw.csproj.DotSettings.user /winsw.csproj.DotSettings.user
/winsw.csproj.user /winsw.csproj.user
/winsw_cert.pfx

View File

@ -15,8 +15,8 @@
<StartupObject> <StartupObject>
</StartupObject> </StartupObject>
<SignManifests>false</SignManifests> <SignManifests>false</SignManifests>
<SignAssembly>false</SignAssembly> <SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile/> <AssemblyOriginatorKeyFile>winsw_cert.pfx</AssemblyOriginatorKeyFile>
<FileUpgradeFlags> <FileUpgradeFlags>
</FileUpgradeFlags> </FileUpgradeFlags>
<UpgradeBackupLocation> <UpgradeBackupLocation>
@ -84,8 +84,12 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="manifest.xml" /> <Content Include="manifest.xml" />
<Content Include="pom.xml" /> <Content Include="pom.xml">
<Content Include="winsw.xml" /> <SubType>Designer</SubType>
</Content>
<Content Include="winsw.xml">
<SubType>Designer</SubType>
</Content>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="winsw_cert.pfx" /> <None Include="winsw_cert.pfx" />
@ -111,8 +115,7 @@
</Target> </Target>
--> -->
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\mt.exe" -manifest "$(ProjectDir)manifest.xml" -outputresource:"$(TargetDir)$(TargetFileName)";#1 <PostBuildEvent>
</PostBuildEvent>
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\signtool.exe" sign /f c:\winsw-do-not-add-to-scm.pfx /p winsw /t http://timestamp.comodoca.com/authenticode $(TargetFileName)</PostBuildEvent>
</PropertyGroup> </PropertyGroup>
</Project> </Project>