-
Notifications
You must be signed in to change notification settings - Fork 10
/
BuildServer.targets
58 lines (49 loc) · 2.49 KB
/
BuildServer.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?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>