diff --git a/SharedProcessors/GoogleChromeUpdateInfoProvider.py b/SharedProcessors/GoogleChromeUpdateInfoProvider.py index c7d5bb4..56e2246 100644 --- a/SharedProcessors/GoogleChromeUpdateInfoProvider.py +++ b/SharedProcessors/GoogleChromeUpdateInfoProvider.py @@ -32,12 +32,12 @@ class GoogleChromeUpdateInfoProvider(Processor): # "default": "stable", # "description": "Update channel (e.g., stable, beta, dev).", # }, - "chrome_os": { + "chrome_os_platform": { "required": False, "default": "win", "description": "Operating system (e.g., win, mac, linux).", }, - # "chrome_arch": { + # "chrome_os_arch": { # "required": False, # "default": "x64", # "description": "Architecture (e.g., x64, x86).", @@ -75,12 +75,36 @@ def main(self): # session_id = str(uuid.uuid4()).upper() # channel = self.env.get("chrome_channel") - os = self.env.get("chrome_os") - # arch = self.env.get("chrome_arch") - os_version = self.env.get("chrome_os_version") + chrome_os_platform = self.env.get("chrome_os_platform") + # arch = self.env.get("chrome_os_arch") + chrome_os_version = self.env.get("chrome_os_version") # chrome_version = self.env.get("chrome_version", "") chrome_appid = self.env.get("chrome_appid", "") + # chrome_os_platform must be one of: + # "android" or "Android": Android. + # "chromeos" or "ChromeOS" or "Chrome OS": Chrome OS. + # "chromiumos" or "ChromiumOS" or "Chromium OS": Chromium OS. + # "dragonfly": DragonFly BSD. + # "freebsd" or "FreeBSD": FreeBSD. + # "Fuchsia": Fuchsia. + # "ios" or "iOS": Apple iOS. + # "linux" or "Linux": Linux and its derivatives, except as mentioned below. + # "mac" or "Mac OS X": Apple macOS and its derivatives. + # "openbsd" or "OpenBSD": OpenBSD. + # "Solaris": Solaris. + # "win" or "Windows": Microsoft Windows and its derivatives. + # "Unknown": Sent by some clients instead of "" when the platform is not recognized. + + # chrome_os_arch must be one of: + # "arm": ARM + # "arm64": 64-bit ARM + # "x86": x86 + # "x86_64": x86-64 + # "x64": x64 + + # ------------ + # update_request = f""" # @@ -93,7 +117,7 @@ def main(self): # from: https://gist.github.com/pudquick/8cd029d0967ee6f5ee353ed5a967f33c update_request = f""" - + diff --git a/Test-Recipes/GoogleChromeUpdateInfoProvider.test.recipe.yaml b/Test-Recipes/GoogleChromeUpdateInfoProvider.test.recipe.yaml index 7bfd85c..c9ee0ef 100644 --- a/Test-Recipes/GoogleChromeUpdateInfoProvider.test.recipe.yaml +++ b/Test-Recipes/GoogleChromeUpdateInfoProvider.test.recipe.yaml @@ -14,7 +14,7 @@ Process: - Processor: com.github.jgstew.SharedProcessors/GoogleChromeUpdateInfoProvider Arguments: - chrome_os: mac + chrome_os_platform: mac chrome_os_version: "10.12" chrome_appid: com.google.Chrome