Skip to content

Commit

Permalink
adding back in more input vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Dec 12, 2023
1 parent 62a8ab4 commit fd106df
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions SharedProcessors/GoogleChromeUpdateInfoProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ class GoogleChromeUpdateInfoProvider(Processor):
"Provides download information for the latest version of Google Chrome."
)
input_variables = {
# "chrome_channel": {
# "required": False,
# "default": "stable",
# "description": "Update channel (e.g., stable, beta, dev).",
# },
"chrome_channel": {
"required": False,
"default": "stable",
"description": "Update channel (e.g., stable, beta, dev).",
},
"chrome_os_platform": {
"required": False,
"default": "win",
"description": "Operating system (e.g., win, mac, linux).",
},
# "chrome_os_arch": {
# "required": False,
# "default": "x64",
# "description": "Architecture (e.g., x64, x86).",
# },
"chrome_os_arch": {
"required": False,
"default": "",
"description": "Architecture (e.g., x64, x86).",
},
"chrome_os_version": {
"required": False,
"default": "10.0",
Expand Down Expand Up @@ -75,9 +75,9 @@ def main(self):
request_id = str(uuid.uuid4()).upper()
# session_id = str(uuid.uuid4()).upper()

# channel = self.env.get("chrome_channel")
chrome_channel = self.env.get("chrome_channel")
chrome_os_platform = self.env.get("chrome_os_platform")
# arch = self.env.get("chrome_os_arch")
chrome_os_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", "")
Expand Down Expand Up @@ -118,10 +118,10 @@ def main(self):
# from: https://gist.github.com/pudquick/8cd029d0967ee6f5ee353ed5a967f33c
update_request = f"""<?xml version="1.0" encoding="UTF-8"?>
<request protocol="3.0" requestid="{{{request_id}}}">
<os platform="{chrome_os_platform}" version="{chrome_os_version}" />
<app appid="{chrome_appid}">
<updatecheck />
</app>
<os platform="{chrome_os_platform}" version="{chrome_os_version}" arch="{chrome_os_arch}" />
<app appid="{chrome_appid}" ismachine="1" release_channel="{chrome_channel}">
<updatecheck />
</app>
</request>
"""

Expand Down

0 comments on commit fd106df

Please sign in to comment.