diff options
Diffstat (limited to 'scripts/Sign-Package.ps1')
-rw-r--r-- | scripts/Sign-Package.ps1 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/Sign-Package.ps1 b/scripts/Sign-Package.ps1 index 1d0844ab8..ef144a114 100644 --- a/scripts/Sign-Package.ps1 +++ b/scripts/Sign-Package.ps1 @@ -6,19 +6,17 @@ if([string]::IsNullOrEmpty($env:SignClientSecret)){ return; } -& nuget install SignClient -Version 0.9.1 -SolutionDir "$currentDirectory\..\" -Verbosity quiet -ExcludeVersion -# Setup Variables we need to pass into the sign client tool +dotnet tool install --tool-path . SignClient +# Setup Variables we need to pass into the sign client tool $appSettings = "$currentDirectory\SignClient.json" -$appPath = "$currentDirectory\..\packages\SignClient\tools\netcoreapp2.0\SignClient.dll" - $nupgks = ls $Env:ArtifactDirectory\*.nupkg | Select -ExpandProperty FullName foreach ($nupkg in $nupgks){ Write-Host "Submitting $nupkg for signing" - dotnet $appPath 'sign' -c $appSettings -i $nupkg -r $env:SignClientUser -s $env:SignClientSecret -n 'Portable.BouncyCastle' -d 'Portable.BouncyCastle' -u 'https://github.com/onovotny/bc-sharp' + .\SignClient 'sign' -c $appSettings -i $nupkg -r $env:SignClientUser -s $env:SignClientSecret -n 'Portable.BouncyCastle' -d 'Portable.BouncyCastle' -u 'https://github.com/onovotny/bc-sharp' Write-Host "Finished signing $nupkg" } |