From 35be75f80fd39d8970710dcf636c0a454486be17 Mon Sep 17 00:00:00 2001 From: Nate-Wilkins Date: Thu, 10 Aug 2017 02:30:13 -0400 Subject: [PATCH] Add LICENSE & VERIFICATION chocolatey requirements to nuspec (#142) * Add LICENSE & VERIFICATION chocolatey requirements to nuspec * yml syntax fix * appveyor unc pathing fix really sick of yml ;_; * appveyor multiline formatting * Just one more fix... I tested this locally I swear ;_; --- LICENSE.txt | 2 ++ VERIFICATION.txt | 1 + appveyor.yml | 17 +++++++++++++++++ .../ServiceBusExplorer.nuspec | 2 ++ 4 files changed, 22 insertions(+) create mode 100644 VERIFICATION.txt diff --git a/LICENSE.txt b/LICENSE.txt index ad410e11..0c337a67 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,3 +1,5 @@ +From: https://github.com/paolosalvatori/ServiceBusExplorer#license + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ diff --git a/VERIFICATION.txt b/VERIFICATION.txt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/VERIFICATION.txt @@ -0,0 +1 @@ + diff --git a/appveyor.yml b/appveyor.yml index d9cc7bc6..7d67368f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -49,6 +49,23 @@ build: #---------------------------------# after_build: + - ps: >- + # Remove ALL xml files. + Push-Location $($env:APPVEYOR_BUILD_FOLDER)\src\ServiceBusExplorer\bin\Release + Get-ChildItem -Include *.xml -Recurse | % { Remove-Item $_.FullName } + Pop-Location + - ps: >- + # Reset VERIFICATION file. + (Set-Content -Value "VERIFICATION=MD5" -Path $env:APPVEYOR_BUILD_FOLDER\VERIFICATION.txt) + - ps: >- + # Set VERIFICATION file to all MD5 file hashes in output directory. + Push-Location $($env:APPVEYOR_BUILD_FOLDER)\src\ServiceBusExplorer\bin\Release + Get-ChildItem ` + | % { @{ $_.Name = (Get-FileHash $_ -Algorithm MD5).Hash } } ` + | Sort-Object Name ` + | Format-List ` + | Out-String | Add-Content ./../../../../VERIFICATION.txt + Pop-Location - 7z a ServiceBusExplorer-%GitVersion_MajorMinorPatch%.zip %APPVEYOR_BUILD_FOLDER%\src\ServiceBusExplorer\bin\Release\*.* - ps: (Get-Content $env:APPVEYOR_BUILD_FOLDER\src\ServiceBusExplorer\ServiceBusExplorer.nuspec).Replace("`$version`$", "$env:GitVersion_MajorMinorPatch") | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\ServiceBusExplorer\ServiceBusExplorer.nuspec - choco pack %APPVEYOR_BUILD_FOLDER%\src\ServiceBusExplorer\ServiceBusExplorer.nuspec diff --git a/src/ServiceBusExplorer/ServiceBusExplorer.nuspec b/src/ServiceBusExplorer/ServiceBusExplorer.nuspec index 84b5832a..7fafb7f3 100644 --- a/src/ServiceBusExplorer/ServiceBusExplorer.nuspec +++ b/src/ServiceBusExplorer/ServiceBusExplorer.nuspec @@ -21,5 +21,7 @@ + +