mirror of
https://github.com/ScoopInstaller/Versions.git
synced 2026-09-07 16:07:37 +08:00
84 lines
3.6 KiB
JSON
84 lines
3.6 KiB
JSON
{
|
|
"version": "155.0.8040.2",
|
|
"description": "Fast, secure, and free web browser, built for the modern web.",
|
|
"homepage": "https://www.google.com/chrome/dev",
|
|
"license": {
|
|
"identifier": "Freeware",
|
|
"url": "https://www.google.com/chrome/privacy/eula_text.html"
|
|
},
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://dl.google.com/release2/chrome/hbzdbvrdpuxfb33mr53er3adnm_155.0.8040.2/155.0.8040.2_chrome_installer_uncompressed.exe#/dl.7z",
|
|
"hash": "b53e6ed9c5b7798183ebc01ef5fb05bf47ce3ee8cbb010c6246700537fed5e42"
|
|
},
|
|
"32bit": {
|
|
"url": "https://dl.google.com/release2/chrome/el2nk6irw47qfq5kqewzsnrwoi_155.0.8040.2/155.0.8040.2_chrome_installer_uncompressed.exe#/dl.7z",
|
|
"hash": "c1d4650a758407487ea562293cef1ff46b8ee773cd0d378657c51f83efc199de"
|
|
},
|
|
"arm64": {
|
|
"url": "https://dl.google.com/release2/chrome/adxb6pcomqfpbrwm7wpggozifrua_155.0.8040.2/155.0.8040.2_chrome_installer_uncompressed.exe#/dl.7z",
|
|
"hash": "68163830472d4c6385e872a598788d89d2c13de0e6c9673c190af6495e632663"
|
|
}
|
|
},
|
|
"extract_dir": "Chrome-bin",
|
|
"bin": [
|
|
[
|
|
"chrome.exe",
|
|
"chrome-dev"
|
|
]
|
|
],
|
|
"shortcuts": [
|
|
[
|
|
"chrome.exe",
|
|
"Google Chrome (Dev)"
|
|
]
|
|
],
|
|
"checkver": {
|
|
"script": [
|
|
"$AppID = '{8A69D345-D564-463C-AFF1-A69D9E530F96}'",
|
|
"$ArchParams = @{",
|
|
" 'x64' ='2.0-dev-arch_x64'",
|
|
" 'x86' ='2.0-dev-arch_x86'",
|
|
" 'arm64' ='2.0-dev-arch_arm64'",
|
|
"}",
|
|
"$BodyTemplate = @(",
|
|
" '<?xml version=\"1.0\" encoding=\"UTF-8\"?>',",
|
|
" '<request protocol=\"3.0\">',",
|
|
" ' <os platform=\"win\" version=\"10.0.22000.0\" arch=\"{0}\"/>',",
|
|
" ' <app appid=\"{1}\" ap=\"{2}\" version=\"\">',",
|
|
" ' <updatecheck/>',",
|
|
" ' </app>',",
|
|
" '</request>'",
|
|
") -join \"`n\"",
|
|
"$ArchURLs = @{}",
|
|
"$Version = $null",
|
|
"forEach ($Arch in $ArchParams.Keys) {",
|
|
" $Body = $BodyTemplate -f $Arch, $AppID, $ArchParams[$Arch]",
|
|
" $Response = Invoke-RestMethod -Uri 'https://update.googleapis.com/service/update2' -Method Post -Body $Body",
|
|
" if ($Arch -eq 'x64') {",
|
|
" $Version = $Response.response.app.updatecheck.manifest.version",
|
|
" }",
|
|
" $BaseURL = $Response.SelectSingleNode(\"//url[starts-with(@codebase, 'https://dl.google.com/release2/chrome/')]\")",
|
|
" $BaseURL.GetAttribute('codebase') -match '^https://dl\\.google\\.com/release2/chrome/(?<URL>[^/]+)/'",
|
|
" $FileName = $Response.SelectSingleNode('//package').GetAttribute('name')",
|
|
" $ArchURLs[$Arch] = \"$($Matches['URL'])/$FileName\"",
|
|
"}",
|
|
"Write-Output \"$Version,$($ArchURLs['x64']),$($ArchURLs['x86']),$($ArchURLs['arm64'])\""
|
|
],
|
|
"regex": "(?<version>[\\d.]+),(?<archx64>[^,]+),(?<archx86>[^,]+),(?<archarm64>[^,]+)"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://dl.google.com/release2/chrome/$matchArchx64#/dl.7z"
|
|
},
|
|
"32bit": {
|
|
"url": "https://dl.google.com/release2/chrome/$matchArchx86#/dl.7z"
|
|
},
|
|
"arm64": {
|
|
"url": "https://dl.google.com/release2/chrome/$matchArcharm64#/dl.7z"
|
|
}
|
|
}
|
|
}
|
|
}
|