diff --git a/Deploy/Nuget/pack.ps1 b/Deploy/Nuget/pack.ps1 new file mode 100644 index 0000000000..65501f9afe --- /dev/null +++ b/Deploy/Nuget/pack.ps1 @@ -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 diff --git a/Deploy/Nuget/wox.plugin.nuspec b/Deploy/Nuget/wox.plugin.nuspec new file mode 100644 index 0000000000..071fc04653 --- /dev/null +++ b/Deploy/Nuget/wox.plugin.nuspec @@ -0,0 +1,16 @@ + + + + Wox.Plugin + $version$ + qianlifeng + https://github.com/qianlifeng/Wox/blob/master/LICENSE + https://github.com/qianlifeng/wox + false + Reference this library if you want to develop a wox plugin + wox + + + + + diff --git a/Doc/Thumbs.db b/Doc/Thumbs.db deleted file mode 100644 index c3da9c149e..0000000000 Binary files a/Doc/Thumbs.db and /dev/null differ diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000000..5c339af035 --- /dev/null +++ b/appveyor.yml @@ -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/