-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4588b67
commit 55006c5
Showing
2 changed files
with
113 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
Write-Host "Signing .NET 5.0 assemblies" | ||
Get-ChildItem "build\sonarscanner-msbuild-net5.0\Sonar*.dll" | | ||
Foreach-Object { | ||
& $env:SIGNTOOL_PATH sign /fd SHA256 /f $env:PFX_PATH /p $env:PFX_PASSWORD /tr http://timestamp.digicert.com?alg=sha256 $_.FullName | ||
function Sign-Assemblies { | ||
param ( | ||
[string]$Pattern | ||
) | ||
Get-ChildItem $Pattern | | ||
Foreach-Object { | ||
& signtool sign /du https://www.sonarsource.com/ /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 /csp "DigiCert Signing Manager KSP" /kc "$env:SM_KP" /f "$env:SM_CLIENT_CRT_FILE" $_.FullName | ||
} | ||
} | ||
|
||
Write-Host "Signing .NET 5.0 assemblies" | ||
Sign-Assemblies "build\sonarscanner-msbuild-net5.0\Sonar*.dll" | ||
Write-Host "[Completed] Signing .NET 5.0 assemblies" | ||
|
||
Write-Host "Signing .NET 4.6 assemblies" | ||
Get-ChildItem "build\sonarscanner-msbuild-net46\Sonar*.dll" | | ||
Foreach-Object { | ||
& $env:SIGNTOOL_PATH sign /fd SHA256 /f $env:PFX_PATH /p $env:PFX_PASSWORD /tr http://timestamp.digicert.com?alg=sha256 $_.FullName | ||
} | ||
Get-ChildItem "build\sonarscanner-msbuild-net46\Sonar*.exe" | | ||
Foreach-Object { | ||
& $env:SIGNTOOL_PATH sign /fd SHA256 /f $env:PFX_PATH /p $env:PFX_PASSWORD /tr http://timestamp.digicert.com?alg=sha256 $_.FullName | ||
} | ||
Sign-Assemblies "build\sonarscanner-msbuild-net46\Sonar*.dll" | ||
Write-Host "[Completed]Signing .NET 4.6 assemblies" | ||
|
||
Write-Host "Signing .NET Core 2 assemblies" | ||
Get-ChildItem "build\sonarscanner-msbuild-netcoreapp2.0\Sonar*.dll" | | ||
Foreach-Object { | ||
& $env:SIGNTOOL_PATH sign /fd SHA256 /f $env:PFX_PATH /p $env:PFX_PASSWORD /tr http://timestamp.digicert.com?alg=sha256 $_.FullName | ||
} | ||
Sign-Assemblies "build\sonarscanner-msbuild-netcoreapp2.0\Sonar*.dll" | ||
Write-Host "[Completed] Signing .NET Core 2 assemblies" | ||
|
||
Write-Host "Signing .NET Core 3 assemblies" | ||
Get-ChildItem "build\sonarscanner-msbuild-netcoreapp3.0\Sonar*.dll" | | ||
Foreach-Object { | ||
& $env:SIGNTOOL_PATH sign /fd SHA256 /f $env:PFX_PATH /p $env:PFX_PASSWORD /tr http://timestamp.digicert.com?alg=sha256 $_.FullName | ||
} | ||
Sign-Assemblies "build\sonarscanner-msbuild-netcoreapp3.0\Sonar*.dll" | ||
Write-Host "[Completed] Signing .NET Core 3 assemblies" |