Browse Source

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 <[email protected]>

Oleg Nenashev 11 years ago
parent
commit
99fb13d41a
2 changed files with 11 additions and 7 deletions
  1. 1 0
      .gitignore
  2. 10 7
      winsw.csproj

+ 1 - 0
.gitignore

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

+ 10 - 7
winsw.csproj

@@ -15,8 +15,8 @@
     <StartupObject>
     </StartupObject>
     <SignManifests>false</SignManifests>
-    <SignAssembly>false</SignAssembly>
-    <AssemblyOriginatorKeyFile/>
+    <SignAssembly>true</SignAssembly>
+    <AssemblyOriginatorKeyFile>winsw_cert.pfx</AssemblyOriginatorKeyFile>
     <FileUpgradeFlags>
     </FileUpgradeFlags>
     <UpgradeBackupLocation>
@@ -84,8 +84,12 @@
   </ItemGroup>
   <ItemGroup>
     <Content Include="manifest.xml" />
-    <Content Include="pom.xml" />
-    <Content Include="winsw.xml" />
+    <Content Include="pom.xml">
+      <SubType>Designer</SubType>
+    </Content>
+    <Content Include="winsw.xml">
+      <SubType>Designer</SubType>
+    </Content>
   </ItemGroup>
   <ItemGroup>
     <None Include="winsw_cert.pfx" />
@@ -111,8 +115,7 @@
   </Target>
   -->
   <PropertyGroup>
-    <PostBuildEvent>"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\mt.exe" -manifest "$(ProjectDir)manifest.xml"  -outputresource:"$(TargetDir)$(TargetFileName)";#1
-
-"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>
+    <PostBuildEvent>
+    </PostBuildEvent>
   </PropertyGroup>
 </Project>