mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Auto publish Wox.Plugin to nuget.
This commit is contained in:
12
Deploy/Nuget/pack.ps1
Normal file
12
Deploy/Nuget/pack.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
$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
|
||||
|
||||
& $root\deploy\NuGet\NuGet.exe pack $root\deploy\nuget\wox.plugin.nuspec
|
||||
16
Deploy/Nuget/wox.plugin.nuspec
Normal file
16
Deploy/Nuget/wox.plugin.nuspec
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<package >
|
||||
<metadata>
|
||||
<id>Wox.Plugin</id>
|
||||
<version>$version$</version>
|
||||
<authors>qianlifeng</authors>
|
||||
<licenseUrl>https://github.com/qianlifeng/Wox/blob/master/LICENSE</licenseUrl>
|
||||
<projectUrl>https://github.com/qianlifeng/wox</projectUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>Reference this library if you want to develop a wox plugin</description>
|
||||
<tags>wox</tags>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="..\..\Output\Debug\Wox.Plugin.dll" target="lib\net35" />
|
||||
</files>
|
||||
</package>
|
||||
Reference in New Issue
Block a user