59 строки
2.5 KiB
XML
59 строки
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="..\Tooling\Katana.msbuild" />
|
|
|
|
<Target Name="DoSignBinaries">
|
|
<PropertyGroup>
|
|
<OutputPath>artifacts\sign\input</OutputPath>
|
|
<CodeSignNet40Path>artifacts\sign\output\Net40</CodeSignNet40Path>
|
|
<CodeSignNet45Path>artifacts\sign\output\Net45</CodeSignNet45Path>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<BinariesToSign Include="$(OutputPath)\**\Net40\*.dll;$(OutputPath)\**\Net40\*.exe">
|
|
<CopyScript>CS_CopyNet40.bat</CopyScript>
|
|
<CopyScriptTargetPath>$(CodeSignNet40Path)</CopyScriptTargetPath>
|
|
<Certificates>10006;72</Certificates>
|
|
<Description>Katana - Signing NET40 assemblies</Description>
|
|
<DisplayName>$(CS_KatanaDisplayName)</DisplayName>
|
|
<DisplayUrl>$(CS_KatanaURL)</DisplayUrl>
|
|
</BinariesToSign>
|
|
|
|
<BinariesToSign Include="$(OutputPath)\**\Net45\*.dll;$(OutputPath)\**\Net45\*.exe">
|
|
<CopyScript>CS_CopyNet45.bat</CopyScript>
|
|
<CopyScriptTargetPath>$(CodeSignNet45Path)</CopyScriptTargetPath>
|
|
<Certificates>10006;72</Certificates>
|
|
<Description>Katana - Signing NET45 assemblies</Description>
|
|
<DisplayName>$(CS_KatanaDisplayName)</DisplayName>
|
|
<DisplayUrl>$(CS_KatanaURL)</DisplayUrl>
|
|
</BinariesToSign>
|
|
</ItemGroup>
|
|
|
|
<MakeDir Directories="$(CodeSignScriptsPath)" />
|
|
|
|
<!-- Batch BinariesToSign based on metadata -->
|
|
<SubmitCodeSignJob
|
|
CopyScript="$(CodeSignScriptsPath)\%(CopyScript)"
|
|
CopyScriptRemoveTargetFolder="false"
|
|
CopyScriptTargetPath="%(CopyScriptTargetPath)"
|
|
Approvers="$(CS_Approvers)"
|
|
Certificates="%(Certificates)"
|
|
Description="%(Description)"
|
|
DisplayName="%(DisplayName)"
|
|
DisplayUrl="%(DisplayUrl)"
|
|
Files="@(BinariesToSign)"
|
|
GenerateCopyScript="true"
|
|
Poll="false"
|
|
SSL="true"
|
|
Test="$(TestCodeSign)">
|
|
<Output TaskParameter="JobNumber" ItemName="CodeSignBinariesJobs" />
|
|
</SubmitCodeSignJob>
|
|
|
|
<WaitForCodeSignJobs JobNumbers="@(CodeSignBinariesJobs)" Test="$(TestCodeSign)" />
|
|
|
|
<Exec Command="$(CodeSignScriptsPath)\%(BinariesToSign.CopyScript)" />
|
|
</Target>
|
|
|
|
</Project>
|
|
|