@@ -17,7 +17,7 @@ resources:
17
17
18
18
jobs :
19
19
- job : build_windows
20
- pool : Package ES Lab A
20
+ pool : Package ES CodeHub Lab E
21
21
22
22
# APIScan can take a long time
23
23
timeoutInMinutes : 240
@@ -86,39 +86,14 @@ jobs:
86
86
- pwsh : |
87
87
# Show the signed files
88
88
Get-ChildItem -Path $(Signed)
89
- Copy-Item -Path $(Signed)\* -Destination $(PSReadLine) -Force
89
+ Copy-Item -Path $(Signed)\* -Destination $(PSReadLine) -Recurse - Force
90
90
displayName: 'Replace unsigned files with signed ones'
91
91
92
- # Create catalog file from the signed modules files
93
- - pwsh : |
94
- New-FileCatalog -CatalogFilePath $(PSReadLine)\PSReadLine.cat -Path $(PSReadLine) -CatalogVersion 2.0 | `
95
- ForEach-Object -MemberName FullName
96
- displayName: 'Create catalog file'
97
-
98
- # Sign the catalog file
99
- - task : PkgESCodeSign@10
100
- displayName : ' CodeSign - catalog file'
101
- env :
102
- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
103
- inputs :
104
- signConfigXml : ' $(Build.SourcesDirectory)\.vsts-ci\sign-catalog.xml'
105
- inPathRoot : ' $(PSReadLine)'
106
- outPathRoot : ' $(Signed)'
107
- binVersion : Production
108
- binVersionOverride : ' '
109
-
110
- # Copy the signed catalog file over
111
- - pwsh : |
112
- # Show the signed files
113
- Get-ChildItem -Path $(Signed)
114
- Copy-Item -Path $(Signed)\PSReadLine.cat -Destination $(PSReadLine) -Force
115
- displayName: 'Replace catalog file with the signed one'
116
-
117
92
# Verify the signatures
118
93
- pwsh : |
119
94
$HasInvalidFiles = $false
120
95
$WrongCert = @{}
121
- Get-ChildItem -Path $(PSReadLine) -Recurse -Include "*.dll","*.ps*1*","*.cat" | `
96
+ Get-ChildItem -Path $(PSReadLine) -Recurse -Include "*.dll","*.ps*1*" | `
122
97
Get-AuthenticodeSignature | ForEach-Object {
123
98
$_ | Select-Object Path, Status
124
99
if ($_.Status -ne 'Valid') { $HasInvalidFiles = $true }
@@ -134,12 +109,6 @@ jobs:
134
109
}
135
110
displayName: 'Verify the signed files'
136
111
137
- - pwsh : |
138
- $CatInfo = Test-FileCatalog -Path $(PSReadLine) -CatalogFilePath $(PSReadLine)\PSReadLine.cat -Detailed
139
- $CatInfo | Format-List
140
- if ($CatInfo.Status -ne "Valid") { throw "Catalog file is invalid." }
141
- displayName: 'Verify the catalog file'
142
-
143
112
- pwsh : |
144
113
try {
145
114
$RepoName = "PSRLLocal"
0 commit comments