Merge pull request #1231 from r15ch13/docker-autoupdate

Add autoupdate to docker-machine and docker-compose
This commit is contained in:
Luke Sampson 2017-01-19 07:37:23 +11:00 committed by GitHub
commit 394747728d
2 changed files with 36 additions and 8 deletions

View File

@ -1,16 +1,26 @@
{
"homepage": "https://github.com/docker/compose",
"version": "1.10.0",
"license": "Apache",
"homepage": "https://github.com/docker/compose",
"version": "1.10.0",
"license": "Apache",
"architecture": {
"64bit": {
"url": "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-Windows-x86_64.exe",
"url": "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-Windows-x86_64.exe",
"hash": "f484f34ec4d50d047f9887fd09d74c80ec1f6a78e78e490f426509bf465be2ec"
}
},
"pre_install": "Rename-Item @(Get-ChildItem $dir\\docker-compose-*.exe)[0] $dir\\docker-compose.exe",
"bin": [
["docker-compose.exe", "docker-compose"]
[
"docker-compose.exe",
"docker-compose"
]
],
"checkver": "github"
"checkver": "github",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/docker/compose/releases/download/$version/docker-compose-Windows-x86_64.exe"
}
}
}
}

View File

@ -14,7 +14,25 @@
},
"pre_install": "Rename-Item @(Get-ChildItem $dir\\docker-machine-*.exe)[0] $dir\\docker-machine.exe",
"bin": [
["docker-machine.exe", "docker-machine"]
[
"docker-machine.exe",
"docker-machine"
]
],
"checkver": "github"
"checkver": "github",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/docker/machine/releases/download/v$version/docker-machine-Windows-x86_64.exe"
},
"32bit": {
"url": "https://github.com/docker/machine/releases/download/v$version/docker-machine-Windows-i386.exe"
}
},
"hash": {
"mode": "extract",
"url": "https://github.com/docker/machine/releases/download/v$version/sha256sum.txt",
"find": "([a-z0-9]{64})\\s+(?:$basename)"
}
}
}