diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Sign-Package.ps1 | 8 | ||||
-rw-r--r-- | scripts/setversion.csproj | 20 | ||||
-rw-r--r-- | scripts/version.json | 8 |
3 files changed, 3 insertions, 33 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" } diff --git a/scripts/setversion.csproj b/scripts/setversion.csproj deleted file mode 100644 index 25f6bb43e..000000000 --- a/scripts/setversion.csproj +++ /dev/null @@ -1,20 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <TargetFramework>netstandard2.0</TargetFramework> - </PropertyGroup> - - <ItemGroup> - <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.23" PrivateAssets="all" /> - </ItemGroup> - - - <Target Name="SetBuildVer" AfterTargets="GetBuildVersion" BeforeTargets="SetCloudBuildVersionVars;SetCloudBuildNumberWithVersion"> - <PropertyGroup> - <CloudBuildNumber>$(BuildVersion)</CloudBuildNumber> - <Version>$(BuildVersion)</Version> - <PackageVersion>$(BuildVersion)</PackageVersion> - <NuGetPackageVersion>$(BuildVersion)</NuGetPackageVersion> - </PropertyGroup> - </Target> -</Project> diff --git a/scripts/version.json b/scripts/version.json deleted file mode 100644 index f1b52a7dc..000000000 --- a/scripts/version.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "inherit": true, - "cloudBuild": { - "buildNumber": { - "enabled": true - } - } -} |