Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions rules/chrome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"patterns": [
"\\bchrome\\b"
],
"dependencies": [
{
"pre_install": [
{ "command": "apt-get install -y gnupg wget" },
{ "command": "if [ -z $(which google-chrome) ]; then wget -O /tmp/google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb; fi" },
{ "command": "if [ -z $(which google-chrome) ]; then DEBIAN_FRONTEND='noninteractive' apt-get install -y /tmp/google-chrome.deb; fi" }
],
"packages": [],
"post_install": [
{ "command": "[ -e /tmp/google-chrome.deb ] && rm /tmp/google-chrome.deb" }
],
"constraints": [
{
"os": "linux",
"distribution": "ubuntu",
"versions": ["16.04", "18.04", "20.04"]
}
]
},
{
"pre_install": [
{ "command": "yum install -y which" },
{ "command": "if [ -z $(which google-chrome) ]; then wget -O - https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm > /tmp/google-chrome.rpm; fi" },
{ "command": "if [ -z $(which google-chrome) ]; then yum install -y /tmp/google-chrome.rpm; fi" }
],
"packages": [],
"post_install": [
{ "command": "[ -e /tmp/google-chrome.rpm ] && rm /tmp/google-chrome.rpm" }
],
"constraints": [
{
"os": "linux",
"distribution": "centos"
}
]
}
]
}
88 changes: 0 additions & 88 deletions rules/chromium.json

This file was deleted.