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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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