This commit is contained in:
Aditya Patwardhan
2024-06-03 23:49:17 -07:00
parent 7ca7fffd5f
commit f635d77aba
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -893,6 +893,10 @@ function New-PSOptions {
# So we, will change the RID to win7-<arch>
$Runtime = $RID -replace "win\d+", "win7"
if ($Runtime -like 'win-*') {
$Runtime = $Runtime -replace 'win-', 'win7-'
}
Write-Verbose -Verbose "Setting runtime to '$Runtime'"
}
+3 -3
View File
@@ -801,11 +801,11 @@ function Update-PSSignedBuildFolder
# Agents seems to be on a case sensitive file system
if ($IsLinux) {
$relativePath = $signedFileObject.Replace($SignedFilesPathNormalized, '')
$relativePath = $signedFilePath.Replace($SignedFilesPathNormalized, '')
} else {
Write-Verbose -Verbose "Normalizing path"
Write-Verbose -Verbose "signedFileObject = $signedFileObject"
$relativePath = $signedFileObject.ToLowerInvariant().Replace($SignedFilesPathNormalized.ToLowerInvariant(), '')
Write-Verbose -Verbose "signedFileObject = $signedFilePath"
$relativePath = $signedFilePath.ToLowerInvariant().Replace($SignedFilesPathNormalized.ToLowerInvariant(), '')
}
Write-Verbose -Verbose "relativePath = $relativePath"