mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 05:06:36 +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>
|
||||||
BIN
Doc/Thumbs.db
BIN
Doc/Thumbs.db
Binary file not shown.
20
appveyor.yml
Normal file
20
appveyor.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
version: 1.1.0
|
||||||
|
|
||||||
|
assembly_info:
|
||||||
|
patch: true
|
||||||
|
file: AssemblyInfo.*
|
||||||
|
assembly_version: "{version}"
|
||||||
|
assembly_file_version: "{version}"
|
||||||
|
assembly_informational_version: "{version}"
|
||||||
|
|
||||||
|
build:
|
||||||
|
project: Wox.sln
|
||||||
|
|
||||||
|
after_test:
|
||||||
|
ps: .\nuget\pack.ps1
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
provider: NuGet
|
||||||
|
api_key:
|
||||||
|
secure: yybUOFgBuGVpbmOVZxsurC8OpkClzt9dR+/54WpMWcq6b6oyMatciaelRPnXsjRn
|
||||||
|
artifact: /.*\.nupkg/
|
||||||
Reference in New Issue
Block a user