Breaking, change autoupdate definition to use the same logic as the

architecture by the core / update the affected manifests / ability to
change extract_dir based on arch / add nssm autoupdate
This commit is contained in:
Rémy 2017-01-01 17:30:18 +01:00
parent 00fd41f2c4
commit a5c054ea9e
10 changed files with 103 additions and 49 deletions

View File

@ -29,9 +29,13 @@
"re": "/releases/tag/v([\\d.]+)"
},
"autoupdate": {
"url": {
"64bit": "https://github.com/mholt/caddy/releases/download/v$version/caddy_windows_amd64.zip",
"32bit": "https://github.com/mholt/caddy/releases/download/v$version/caddy_windows_386.zip"
"architecture": {
"64bit": {
"url": "https://github.com/mholt/caddy/releases/download/v$version/caddy_windows_amd64.zip"
},
"32bit": {
"url": "https://github.com/mholt/caddy/releases/download/v$version/caddy_windows_386.zip"
}
},
"hash": {
"mode": "download"

View File

@ -14,13 +14,17 @@
},
"bin": "curl.exe",
"checkver": {
"url": "https://curl.haxx.se/download.html",
"re": "curl ([\\d.]+)"
"url": "https://curl.haxx.se/download.html",
"re": "curl ([\\d.]+)"
},
"autoupdate": {
"url": {
"64bit": "http://winampplugins.co.uk/curl/curl_$underscoreVersion_openssl_nghttp2_x64.7z",
"32bit": "http://winampplugins.co.uk/curl/curl_$underscoreVersion_openssl_nghttp2_x86.7z"
"architecture": {
"64bit": {
"url": "http://winampplugins.co.uk/curl/curl_$underscoreVersion_openssl_nghttp2_x64.7z"
},
"32bit": {
"url": "http://winampplugins.co.uk/curl/curl_$underscoreVersion_openssl_nghttp2_x86.7z"
}
},
"hash": {
"mode": "download"

10
go.json
View File

@ -19,9 +19,13 @@
},
"checkver": "Build version go([\\d\\.]+)\\.",
"autoupdate": {
"url": {
"64bit": "https://storage.googleapis.com/golang/go$version.windows-amd64.zip",
"32bit": "https://storage.googleapis.com/golang/go$version.windows-386.zip"
"architecture": {
"64bit": {
"url": "https://storage.googleapis.com/golang/go$version.windows-amd64.zip"
},
"32bit": {
"url": "https://storage.googleapis.com/golang/go$version.windows-386.zip"
}
},
"hash": {
"mode": "extract",

View File

@ -30,9 +30,13 @@
],
"checkver": "The current release is ImageMagick <a.*?>([0-9\\.p-]+)</a>",
"autoupdate": {
"url": {
"64bit": "https://www.imagemagick.org/download/binaries/ImageMagick-$version-portable-Q16-x64.zip",
"32bit": "https://www.imagemagick.org/download/binaries/ImageMagick-$version-portable-Q16-x86.zip"
"architecture": {
"64bit": {
"url": "https://www.imagemagick.org/download/binaries/ImageMagick-$version-portable-Q16-x64.zip"
},
"32bit": {
"url": "https://www.imagemagick.org/download/binaries/ImageMagick-$version-portable-Q16-x86.zip"
}
},
"hash": {
"mode": "rdf",

View File

@ -22,9 +22,13 @@ npm update -g",
"re": "LTS version: <strong>v([\\d.]+)</strong>"
},
"autoupdate": {
"url": {
"64bit": "https://nodejs.org/dist/v$version/node-v$version-x64.msi",
"32bit": "https://nodejs.org/dist/v$version/node-v$version-x86.msi"
"architecture": {
"64bit": {
"url": "https://nodejs.org/dist/v$version/node-v$version-x64.msi"
},
"32bit": {
"url": "https://nodejs.org/dist/v$version/node-v$version-x86.msi"
}
},
"hash": {
"mode": "extract",

View File

@ -22,9 +22,13 @@ npm update -g",
"re": "Current version: <strong>v([\\d.]+)</strong>"
},
"autoupdate": {
"url": {
"64bit": "https://nodejs.org/dist/v$version/node-v$version-x64.msi",
"32bit": "https://nodejs.org/dist/v$version/node-v$version-x86.msi"
"architecture": {
"64bit": {
"url": "https://nodejs.org/dist/v$version/node-v$version-x64.msi"
},
"32bit": {
"url": "https://nodejs.org/dist/v$version/node-v$version-x86.msi"
}
},
"hash": {
"mode": "extract",

View File

@ -1,23 +1,41 @@
{
"homepage": "https://nssm.cc",
"version": "2.24",
"url": "https://nssm.cc/release/nssm-2.24.zip",
"hash": "727d1e42275c605e0f04aba98095c38a8e1e46def453cdffce42869428aa6743",
"architecture": {
"64bit": {
"extract_dir": "nssm-2.24/win64"
"homepage": "https://nssm.cc",
"version": "2.24",
"url": "https://nssm.cc/release/nssm-2.24.zip",
"hash": "727d1e42275c605e0f04aba98095c38a8e1e46def453cdffce42869428aa6743",
"architecture": {
"64bit": {
"extract_dir": "nssm-2.24/win64"
},
"32bit": {
"extract_dir": "nssm-2.24/win32"
}
},
"32bit": {
"extract_dir": "nssm-2.24/win32"
}
},
"bin": [
"nssm.exe",
["nssm.exe", "service"]
],
"checkver": {
"re": "<a href=\"/release/nssm-([\\d.]+)\\.zip\"",
"url": "https://nssm.cc/download"
},
"notes": "Manage Services with NSSM (GUI based) (e.g., 'nssm install nginx' to install nginx as service gui will popup or 'nssm start/status/stop apache').\nVisit https://nssm.cc/commands for more info"
"bin": [
"nssm.exe",
[
"nssm.exe",
"service"
]
],
"checkver": {
"re": "<a href=\"/release/nssm-([\\d.]+)\\.zip\"",
"url": "https://nssm.cc/download"
},
"autoupdate": {
"url": "https://nssm.cc/release/nssm-$version.zip",
"architecture": {
"64bit": {
"extract_dir": "nssm-$version/win64"
},
"32bit": {
"extract_dir": "nssm-$version/win32"
}
},
"hash": {
"mode": "download"
}
},
"notes": "Manage Services with NSSM (GUI based) (e.g., 'nssm install nginx' to install nginx as service gui will popup or 'nssm start/status/stop apache').
Visit https://nssm.cc/commands for more info"
}

View File

@ -22,9 +22,13 @@
"re": "<h3 id=\"php-7.1\".*?>.*?\\(([\\d.]+)\\)</h3>"
},
"autoupdate": {
"url": {
"64bit": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x64.zip",
"32bit": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x86.zip"
"architecture": {
"64bit": {
"url": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x64.zip"
},
"32bit": {
"url": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x86.zip"
}
},
"hash": {
"mode": "extract",

View File

@ -43,9 +43,13 @@ cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"
"re": "<h3 id=\"php-7.1\".*?>.*?\\(([\\d.]+)\\)</h3>"
},
"autoupdate": {
"url": {
"64bit": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x64.zip",
"32bit": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x86.zip"
"architecture": {
"64bit": {
"url": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x64.zip"
},
"32bit": {
"url": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x86.zip"
}
},
"hash": {
"mode": "extract",

10
pt.json
View File

@ -18,9 +18,13 @@
"re": "/releases/tag/v([\\d.]+)"
},
"autoupdate": {
"url": {
"64bit": "https://github.com/monochromegane/the_platinum_searcher/releases/download/v$version/pt_windows_amd64.zip",
"32bit": "https://github.com/monochromegane/the_platinum_searcher/releases/download/v$version/pt_windows_386.zip"
"architecture": {
"64bit": {
"url": "https://github.com/monochromegane/the_platinum_searcher/releases/download/v$version/pt_windows_amd64.zip"
},
"32bit": {
"url": "https://github.com/monochromegane/the_platinum_searcher/releases/download/v$version/pt_windows_386.zip"
}
},
"hash": {
"mode": "download"