mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-04 07:41:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			67 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "3.3.1",
 | 
						|
    "description": "TLS/SSL toolkit",
 | 
						|
    "homepage": "https://slproweb.com/products/Win32OpenSSL.html",
 | 
						|
    "license": "Apache-2.0",
 | 
						|
    "architecture": {
 | 
						|
        "64bit": {
 | 
						|
            "url": "https://slproweb.com/download/Win64OpenSSL-3_3_1.exe",
 | 
						|
            "hash": "5abcdf40fc50cd86a34fb26977887f03cce0fac099f3617d1552b4b60a852bc4"
 | 
						|
        },
 | 
						|
        "32bit": {
 | 
						|
            "url": "https://slproweb.com/download/Win32OpenSSL-3_3_1.exe",
 | 
						|
            "hash": "cfb9e91955d113707a1f1c68597a3c718b2086e4b269fbf78f18c16c099f1532"
 | 
						|
        },
 | 
						|
        "arm64": {
 | 
						|
            "url": "https://slproweb.com/download/Win64ARMOpenSSL-3_3_1.exe",
 | 
						|
            "hash": "6c8ca6ce15b09d4751f998e2dbff3ca788ce089ce9f60958a3e673d534374b3b"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "pre_install": [
 | 
						|
        "$arch = switch ($architecture) {",
 | 
						|
        "    '64bit' { 'x64'; break }",
 | 
						|
        "    '32bit' { 'x32'; break }",
 | 
						|
        "    'arm64' { $architecture; break }",
 | 
						|
        "}",
 | 
						|
        "if ([System.Environment]::OSVersion.Version -lt [Version]10.0.14972.0) {",
 | 
						|
        "    return $null = Get-ChildItem \"$dir/lib/VC/$arch/MT\" | ForEach-Object { Copy-Item $_.FullName \"$dir/lib/$($_.Name)\" }",
 | 
						|
        "}",
 | 
						|
        "Receive-Job -Wait (Start-Job {",
 | 
						|
        "    $kernel32 = Add-Type -MemberDefinition '[DllImport(\"kernel32.dll\")] public static extern bool CreateSymbolicLink(string lpSymlinkFileName, string lpTargetFileName, byte dwFlags);' -Name '_' -PassThru",
 | 
						|
        "    $null = Get-ChildItem \"$Using:dir/lib/VC/$Using:arch/MT\" | ForEach-Object { $kernel32::CreateSymbolicLink(\"$Using:dir/lib/$($_.Name)\", $_.FullName, 2) }",
 | 
						|
        "})"
 | 
						|
    ],
 | 
						|
    "innosetup": true,
 | 
						|
    "env_add_path": "bin",
 | 
						|
    "env_set": {
 | 
						|
        "OPENSSL_ROOT_DIR": "$dir",
 | 
						|
        "OPENSSL_LIB_DIR": "$dir\\lib",
 | 
						|
        "OPENSSL_INCLUDE_DIR": "$dir\\include",
 | 
						|
        "OPENSSL_MODULES": "$dir\\bin",
 | 
						|
        "OPENSSL_CONF": "$dir\\bin\\cnf\\openssl.cnf"
 | 
						|
    },
 | 
						|
    "checkver": {
 | 
						|
        "url": "https://raw.githubusercontent.com/slproweb/opensslhashes/master/win32_openssl_hashes.json",
 | 
						|
        "jsonpath": "$.files..basever",
 | 
						|
        "regex": "([\\d.]+)",
 | 
						|
        "reverse": true
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "architecture": {
 | 
						|
            "64bit": {
 | 
						|
                "url": "https://slproweb.com/download/Win64OpenSSL-$underscoreVersion.exe"
 | 
						|
            },
 | 
						|
            "32bit": {
 | 
						|
                "url": "https://slproweb.com/download/Win32OpenSSL-$underscoreVersion.exe"
 | 
						|
            },
 | 
						|
            "arm64": {
 | 
						|
                "url": "https://slproweb.com/download/Win64ARMOpenSSL-$underscoreVersion.exe"
 | 
						|
            }
 | 
						|
        },
 | 
						|
        "hash": {
 | 
						|
            "url": "https://raw.githubusercontent.com/slproweb/opensslhashes/master/win32_openssl_hashes.json",
 | 
						|
            "jsonpath": "$.files.['$basename'].sha256"
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |