diff --git a/brotli.json b/brotli.json index f809248c4a..c1e8fa74d7 100644 --- a/brotli.json +++ b/brotli.json @@ -1,33 +1,42 @@ { - "version": "1.0.4", + "version": "1.0.5", "homepage": "https://brotli.org/", "description": "Lossless compression algorithm", "architecture": { "64bit": { - "url": "https://github.com/google/brotli/releases/download/v1.0.4/brotli-v1.0.4-win_x86_64.zip", - "hash": "c1bee6f06c7e40633965c6d7fdb11edf3c3ed1b7e53c09c07c010757da29a598" + "url": "https://curl.haxx.se/windows/dl-7.61.1/brotli-1.0.5-win64-mingw.tar.xz", + "hash": "c72e9176bc70ebe10e830cd861166bc0d926b0cb6e9aff91c3640761438482ad", + "extract_dir": "brotli-1.0.5-win64-mingw" }, "32bit": { - "url": "https://github.com/google/brotli/releases/download/v1.0.4/brotli-v1.0.4-win_i686.zip", - "hash": "82a47bbee2547fcdcfadf19582fbef793d283e3feaa8f1904d632919f8c8dade" + "url": "https://curl.haxx.se/windows/dl-7.61.1/brotli-1.0.5-win32-mingw.tar.xz", + "hash": "e0e136a62fdaf5982b88b7268a5de5d4c5514ae884f418570547a861c3884421", + "extract_dir": "brotli-1.0.5-win32-mingw" } }, "bin": [ - "brotli.exe", - "unbrotli.exe" + "bin\\brotli.exe", + "bin\\unbrotli.exe" ], - "pre_install": "Copy-Item \"$dir\\brotli.exe\" \"$dir\\unbrotli.exe\"", + "pre_install": "Copy-Item \"$dir\\bin\\brotli.exe\" \"$dir\\bin\\unbrotli.exe\"", "checkver": { - "github": "https://github.com/google/brotli" + "url": "https://curl.haxx.se/windows/", + "re": "dl-(?[\\d.]+)/brotli-(?[\\d.]+)-win64-mingw" }, "autoupdate": { "architecture": { "64bit": { - "url": "https://github.com/google/brotli/releases/download/v$version/brotli-v$version-win_x86_64.zip" + "url": "https://curl.haxx.se/windows/dl-$matchCurl/brotli-$version-win64-mingw.tar.xz", + "extract_dir": "brotli-$version-win64-mingw" }, "32bit": { - "url": "https://github.com/google/brotli/releases/download/v$version/brotli-v$version-win_i686.zip" + "url": "https://curl.haxx.se/windows/dl-$matchCurl/brotli-$version-win32-mingw.tar.xz", + "extract_dir": "brotli-$version-win32-mingw" } + }, + "hash": { + "url": "$baseurl/hashes.txt", + "find": "SHA256\\($basename\\)=\\s+([a-fA-F\\d]{64})" } } }