diff --git a/.gitignore b/.gitignore index 69118014..4c7185c9 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,6 @@ parts/ prime/ .snapcraft/ yq*.snap + +# choco +*.nupkg diff --git a/choco/tools/chocolateyinstall.ps1 b/choco/tools/chocolateyinstall.ps1 new file mode 100644 index 00000000..10a91475 --- /dev/null +++ b/choco/tools/chocolateyinstall.ps1 @@ -0,0 +1,14 @@ +$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" + +$packageArgs = @{ + PackageName = 'yq' + Url = 'https://github.com/mikefarah/yq/releases/download/2.4.1/yq_windows_386.exe' + Checksum = '7ED72DF0565DC08481101DC5B5E00FC071791189541803F71BDD1BEB7FE90522' + ChecksumType = 'sha256' + Url64bit = 'https://github.com/mikefarah/yq/releases/download/2.4.1/yq_windows_amd64.exe' + Checksum64 = 'BDFD2A00BAB3D8171EDF57AAF4E9A2F7D0395E7A36D42B07F0E35503C00292A3' + ChecksumType64 = 'sha256' + FileFullPath = "$toolsDir\yq.exe" +} + +Get-ChocolateyWebFile @packageArgs diff --git a/choco/yq.nuspec b/choco/yq.nuspec new file mode 100644 index 00000000..2e25df0d --- /dev/null +++ b/choco/yq.nuspec @@ -0,0 +1,27 @@ + + + + yq + 2.4.1 + https://github.com/mikefarah/yq/tree/master/choco + Mike Farah + yq + Mike Farah + http://mikefarah.github.io/yq/ + 2017 Mike Farah + https://github.com/mikefarah/yq/blob/master/LICENSE + false + https://github.com/mikefarah/yq + http://mikefarah.github.io/yq/ + https://github.com/mikefarah/yq/issues + yq yaml + yq is a portable command-line YAML processor + The aim of the project is to be the jq or sed of yaml files. + https://github.com/mikefarah/yq/releases + + + + + + +