MongoDB: fix checkver (#399)

Co-Authored-By: Jakub Čábera <cabera.jakub@gmail.com>
This commit is contained in:
linsui 2019-09-05 16:39:22 +00:00 committed by Richard Kuhnt
parent d4587cd9ed
commit d1a168817e

View File

@ -1,18 +1,26 @@
{ {
"homepage": "https://www.mongodb.org", "homepage": "https://www.mongodb.org",
"description": "A document database with the scalability and flexibility.", "description": "A document database with the scalability and flexibility.",
"version": "4.0.12", "version": "4.2.0",
"license": { "license": {
"identifier": "SSPL-1.0", "identifier": "SSPL-1.0",
"url": "https://www.mongodb.com/licensing/server-side-public-license" "url": "https://www.mongodb.com/licensing/server-side-public-license"
}, },
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.12-signed.msi", "url": "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.0-signed.msi",
"hash": "381bdcdce1d81eef0e44cfa05101a580d831310390821fb943a72780ef4023c9", "hash": "f1a4f3771563a747a26d8a22990483dcfb6a0f68026672edd5996fdbee35cbcc",
"extract_dir": "MongoDB\\Server\\4.0" "extract_dir": "MongoDB\\Server\\4.2"
} }
}, },
"pre_install": [
"if (!(Test-Path \"$persist_dir\\bin\\mongod.cfg\")) {",
" $cfg = Get-Content \"$dir\\bin\\mongod.cfg\"",
" $cfg = $cfg -replace '%MONGO_DATA_PATH%', \"$dir\\data\"",
" $cfg = $cfg -replace '%MONGO_LOG_PATH%', \"$dir\\log\"",
" Set-Content \"$dir\\bin\\mongod.cfg\" $cfg -Encoding Ascii -Force",
"}"
],
"bin": [ "bin": [
"bin\\bsondump.exe", "bin\\bsondump.exe",
"bin\\mongo.exe", "bin\\mongo.exe",
@ -30,13 +38,6 @@
"bin\\mongostat.exe", "bin\\mongostat.exe",
"bin\\mongotop.exe" "bin\\mongotop.exe"
], ],
"post_install": [
"$file = \"$dir\\bin\\mongod.cfg\"",
"$cfg = (Get-Content $file)",
"$cfg = $cfg -replace '%MONGO_DATA_PATH%', \"$dir\\data\"",
"$cfg = $cfg -replace '%MONGO_LOG_PATH%', \"$dir\\log\"",
"Set-Content $file ($cfg -join \"`n\") -Encoding Ascii -Force"
],
"persist": [ "persist": [
"bin\\mongod.cfg", "bin\\mongod.cfg",
"data", "data",
@ -44,12 +45,12 @@
], ],
"checkver": { "checkver": {
"url": "https://www.mongodb.com/download-center/community", "url": "https://www.mongodb.com/download-center/community",
"re": "([\\d.]+) \\(current release\\)" "regex": "win32/mongodb-win32-x86_64-(?<target>[\\w-]+)-([\\d.]+)-signed"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-$version-signed.msi", "url": "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-$matchTarget-$version-signed.msi",
"hash": { "hash": {
"url": "$url.sha256" "url": "$url.sha256"
}, },
@ -58,7 +59,7 @@
} }
}, },
"suggest": { "suggest": {
"vcredist": "extras/vcredist2017" "Visual C/C++ Redistributable 2017": "extras/vcredist2017"
}, },
"notes": [ "notes": [
"Windows server 2012/2008 and Windows 7/8/8.1 need KB2999226 to provide Universal C Runtime support for Windows.", "Windows server 2012/2008 and Windows 7/8/8.1 need KB2999226 to provide Universal C Runtime support for Windows.",