{
  "patterns": [
    "\\bchrome\\b"
  ],
  "dependencies": [
    {
      "pre_install": [
        { "command": "[ $(which google-chrome) ] || apt-get install -y gnupg curl" },
        { "command": "[ $(which google-chrome) ] || curl -fsSL -o /tmp/google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" },
        { "command": "[ $(which google-chrome) ] || DEBIAN_FRONTEND='noninteractive' apt-get install -y /tmp/google-chrome.deb" }
      ],
      "packages": [],
      "post_install": [
        { "command": "rm -f /tmp/google-chrome.deb" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "pre_install": [
        { "command": "yum install -y which" },
        { "command": "[ $(which google-chrome) ] || curl -fsSL -o /tmp/google-chrome.rpm https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm" },
        { "command": "[ $(which google-chrome) ] || yum install -y /tmp/google-chrome.rpm" }
      ],
      "packages": [],
      "post_install": [
        { "command": "rm -f /tmp/google-chrome.rpm" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["8"]
        },
        {
          "os": "linux",
          "distribution": "rockylinux"
        },
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["8"]
        },
        {
          "os": "linux",
          "distribution": "fedora",
          "versions": [ "36", "37" ]
        }
      ]
    },
    {
      "pre_install": [
        { "command": "yum install -y which" },
        { "command": "[ $(which google-chrome) ] || curl -fsSL -o /tmp/google-chrome.rpm https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-125.0.6422.141-1.x86_64.rpm" },
        { "command": "[ $(which google-chrome) ] || yum install -y /tmp/google-chrome.rpm" }
      ],
      "packages": [],
      "post_install": [
        { "command": "rm -f /tmp/google-chrome.rpm" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["7"]
        },
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["7"]
        }
      ]
    },
    {
      "packages": ["chromium"],
      "constraints": [
        {
          "os": "linux",
            "distribution": "alpine"
        }
      ]
    }
  ]
}
