mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-10-31 13:51:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			93 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			93 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "version": "4.1.1-4",
 | |
|     "description": "Encode input data in a QR Code symbol",
 | |
|     "homepage": "https://fukuchi.org/works/qrencode/",
 | |
|     "license": "LGPL-2.1-only",
 | |
|     "architecture": {
 | |
|         "64bit": {
 | |
|             "url": [
 | |
|                 "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-qrencode-4.1.1-4-any.pkg.tar.zst",
 | |
|                 "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libwinpthread-12.0.0.r747.g1a99f8514-1-any.pkg.tar.zst",
 | |
|                 "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libpng-1.6.48-1-any.pkg.tar.zst",
 | |
|                 "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-zlib-1.3.1-1-any.pkg.tar.zst"
 | |
|             ],
 | |
|             "hash": [
 | |
|                 "d91ac6591af8ba43f3e3b1481b855f79b918f87d013fde143e3ed3a3e8a265ca",
 | |
|                 "8a6ea065eed54a55bca897e1aef91ca0274e02223f7e1e4ca6b41595ea4a5540",
 | |
|                 "ffaf3be414d9bab82f6e3315c27d777412dbef32275f3751a1b924e4e2524da5",
 | |
|                 "ca04caafd73e15de216502d53038406e79d29b20c47d9a409e9b2d12858105f0"
 | |
|             ]
 | |
|         }
 | |
|     },
 | |
|     "pre_install": [
 | |
|         "movedir \"$dir\\mingw64\" \"$dir\" | Out-Null",
 | |
|         "$keep_files = @(\"$dir\\bin\\qrencode.exe\",",
 | |
|         "                \"$dir\\bin\\libqrencode.dll\",",
 | |
|         "                \"$dir\\bin\\libwinpthread-1.dll\",",
 | |
|         "                \"$dir\\bin\\libpng16-16.dll\",",
 | |
|         "                \"$dir\\bin\\zlib1.dll\",",
 | |
|         "                \"$dir\\share\\licenses\\qrencode\\COPYING\",",
 | |
|         "                \"$dir\\share\\man\\man1\\qrencode.1.gz\")",
 | |
|         "",
 | |
|         "Get-ChildItem \"$dir\" -Recurse                 |",
 | |
|         "    Select-Object -ExpandProperty FullName      |",
 | |
|         "    Where-Object {$keep_files -notcontains $_ } |",
 | |
|         "    Sort-Object Length -Descending              |",
 | |
|         "    ForEach-Object { if ((Test-Path $_ -Type Container) -and (Get-ChildItem $_)) { return } Remove-Item $_ }"
 | |
|     ],
 | |
|     "bin": "bin\\qrencode.exe",
 | |
|     "checkver": {
 | |
|         "script": [
 | |
|             "$base_url = 'https://packages.msys2.org/base/'",
 | |
|             "$version_regex = \"Version:.+\\s+<.+>([\\d.-]+)\"",
 | |
|             "",
 | |
|             "$qrencode_page = (Invoke-WebRequest \"${base_url}mingw-w64-qrencode\" -UseBasicParsing).Content",
 | |
|             "$libwinpthread_page = (Invoke-WebRequest \"${base_url}mingw-w64-winpthreads\" -UseBasicParsing).Content",
 | |
|             "$libpng_page = (Invoke-WebRequest \"${base_url}mingw-w64-libpng\" -UseBasicParsing).Content",
 | |
|             "$zlib_page = (Invoke-WebRequest \"${base_url}mingw-w64-zlib\" -UseBasicParsing).Content",
 | |
|             "",
 | |
|             "if(!($qrencode_page -match $version_regex)) { error \"No match found for version\"; continue }",
 | |
|             "$scriptver = $matches[1]",
 | |
|             "if(!($libwinpthread_page -match \"(?:\\d+.){3}(?:\\w+.){2}-\\d+\")) { error \"No match found for version\"; continue }",
 | |
|             "$libwinpthread_version = $matches[0]",
 | |
|             "if(!($libpng_page -match $version_regex)) { error \"No match found for version\"; continue }",
 | |
|             "$libpng_version = $matches[1]",
 | |
|             "if(!($zlib_page -match $version_regex)) { error \"No match found for version\"; continue }",
 | |
|             "$zlib_version = $matches[1]",
 | |
|             "",
 | |
|             "Write-Output $scriptver $libwinpthread_version $libpng_version $zlib_version"
 | |
|         ],
 | |
|         "regex": "(?<version>[\\d.-]+)\\s(?<libwinpthreadversion>(?:\\d+.){3}(?:\\w+.){2}-\\d+)\\s(?<libpngversion>[\\d.-]+)\\s(?<zlibversion>[\\d.-]+)"
 | |
|     },
 | |
|     "autoupdate": {
 | |
|         "architecture": {
 | |
|             "64bit": {
 | |
|                 "url": [
 | |
|                     "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-qrencode-$matchVersion-any.pkg.tar.zst",
 | |
|                     "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libwinpthread-$matchLibwinpthreadversion-any.pkg.tar.zst",
 | |
|                     "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libpng-$matchLibpngversion-any.pkg.tar.zst",
 | |
|                     "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-zlib-$matchZlibversion-any.pkg.tar.zst"
 | |
|                 ],
 | |
|                 "hash": [
 | |
|                     {
 | |
|                         "url": "https://packages.msys2.org/packages/mingw-w64-x86_64-qrencode",
 | |
|                         "regex": "SHA256:.+\\s+<.+>$sha256"
 | |
|                     },
 | |
|                     {
 | |
|                         "url": "https://packages.msys2.org/packages/mingw-w64-x86_64-libwinpthread",
 | |
|                         "regex": "SHA256:.+\\s+<.+>$sha256"
 | |
|                     },
 | |
|                     {
 | |
|                         "url": "https://packages.msys2.org/packages/mingw-w64-x86_64-libpng",
 | |
|                         "regex": "SHA256:.+\\s+<.+>$sha256"
 | |
|                     },
 | |
|                     {
 | |
|                         "url": "https://packages.msys2.org/packages/mingw-w64-x86_64-zlib",
 | |
|                         "regex": "SHA256:.+\\s+<.+>$sha256"
 | |
|                     }
 | |
|                 ]
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 | 
