forked from pjbgf/dotnet-ildasm
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
4 changed files
with
25 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
powershell -ExecutionPolicy Bypass -file build.ps1 | ||
powershell -ExecutionPolicy Bypass -file post.build.ps1 | ||
powershell -ExecutionPolicy Bypass -file sign.ps1 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nuget update /self | ||
for %%f in (.\nupkg\*.nupkg) do nuget push %%f -Source https://www.nuget.org/api/v2/package |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Remove-Item -Path .\*.nupkg | ||
$nuget = ".\nuget.exe" | ||
|
||
if (!(Test-Path $nuget)) | ||
{ | ||
Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile nuget.exe | ||
} | ||
|
||
& $nuget update /self | Write-Debug | ||
|
||
Write-Host "Sign NuGet packages." | ||
& $nuget sign .\nupkg\*.nupkg -CertificateSubjectName "Yang Li" -Timestamper http://timestamp.digicert.com | Write-Debug | ||
& $nuget verify -All .\nupkg\*.nupkg | Write-Debug | ||
if ($LASTEXITCODE -ne 0) | ||
{ | ||
Write-Host "NuGet package is not signed. Exit." | ||
exit $LASTEXITCODE | ||
} | ||
|
||
Write-Host "Verification finished." |