2014-12-12 18:22:17 +08:00
|
|
|
$root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\..'
|
|
|
|
$version = [System.Reflection.Assembly]::LoadFile("$root\Output\Release\Wox.Plugin.dll").GetName().Version
|
|
|
|
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)
|
|
|
|
|
|
|
|
Write-Host "Setting .nuspec version tag to $versionStr"
|
|
|
|
|
|
|
|
$content = (Get-Content $root\Deploy\NuGet\wox.nuspec)
|
|
|
|
$content = $content -replace '\$version\$',$versionStr
|
|
|
|
|
|
|
|
$content | Out-File $root\wox.plugin.nuspec
|
|
|
|
|
2014-12-12 18:32:21 +08:00
|
|
|
& $root\.nuget\NuGet.exe pack $root\deploy\nuget\wox.plugin.nuspec
|