From 9836b336261b720f06fcd962c278190280d4792c Mon Sep 17 00:00:00 2001 From: xrgzs Date: Fri, 15 Nov 2024 16:49:04 +0800 Subject: [PATCH] chrome: add version 131.0.6778.70 --- bucket/chrome.json | 95 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 bucket/chrome.json diff --git a/bucket/chrome.json b/bucket/chrome.json new file mode 100644 index 0000000..8a63a9e --- /dev/null +++ b/bucket/chrome.json @@ -0,0 +1,95 @@ +{ + "version": "131.0.6778.70", + "description": "Fast, secure, and free web browser, built for the modern web.", + "homepage": "https://www.google.com/chrome/", + "license": { + "identifier": "Freeware", + "url": "https://www.google.com/chrome/privacy/eula_text.html" + }, + "architecture": { + "64bit": { + "url": "https://dl.google.com/release2/chrome/acimyxtg5cw5utmscy2pawhotzlq_131.0.6778.70/131.0.6778.70_chrome_installer.exe#/dl.7z", + "hash": "13fe07984917a6765fad62c368c4a6b066227e45ee1557ddf1a4b440607d1e0c" + }, + "32bit": { + "url": "https://dl.google.com/release2/chrome/adz5nxa77yhau65evk326ny3bl4q_131.0.6778.70/131.0.6778.70_chrome_installer.exe#/dl.7z", + "hash": "180176d456b7e42d7254e94c340be98e530b28c4264e41b6981f82ea1c3144dd" + }, + "arm64": { + "url": "https://dl.google.com/release2/chrome/acvwa3ydi6awq4sfw6idhbtbvfmq_131.0.6778.70/131.0.6778.70_chrome_installer.exe#/dl.7z", + "hash": "6bd27116ba00cc6abbd6a54447816ab821915bd6d4fba8a75e5260b09337bde3" + } + }, + "bin": "chrome.exe", + "shortcuts": [ + [ + "chrome.exe", + "Google Chrome" + ] + ], + "env_set": { + "CHROME_EXECUTABLE": "$dir\\chrome.exe" + }, + "persist": "User Data", + "installer": { + "script": [ + ". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"", + "New-PersistDirectory \"$env:LocalAppData\\Google\\Chrome\\User Data\" \"$persist_dir\\User Data\" -Migrate", + "Expand-7zipArchive \"$dir\\chrome.7z\" -ExtractDir 'Chrome-bin' -Removal" + ] + }, + "post_install": [ + "$scoop_startmenu_folder = shortcut_folder $global", + "Copy-Item -Path \"$scoop_startmenu_folder\\Google Chrome.lnk\" -Destination \"$env:USERPROFILE\\Desktop\\Google Chrome.lnk\" -Force -ErrorAction SilentlyContinue | Out-Null" + ], + "pre_uninstall": [ + "$bucket = $install.bucket", + ". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"", + "Stop-App", + "Remove-Junction \"$env:LocalAppData\\Google\\Chrome\\User Data\"" + ], + "uninstaller": { + "script": [ + "if ($cmd -eq 'uninstall') {", + " Remove-Item -Path \"$env:LOCALAPPDATA\\Google\\Chrome\" -Recurse -Force -ErrorAction SilentlyContinue | Out-Null", + " Remove-Item -Path HKCU:\\SOFTWARE\\Google\\Chrome -Recurse -Force -ErrorAction SilentlyContinue | Out-Null", + "}" + ] + }, + "post_uninstall": "Remove-Item \"$env:USERPROFILE\\Desktop\\Google Chrome.lnk\" -Force -ErrorAction SilentlyContinue | Out-Null", + "checkver": { + "script": [ + "$data = Invoke-RestMethod -Uri \"https://raw.githubusercontent.com/Bush2021/chrome_installer/refs/heads/main/data.json\"", + "\"=====version=====\" + $data.win_stable_x64.version +", + "\"=====x64=====\" + ($data.win_stable_x64.urls | Where-Object { $_ -match \"^https://dl.google.com\" } | Select-Object -First 1) +", + "\"=====x86=====\" + ($data.win_stable_x86.urls | Where-Object { $_ -match \"^https://dl.google.com\" } | Select-Object -First 1) +", + "\"=====arm64=====\" + ($data.win_stable_arm64.urls | Where-Object { $_ -match \"^https://dl.google.com\" } | Select-Object -First 1)" + ], + "regex": "=====version=====(.+)=====x64=====(?.+)=====x86=====(?.+)=====arm64=====(?.+)" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "$matchX64#/dl.7z", + "hash": { + "url": "https://raw.githubusercontent.com/Bush2021/chrome_installer/refs/heads/main/data.json", + "jsonpath": "$.win_stable_x64.sha256" + } + }, + "32bit": { + "url": "$matchX86#/dl.7z", + "hash": { + "url": "https://raw.githubusercontent.com/Bush2021/chrome_installer/refs/heads/main/data.json", + "jsonpath": "$.win_stable_x86.sha256" + } + }, + "arm64": { + "url": "$matchArm64#/dl.7z", + "hash": { + "url": "https://raw.githubusercontent.com/Bush2021/chrome_installer/refs/heads/main/data.json", + "jsonpath": "$.win_stable_arm64.sha256" + } + } + } + } +}