generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xrgzs
committed
Nov 15, 2024
1 parent
a5a1685
commit 9836b33
Showing
1 changed file
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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=====(?<x64>.+)=====x86=====(?<x86>.+)=====arm64=====(?<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" | ||
} | ||
} | ||
} | ||
} | ||
} |