dos2unix: add autoupdate section (#451)

* dos2unix: add autoupdate section

See #150.

* Update dos2unix.json

* Update bucket/dos2unix.json

Co-Authored-By: Jakub Čábera <cabera.jakub@gmail.com>

* dos2unix: Run checkver (and fix regex)
This commit is contained in:
Ross Smith II 2019-11-17 17:08:25 -08:00 committed by GitHub
parent 999932bdc2
commit ecf17864a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,16 @@
{
"homepage": "http://dos2unix.sourceforge.net/",
"description": "Convert text files with DOS or Mac line endings to Unix line endings and vice versa",
"version": "7.4.0",
"version": "7.4.1",
"license": "BSD-2-Clause",
"architecture": {
"64bit": {
"url": "https://downloads.sourceforge.net/project/dos2unix/dos2unix/7.4.0/dos2unix-7.4.0-win64.zip",
"hash": "1e3db91000c217c2de84f231615a2cc88dad275d8fa0f6698bbfd5f7d0c50a1b"
"url": "https://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.4.1-win64.zip",
"hash": "1d5ba31ffe8e4ec93379bc45822b5c0b1b250ada51786e5051cf1591e4814499"
},
"32bit": {
"url": "https://downloads.sourceforge.net/project/dos2unix/dos2unix/7.4.0/dos2unix-7.4.0-win32.zip",
"hash": "12d9188179b0d5526df9044f0e8d3bc11e80201110fd520f21842e27e4ebd4fe"
"url": "https://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.4.1-win32.zip",
"hash": "76c5f580ed14ad7352fb7b80642e7997e8d16d62bed39f8cc2ff5708f3f9d083"
}
},
"bin": [
@ -21,6 +21,16 @@
],
"checkver": {
"url": "https://waterlan.home.xs4all.nl/dos2unix.html",
"re": "Latest version: (?<version>[\\d.]+) \\([\\d\\-]+\\)"
"regex": "Stable version:\\s+([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://waterlan.home.xs4all.nl/dos2unix/dos2unix-$version-win64.zip"
},
"32bit": {
"url": "https://waterlan.home.xs4all.nl/dos2unix/dos2unix-$version-win32.zip"
}
}
}
}