Checkver add github helper

Lot of manifests are using github tags to find the latest version the
url's and regex is mostly the same.

`checkver` now can also be the string "github" if the `homepage` links
to the github repo
If `homepage` is not the repo `{"checkver": "github":
"https://github.com/user/repo"}` can be used
This commit is contained in:
Rémy 2017-01-01 18:22:31 +01:00
parent a5c054ea9e
commit 2fa1b0112e
30 changed files with 32 additions and 78 deletions

View File

@ -16,7 +16,6 @@
"pre_install": "Rename-Item @(Get-ChildItem $dir\\apex_*.exe)[0] $dir\\apex.exe",
"bin": [ "apex.exe" ],
"checkver": {
"url": "https://github.com/apex/apex/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/apex/apex"
}
}

View File

@ -25,8 +25,7 @@
}
},
"checkver": {
"url": "https://github.com/mholt/caddy/releases/latest",
"re": "/releases/tag/v([\\d.]+)"
"github": "https://github.com/mholt/caddy"
},
"autoupdate": {
"architecture": {

View File

@ -10,7 +10,6 @@
phantom19 is available in the versions bucket (scoop bucket add versions)",
"checkver": {
"url": "https://github.com/n1k0/casperjs/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
"github": "https://github.com/n1k0/casperjs"
}
}

View File

@ -7,7 +7,6 @@
"extract_dir": "devd-0.5-windows64",
"bin": "devd.exe",
"checkver": {
"url": "https://github.com/cortesi/devd/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/cortesi/devd"
}
}

View File

@ -12,8 +12,5 @@
"bin": [
["docker-compose.exe", "docker-compose"]
],
"checkver": {
"url": "https://github.com/docker/compose/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
}
"checkver": "github"
}

View File

@ -16,8 +16,5 @@
"bin": [
["docker-machine.exe", "docker-machine"]
],
"checkver": {
"url": "https://github.com/docker/machine/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
}
"checkver": "github"
}

View File

@ -11,7 +11,6 @@
"bin\\mix.bat"
],
"checkver": {
"url": "https://github.com/elixir-lang/elixir/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/elixir-lang/elixir"
}
}

View File

@ -7,7 +7,6 @@
"bin": "flow.exe",
"extract_dir": "flow",
"checkver": {
"url": "https://github.com/facebook/flow/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/facebook/flow"
}
}

View File

@ -7,7 +7,6 @@
"bin\\forge.exe"
],
"checkver": {
"url": "https://github.com/fsharp-editing/Forge/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
"github": "https://github.com/fsharp-editing/Forge"
}
}

View File

@ -17,7 +17,6 @@
"homepage": "https://git-lfs.github.com/",
"bin": "git-lfs.exe",
"checkver": {
"url": "https://github.com/github/git-lfs/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/github/git-lfs"
}
}

View File

@ -15,8 +15,5 @@
finally {
popd
}",
"checkver": {
"url": "https://github.com/msiemens/PyGitUp/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
}
"checkver": "github"
}

View File

@ -1,5 +1,5 @@
{
"homepage": "https://github.com/Masterminds",
"homepage": "https://glide.sh/",
"license": "https://github.com/Masterminds/glide/blob/master/LICENSE",
"version": "0.12.3",
"architecture": {
@ -16,7 +16,6 @@
},
"bin": "glide.exe",
"checkver": {
"url": "https://github.com/Masterminds/glide/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/Masterminds/glide"
}
}

View File

@ -13,7 +13,6 @@
},
"depends": "openjdk",
"checkver": {
"url": "https://github.com/grails/grails-core/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/grails/grails-core"
}
}

View File

@ -16,7 +16,6 @@
"bin\\hub.exe"
],
"checkver": {
"url": "https://github.com/github/hub/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/github/hub"
}
}

View File

@ -15,7 +15,6 @@
},
"homepage": "http://gohugo.io",
"checkver": {
"url": "https://github.com/spf13/hugo/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/spf13/hugo"
}
}

View File

@ -16,7 +16,6 @@
},
"depends": "openjdk",
"checkver": {
"url": "https://github.com/JetBrains/kotlin/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/JetBrains/kotlin"
}
}

View File

@ -6,9 +6,5 @@
"bin": "lein.bat",
"hash": "32385e54b54ec99ac8a37792347ca4f1a3c7feb792066d7ffc8f1e4c5b7c7ad1",
"notes": "The command 'lein self-install' is required to complete the installation",
"checkver": {
"url": "https://github.com/technomancy/leiningen/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
}
"checkver": "github"
}

View File

@ -5,8 +5,5 @@
"hash": "ea16da35477aff1ab63d71e0f1c08ca697cad6f7211ccdf7fb8fa2c7206a1ffa",
"url": "https://github.com/activescott/lessmsi/releases/download/v1.4/lessmsi-v1.4.zip",
"bin": "lessmsi.exe",
"checkver": {
"url": "https://github.com/activescott/lessmsi/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
}
"checkver": "github"
}

View File

@ -7,7 +7,6 @@
"extract_dir": "minisign-win32",
"bin": "minisign.exe",
"checkver": {
"url": "https://github.com/jedisct1/minisign/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
"github": "https://github.com/jedisct1/minisign"
}
}

View File

@ -7,7 +7,6 @@
"extract_dir": "modd-0.3-windows64",
"bin": "modd.exe",
"checkver": {
"url": "https://github.com/cortesi/modd/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/cortesi/modd"
}
}

View File

@ -8,7 +8,6 @@
"ninja.exe"
],
"checkver": {
"url": "https://github.com/ninja-build/ninja/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/ninja-build/ninja"
}
}

View File

@ -1,4 +1,5 @@
{
"homepage": "https://github.com/coreybutler/nvm-windows",
"version": "1.1.1",
"url": "https://github.com/coreybutler/nvm-windows/releases/download/1.1.1/nvm-noinstall.zip",
"extract_dir": "\\",
@ -18,8 +19,5 @@
}
},
"notes":"You'll need to restart powershell/cmd to have it reload Environment Variables so nvm will work correctly",
"checkver": {
"url": "https://github.com/coreybutler/nvm-windows/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
}
"checkver": "github"
}

View File

@ -19,7 +19,6 @@
,[ "pcre2test.exe", "pcretest" ]
],
"checkver": {
"url": "https://github.com/rivy/PCRE/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
"github": "https://github.com/rivy/PCRE"
}
}

View File

@ -29,8 +29,5 @@
'importing pester for current session...'
iex \"$import\"
",
"checkver": {
"url": "https://github.com/pester/pester/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
}
"checkver": "github"
}

View File

@ -17,7 +17,6 @@
"rancher-compose.exe"
],
"checkver": {
"url": "https://github.com/rancher/rancher-compose/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/rancher/rancher-compose"
}
}

View File

@ -13,8 +13,5 @@
}
},
"bin": "rg.exe",
"checkver": {
"url": "https://github.com/BurntSushi/ripgrep/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
}
"checkver": "github"
}

View File

@ -7,7 +7,6 @@
"extract_dir": "tools",
"bin": "scriptcs.exe",
"checkver": {
"url": "https://github.com/scriptcs/scriptcs/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/scriptcs/scriptcs"
}
}

View File

@ -10,7 +10,6 @@
"bin\\syncany.bat"
],
"checkver": {
"url": "https://github.com/syncany/syncany/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/syncany/syncany"
}
}

View File

@ -6,7 +6,6 @@
"bin": "upx392w\\upx.exe",
"license": "GPL2",
"checkver": {
"url": "https://github.com/upx/upx/releases/latest",
"re": "\/releases\/tag\/v([\\d.]+)"
"github": "https://github.com/upx/upx"
}
}

View File

@ -9,7 +9,6 @@
"ffmpeg"
],
"checkver": {
"url": "https://github.com/rg3/youtube-dl/releases/latest",
"re": "\/releases\/tag\/([\\d.]+)"
"github": "https://github.com/rg3/youtube-dl"
}
}