Skip to content

Commit

Permalink
Add LICENSE & VERIFICATION chocolatey requirements to nuspec (#142)
Browse files Browse the repository at this point in the history
* 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 ;_;
  • Loading branch information
Nate-Wilkins authored and tomkerkhove committed Aug 10, 2017
1 parent e50fb03 commit 35be75f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
From: https://github.com/paolosalvatori/ServiceBusExplorer#license

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down
1 change: 1 addition & 0 deletions VERIFICATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

17 changes: 17 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/ServiceBusExplorer/ServiceBusExplorer.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@
</metadata>
<files>
<file src="bin\Release\**" target="tools" />
<file src="..\..\LICENSE.txt" target="tools" />
<file src="..\..\VERIFICATION.txt" target="tools" />
</files>
</package>

0 comments on commit 35be75f

Please sign in to comment.