mirror of https://github.com/cefsharp/CefSharp.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
763 B
32 lines
763 B
param(
|
|
[Parameter(Position = 0, Mandatory = $true)]
|
|
[string] $Version
|
|
)
|
|
|
|
$WorkingDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
|
$Nuget = Join-Path $env:LOCALAPPDATA .\nuget\NuGet.exe
|
|
$PackagePath = Join-Path $WorkingDir\nuget
|
|
|
|
function Write-Diagnostic
|
|
{
|
|
param(
|
|
[Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]
|
|
[string] $Message
|
|
)
|
|
|
|
Write-Host
|
|
Write-Host $Message -ForegroundColor Green
|
|
Write-Host
|
|
}
|
|
|
|
Write-Diagnostic "Uploading packages to myget"
|
|
|
|
$Packages = @(
|
|
"$PackagePath\CefSharp.Common.$Version.nupkg",
|
|
"$PackagePath\CefSharp.WinForms.$Version.nupkg",
|
|
"$PackagePath\CefSharp.Wpf.$Version.nupkg"
|
|
)
|
|
|
|
$Packages | ForEach-Object {
|
|
. $Nuget push $_ -Source https://myget.org/F/X
|
|
}
|