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.]+)" "re": "/releases/tag/v([\\d.]+)"
}, },
"autoupdate": { "autoupdate": {
"url": { "architecture": {
"64bit": "https://github.com/mholt/caddy/releases/download/v$version/caddy_windows_amd64.zip", "64bit": {
"32bit": "https://github.com/mholt/caddy/releases/download/v$version/caddy_windows_386.zip" "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": { "hash": {
"mode": "download" "mode": "download"

View File

@ -18,9 +18,13 @@
"re": "curl ([\\d.]+)" "re": "curl ([\\d.]+)"
}, },
"autoupdate": { "autoupdate": {
"url": { "architecture": {
"64bit": "http://winampplugins.co.uk/curl/curl_$underscoreVersion_openssl_nghttp2_x64.7z", "64bit": {
"32bit": "http://winampplugins.co.uk/curl/curl_$underscoreVersion_openssl_nghttp2_x86.7z" "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": { "hash": {
"mode": "download" "mode": "download"

10
go.json
View File

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

View File

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

View File

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

View File

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

View File

@ -13,11 +13,29 @@
}, },
"bin": [ "bin": [
"nssm.exe", "nssm.exe",
["nssm.exe", "service"] [
"nssm.exe",
"service"
]
], ],
"checkver": { "checkver": {
"re": "<a href=\"/release/nssm-([\\d.]+)\\.zip\"", "re": "<a href=\"/release/nssm-([\\d.]+)\\.zip\"",
"url": "https://nssm.cc/download" "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" "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>" "re": "<h3 id=\"php-7.1\".*?>.*?\\(([\\d.]+)\\)</h3>"
}, },
"autoupdate": { "autoupdate": {
"url": { "architecture": {
"64bit": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x64.zip", "64bit": {
"32bit": "http://windows.php.net/downloads/releases/php-$version-Win32-VC14-x86.zip" "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": { "hash": {
"mode": "extract", "mode": "extract",

View File

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

10
pt.json
View File

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