Commit Graph

4 Commits

Author SHA1 Message Date
DontEatOreo
744a8ebe89
google-chrome: add shellcheck 2024-10-16 16:32:12 +03:00
DontEatOreo
77ead85152
google-chrome: fix URL encoding for version filter 2024-10-16 16:31:29 +03:00
John Titor
bc4914bcf1
google-chrome: fix update script
Chrome uses partial rollout for Darwin and Windows

This is represented by `fractionGroup` and `fraction`.

0.25 means 25% of users, 0.5 means 50% of users and so on.

Partial rollouts aren't done on linux, and so `fraction` and `fractionalGroup` is always 1 for it.

Here we add some additional parameters to chrome version history api endpoint, to get the latest version, sort the versions in descending order.

These parameters are redundant on Linux but kept anyway.

See https://github.com/NixOS/nixpkgs/pull/343552#issuecomment-2366799267
Docs: https://developer.chrome.com/docs/web-platform/versionhistory/reference#filter
2024-09-22 23:19:09 +05:30
DontEatOreo
dc77c81ef9
google-chrome: add darwin support, move updateScript out
google-chrome: fix launch error on linux
Co-authored-by: Masum Reza <masumrezarock100@gmail.com>

google-chrome: fix updater script to use /usr/bin/env nix-shell
Co-authored-by: Jon Seager <jon@sgrs.uk>
2024-08-10 02:18:39 +05:30