mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-04 07:41:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			74 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "homepage": "https://www.mongodb.org",
 | 
						|
    "description": "A document database with the scalability and flexibility.",
 | 
						|
    "version": "4.2.6",
 | 
						|
    "license": {
 | 
						|
        "identifier": "SSPL-1.0",
 | 
						|
        "url": "https://www.mongodb.com/licensing/server-side-public-license"
 | 
						|
    },
 | 
						|
    "architecture": {
 | 
						|
        "64bit": {
 | 
						|
            "url": "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.6-signed.msi",
 | 
						|
            "hash": "401ebc0c087058cd98194046bbd4fbee243592cf9397f36a1fafa208de4ac21e",
 | 
						|
            "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\\bsondump.exe",
 | 
						|
        "bin\\mongo.exe",
 | 
						|
        [
 | 
						|
            "bin\\mongod.exe",
 | 
						|
            "mongod",
 | 
						|
            "--config \"$dir\\bin\\mongod.cfg\""
 | 
						|
        ],
 | 
						|
        "bin\\mongodump.exe",
 | 
						|
        "bin\\mongoexport.exe",
 | 
						|
        "bin\\mongofiles.exe",
 | 
						|
        "bin\\mongoimport.exe",
 | 
						|
        "bin\\mongorestore.exe",
 | 
						|
        "bin\\mongos.exe",
 | 
						|
        "bin\\mongostat.exe",
 | 
						|
        "bin\\mongotop.exe"
 | 
						|
    ],
 | 
						|
    "persist": [
 | 
						|
        "bin\\mongod.cfg",
 | 
						|
        "data",
 | 
						|
        "log"
 | 
						|
    ],
 | 
						|
    "checkver": {
 | 
						|
        "url": "https://www.mongodb.com/download-center/community",
 | 
						|
        "regex": "win32/mongodb-win32-x86_64-(?<target>[\\w-]+)-([\\d.]+)-signed"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "architecture": {
 | 
						|
            "64bit": {
 | 
						|
                "url": "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-$matchTarget-$version-signed.msi",
 | 
						|
                "hash": {
 | 
						|
                    "url": "$url.sha256"
 | 
						|
                },
 | 
						|
                "extract_dir": "MongoDB\\Server\\$majorVersion.$minorVersion"
 | 
						|
            }
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "suggest": {
 | 
						|
        "Visual C/C++ Redistributable 2017": "extras/vcredist2017"
 | 
						|
    },
 | 
						|
    "notes": [
 | 
						|
        "Windows server 2012/2008 and Windows 7/8/8.1 need KB2999226 to provide Universal C Runtime support for Windows.",
 | 
						|
        "For more infomations, please refer to:",
 | 
						|
        "https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows",
 | 
						|
        "",
 | 
						|
        "mongod shim use \"$dir\\bin\\mongod.cfg\" as the default config file.",
 | 
						|
        "To use a different config file, please run",
 | 
						|
        "\"$dir\\bin\\mongod.exe --config NEW_CONFIG_FILE\""
 | 
						|
    ]
 | 
						|
}
 |