|
14 | 14 | <UseDotNetCertificate>true</UseDotNetCertificate>
|
15 | 15 | </PropertyGroup>
|
16 | 16 |
|
17 |
| - <!-- Files that should be always be signed between in-build and post-build signing --> |
| 17 | + <!-- Files that should be always be signed --> |
18 | 18 | <ItemGroup Label="Common Files to Sign">
|
19 |
| - <CommonFilesToSign Include="$(ArtifactsPackagesDir)**\*.nupkg" /> |
20 |
| - <CommonFilesToSign Include="$(VisualStudioSetupOutputPath)**\*.vsix" /> |
21 |
| - <CommonFilesToSign Include="$(ArtifactsPackagesDir)**\*.jar" /> |
22 |
| - <CommonFilesToSign Include="$(ArtifactsDir)packages\$(Configuration)\**\*.zip" /> |
23 |
| - <CommonFilesToSign Remove="$(ArtifactsDir)installers\$(Configuration)\**\*.wixpack.zip" Condition="'$(PostBuildSign)' != 'true'" /> |
| 19 | + <ItemsToSign Include="$(ArtifactsPackagesDir)**\*.nupkg" /> |
| 20 | + <ItemsToSign Include="$(ArtifactsPackagesDir)**\*.exe" /> |
| 21 | + <ItemsToSign Include="$(ArtifactsPackagesDir)**\*.msi" /> |
| 22 | + <ItemsToSign Include="$(ArtifactsPackagesDir)**\*.jar" /> |
| 23 | + <ItemsToSign Include="$(ArtifactsDir)packages\$(Configuration)\**\*.zip" /> |
| 24 | + <ItemsToSign Include="$(VisualStudioSetupOutputPath)**\*.vsix" /> |
| 25 | + <ItemsToSign Include="$(ArtifactsDir)installers\$(Configuration)\**\*.exe" /> |
| 26 | + <ItemsToSign Include="$(ArtifactsDir)installers\$(Configuration)\**\*.msi" /> |
| 27 | + <ItemsToSign Remove="$(ArtifactsDir)installers\$(Configuration)\**\*.wixpack.zip" /> |
| 28 | + <ItemsToSign Remove="$(ArtifactsPackagesDir)**\*.wixpack.zip" /> |
| 29 | + <ItemsToSign Remove="$(ArtifactsPackagesDir)**\*symbols.nupkg" /> |
24 | 30 | </ItemGroup>
|
25 |
| - <Choose> |
26 |
| - <!-- When post build signing is false - Sign as normal. |
27 |
| - When post build signing is true - Sign all of our signable artifacts |
28 |
| - that we would publish. Use a different ItemGroup name so that |
29 |
| - the signing stage signs nothing. We then set ItemToSign during |
30 |
| - publishing to this ItemGroup. |
31 |
| - --> |
32 |
| - <When Condition="'$(PostBuildSign)' != 'true'"> |
33 |
| - <ItemGroup Label="Files To Sign"> |
34 |
| - <ItemsToSign Include="@(CommonFilesToSign)" /> |
35 |
| - <ItemsToSign Remove="$(ArtifactsPackagesDir)**\*symbols.nupkg" /> |
36 |
| - </ItemGroup> |
37 |
| - </When> |
38 |
| - <When Condition="'$(PostBuildSign)' == 'true'"> |
39 |
| - <PropertyGroup> |
40 |
| - <AllowEmptySignList>true</AllowEmptySignList> |
41 |
| - </PropertyGroup> |
42 |
| - <ItemGroup Label="Files To Sign"> |
43 |
| - <!-- Sign symbol nupkgs so that shared files between layouts and msis end up identical. --> |
44 |
| - <ItemsToSignPostBuild Include="@(CommonFilesToSign)" /> |
45 |
| - <ItemsToSignPostBuild Include="$(ArtifactsDir)installers\$(Configuration)\**\*.exe" /> |
46 |
| - <ItemsToSignPostBuild Include="$(ArtifactsDir)installers\$(Configuration)\**\*.msi" /> |
47 |
| - <!-- Wixlibs are signed because they are containers of other files --> |
48 |
| - <ItemsToSignPostBuild Include="$(ArtifactsDir)installers\$(Configuration)\**\*.wixlib" /> |
49 |
| - </ItemGroup> |
50 |
| - </When> |
51 |
| - </Choose> |
52 |
| - |
53 | 31 |
|
54 | 32 | <ItemGroup Label="File signing information">
|
55 | 33 | <!--
|
|
0 commit comments