forked from reactiveui/splat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SignPackages.ps1
25 lines (16 loc) · 880 Bytes
/
SignPackages.ps1
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
$currentDirectory = split-path $MyInvocation.MyCommand.Definition
# See if we have the ClientSecret available
if([string]::IsNullOrWhitespace($env:SIGNCLIENT_SECRET)){
Write-Error "Client Secret not found, not signing packages";
[System.Environment]::Exit(1);
}
# Setup Variables we need to pass into the sign client tool
$appSettings = "$currentDirectory\SignPackages.json"
$appPath = "$currentDirectory\packages\SignClient\tools\netcoreapp2.0\SignClient.dll"
$nupgks = ls $currentDirectory\artifacts\*.nupkg | Select -ExpandProperty FullName
foreach ($nupkg in $nupgks){
Write-Host "Submitting $nupkg for signing"
dotnet $appPath 'sign' -c $appSettings -i $nupkg -r $env:SIGNCLIENT_USER -s $env:SIGNCLIENT_SECRET -n 'ReactiveUI' -d 'ReactiveUI' -u 'https://reactiveui.net'
Write-Host "Finished signing $nupkg"
}
Write-Host "Sign-package complete"