Skip to content

Commit bdd2ba8

Browse files
authored
Fix ItemsToSign (#60505)
* Fix ItemsToSign * No more wixlib
1 parent ddbe931 commit bdd2ba8

File tree

1 file changed

+12
-34
lines changed

1 file changed

+12
-34
lines changed

eng/Signing.props

+12-34
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,20 @@
1414
<UseDotNetCertificate>true</UseDotNetCertificate>
1515
</PropertyGroup>
1616

17-
<!-- Files that should be always be signed between in-build and post-build signing -->
17+
<!-- Files that should be always be signed -->
1818
<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" />
2430
</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-
5331

5432
<ItemGroup Label="File signing information">
5533
<!--

0 commit comments

Comments
 (0)