mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-07 22:35:37 +00:00
Chocolatey package
This commit is contained in:
parent
5fc13bdccd
commit
5e527c726f
3
.gitignore
vendored
3
.gitignore
vendored
@ -37,3 +37,6 @@ parts/
|
||||
prime/
|
||||
.snapcraft/
|
||||
yq*.snap
|
||||
|
||||
# choco
|
||||
*.nupkg
|
||||
|
||||
14
choco/tools/chocolateyinstall.ps1
Normal file
14
choco/tools/chocolateyinstall.ps1
Normal file
@ -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
|
||||
27
choco/yq.nuspec
Normal file
27
choco/yq.nuspec
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>yq</id>
|
||||
<version>2.4.1</version>
|
||||
<packageSourceUrl>https://github.com/mikefarah/yq/tree/master/choco</packageSourceUrl>
|
||||
<owners>Mike Farah</owners>
|
||||
<title>yq</title>
|
||||
<authors>Mike Farah</authors>
|
||||
<projectUrl>http://mikefarah.github.io/yq/</projectUrl>
|
||||
<copyright>2017 Mike Farah</copyright>
|
||||
<licenseUrl>https://github.com/mikefarah/yq/blob/master/LICENSE</licenseUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<projectSourceUrl>https://github.com/mikefarah/yq</projectSourceUrl>
|
||||
<docsUrl>http://mikefarah.github.io/yq/</docsUrl>
|
||||
<bugTrackerUrl>https://github.com/mikefarah/yq/issues</bugTrackerUrl>
|
||||
<tags>yq yaml</tags>
|
||||
<summary>yq is a portable command-line YAML processor</summary>
|
||||
<description>The aim of the project is to be the jq or sed of yaml files.</description>
|
||||
<releaseNotes>https://github.com/mikefarah/yq/releases</releaseNotes>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="tools\**" target="tools" />
|
||||
<!-- When building on Linux you may need instead -->
|
||||
<!-- <file src="tools/**" target="tools" /> -->
|
||||
</files>
|
||||
</package>
|
||||
Loading…
Reference in New Issue
Block a user