Remove unnecessary type, mode and find definitions

This commit is contained in:
Richard Kuhnt 2017-04-14 18:01:22 +02:00
parent 0cf42462ca
commit e5f2c03b12
21 changed files with 20 additions and 62 deletions

View File

@ -10,7 +10,10 @@
"ANT_HOME": "$dir" "ANT_HOME": "$dir"
}, },
"suggest": { "suggest": {
"JDK": [ "extras/oraclejdk", "openjdk" ] "JDK": [
"extras/oraclejdk",
"openjdk"
]
}, },
"checkver": { "checkver": {
"url": "https://ant.apache.org/bindownload.cgi", "url": "https://ant.apache.org/bindownload.cgi",
@ -20,8 +23,6 @@
"url": "http://www-us.apache.org/dist/ant/binaries/apache-ant-$version-bin.zip", "url": "http://www-us.apache.org/dist/ant/binaries/apache-ant-$version-bin.zip",
"extract_dir": "apache-ant-$version", "extract_dir": "apache-ant-$version",
"hash": { "hash": {
"mode": "extract",
"type": "sha512",
"url": "http://www-us.apache.org/dist/ant/binaries/apache-ant-$version-bin.zip.sha512" "url": "http://www-us.apache.org/dist/ant/binaries/apache-ant-$version-bin.zip.sha512"
} }
} }

View File

@ -45,9 +45,8 @@ $root=(scoop which httpd | split-path -res -par | split-path -par) -replace '\\\
} }
}, },
"hash": { "hash": {
"mode": "extract",
"url": "$url.txt", "url": "$url.txt",
"find": "SHA256-Checksum for: (?:$basename):\\s+([a-zA-Z0-9]{64})" "find": "SHA256-Checksum for: (?:$basename):\\s+([a-fA-F0-9]{64})"
} }
} }
} }

View File

@ -30,8 +30,6 @@
} }
}, },
"hash": { "hash": {
"mode": "extract",
"type": "sha256",
"url": "$url.sha256sum" "url": "$url.sha256sum"
} }
} }

View File

@ -30,9 +30,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "https://github.com/docker/machine/releases/download/v$version/sha256sum.txt"
"url": "https://github.com/docker/machine/releases/download/v$version/sha256sum.txt",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -38,9 +38,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$cleanVersion/SHA256SUMS"
"url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$cleanVersion/SHA256SUMS",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -28,9 +28,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "$url.sha256"
"url": "$url.sha256",
"find": "([a-z0-9]{64})"
} }
} }
} }

View File

@ -49,9 +49,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "https://s3.amazonaws.com/julialang/bin/checksums/julia-$version.sha256"
"url": "https://s3.amazonaws.com/julialang/bin/checksums/julia-$version.sha256",
"find": "([a-z0-9]{64})\\s+\\*(?:$basename)"
} }
} }
} }

View File

@ -31,9 +31,6 @@
} }
}, },
"hash": { "hash": {
"type": "sha1",
"mode": "extract",
"find": "^([a-f0-9]{40})$",
"url": "$url.sha1" "url": "$url.sha1"
} }
} }

View File

@ -24,7 +24,6 @@
} }
}, },
"hash": { "hash": {
"mode": "extract",
"url": "$url.sha256" "url": "$url.sha256"
} }
} }

View File

@ -18,10 +18,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "$url.md5"
"url": "$url.md5",
"type": "md5",
"find": "([a-z0-9]{32})\\s+(?:$basename)"
} }
}, },
"bin": [ "bin": [

View File

@ -37,9 +37,7 @@ Set-Content -Value \"prefix=$dir\\bin\" -Path $dir\\node_modules\\npm\\npmrc",
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "https://nodejs.org/dist/v$version/SHASUMS256.txt.asc"
"url": "https://nodejs.org/dist/v$version/SHASUMS256.txt.asc",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -37,9 +37,7 @@ Set-Content -Value \"prefix=$dir\\bin\" -Path $dir\\node_modules\\npm\\npmrc",
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "https://nodejs.org/dist/v$version/SHASUMS256.txt.asc"
"url": "https://nodejs.org/dist/v$version/SHASUMS256.txt.asc",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -25,9 +25,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "$url.sha256"
"url": "$url.sha256",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -29,9 +29,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "https://releases.hashicorp.com/packer/$version/packer_$version_SHA256SUMS"
"url": "https://releases.hashicorp.com/packer/$version/packer_$version_SHA256SUMS",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -55,10 +55,7 @@ if (!(Test-Path \"$dir\\cli\\conf.d\")) {
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "http://windows.php.net/downloads/releases/sha1sum.txt"
"type": "sha1",
"url": "http://windows.php.net/downloads/releases/sha1sum.txt",
"find": "([a-z0-9]{40})\\s+(?:$basename)"
} }
}, },
"suggest": { "suggest": {

View File

@ -55,10 +55,7 @@ if (!(Test-Path \"$dir\\cli\\conf.d\")) {
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "http://windows.php.net/downloads/releases/sha1sum.txt"
"type": "sha1",
"url": "http://windows.php.net/downloads/releases/sha1sum.txt",
"find": "([a-z0-9]{40})\\s+(?:$basename)"
} }
}, },
"suggest": { "suggest": {

View File

@ -15,9 +15,6 @@
"autoupdate": { "autoupdate": {
"url": "https://download.jetbrains.com/resharper/JetBrains.ReSharper.CommandLineTools.$version.zip", "url": "https://download.jetbrains.com/resharper/JetBrains.ReSharper.CommandLineTools.$version.zip",
"hash": { "hash": {
"mode": "extract",
"type": "sha256",
"find": "([a-fA-F0-9]{64})\\s+\\*(?:$basename)",
"url": "$url.sha256" "url": "$url.sha256"
} }
} }

View File

@ -29,9 +29,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "https://releases.hashicorp.com/terraform/$version/terraform_$version_SHA256SUMS"
"url": "https://releases.hashicorp.com/terraform/$version/terraform_$version_SHA256SUMS",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -13,9 +13,7 @@
"autoupdate": { "autoupdate": {
"url": "https://releases.hashicorp.com/vagrant/$version/vagrant_$version.msi", "url": "https://releases.hashicorp.com/vagrant/$version/vagrant_$version.msi",
"hash": { "hash": {
"mode": "extract", "url": "https://releases.hashicorp.com/vagrant/$version/vagrant_$version_SHA256SUMS"
"url": "https://releases.hashicorp.com/vagrant/$version/vagrant_$version_SHA256SUMS",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -29,9 +29,7 @@
} }
}, },
"hash": { "hash": {
"mode": "extract", "url": "https://releases.hashicorp.com/vault/$version/vault_$version_SHA256SUMS"
"url": "https://releases.hashicorp.com/vault/$version/vault_$version_SHA256SUMS",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }

View File

@ -14,9 +14,7 @@
"autoupdate": { "autoupdate": {
"url": "https://github.com/rg3/youtube-dl/releases/download/$version/youtube-dl.exe", "url": "https://github.com/rg3/youtube-dl/releases/download/$version/youtube-dl.exe",
"hash": { "hash": {
"mode": "extract", "url": "https://github.com/rg3/youtube-dl/releases/download/$version/SHA2-256SUMS"
"url": "https://github.com/rg3/youtube-dl/releases/download/$version/SHA2-256SUMS",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
} }
} }
} }