|
1 | 1 | {
|
2 |
| - "patterns": [ |
3 |
| - "\\bchrome\\b" |
4 |
| - ], |
| 2 | + "patterns": ["\\bchrome\\b", "\\bchromium\\b"], |
5 | 3 | "dependencies": [
|
6 | 4 | {
|
7 | 5 | "pre_install": [
|
8 |
| - { "command": "[ $(which google-chrome) ] || apt-get install -y gnupg curl" }, |
9 |
| - { "command": "[ $(which google-chrome) ] || curl -fsSL -o /tmp/google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" }, |
10 |
| - { "command": "[ $(which google-chrome) ] || DEBIAN_FRONTEND='noninteractive' apt-get install -y /tmp/google-chrome.deb" } |
11 |
| - ], |
12 |
| - "packages": [], |
13 |
| - "post_install": [ |
14 |
| - { "command": "rm -f /tmp/google-chrome.deb" } |
| 6 | + { "command": "apt-get install -y software-properties-common" }, |
| 7 | + { "command": "add-apt-repository -y ppa:xtradeb/apps" }, |
| 8 | + { "command": "apt-get update" } |
15 | 9 | ],
|
| 10 | + "packages": ["chromium"], |
| 11 | + "post_install": [], |
16 | 12 | "constraints": [
|
17 | 13 | {
|
18 | 14 | "os": "linux",
|
19 |
| - "distribution": "ubuntu" |
20 |
| - }, |
21 |
| - { |
22 |
| - "os": "linux", |
23 |
| - "distribution": "debian" |
| 15 | + "distribution": "ubuntu", |
| 16 | + "versions": ["22.04", "24.04"] |
24 | 17 | }
|
25 | 18 | ]
|
26 | 19 | },
|
27 | 20 | {
|
28 | 21 | "pre_install": [
|
29 |
| - { "command": "yum install -y which" }, |
30 |
| - { "command": "[ $(which google-chrome) ] || curl -fsSL -o /tmp/google-chrome.rpm https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm" }, |
31 |
| - { "command": "[ $(which google-chrome) ] || yum install -y /tmp/google-chrome.rpm" } |
| 22 | + { |
| 23 | + "command": "[ $(which google-chrome) ] || apt-get install -y gnupg curl" |
| 24 | + }, |
| 25 | + { |
| 26 | + "command": "[ $(which google-chrome) ] || curl -fsSL -o /tmp/google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" |
| 27 | + }, |
| 28 | + { |
| 29 | + "command": "[ $(which google-chrome) ] || DEBIAN_FRONTEND='noninteractive' apt-get install -y /tmp/google-chrome.deb" |
| 30 | + } |
32 | 31 | ],
|
33 | 32 | "packages": [],
|
34 |
| - "post_install": [ |
35 |
| - { "command": "rm -f /tmp/google-chrome.rpm" } |
36 |
| - ], |
| 33 | + "post_install": [{ "command": "rm -f /tmp/google-chrome.deb" }], |
37 | 34 | "constraints": [
|
38 | 35 | {
|
39 | 36 | "os": "linux",
|
40 |
| - "distribution": "centos", |
41 |
| - "versions": ["8"] |
42 |
| - }, |
| 37 | + "distribution": "ubuntu", |
| 38 | + "versions": ["20.04"] |
| 39 | + } |
| 40 | + ] |
| 41 | + }, |
| 42 | + { |
| 43 | + "pre_install": [ |
| 44 | + { "command": "dnf install -y dnf-plugins-core" }, |
| 45 | + { "command": "dnf config-manager --set-enabled crb" }, |
| 46 | + { "command": "dnf install -y epel-release" } |
| 47 | + ], |
| 48 | + "packages": ["chromium"], |
| 49 | + "post_install": [], |
| 50 | + "constraints": [ |
43 | 51 | {
|
44 | 52 | "os": "linux",
|
45 | 53 | "distribution": "rockylinux"
|
| 54 | + } |
| 55 | + ] |
| 56 | + }, |
| 57 | + { |
| 58 | + "pre_install": [ |
| 59 | + { |
| 60 | + "command": "subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms" |
46 | 61 | },
|
| 62 | + { |
| 63 | + "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" |
| 64 | + } |
| 65 | + ], |
| 66 | + "packages": ["chromium"], |
| 67 | + "post_install": [], |
| 68 | + "constraints": [ |
47 | 69 | {
|
48 | 70 | "os": "linux",
|
49 | 71 | "distribution": "redhat",
|
50 | 72 | "versions": ["8"]
|
| 73 | + } |
| 74 | + ] |
| 75 | + }, |
| 76 | + { |
| 77 | + "pre_install": [ |
| 78 | + { |
| 79 | + "command": "subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms" |
51 | 80 | },
|
| 81 | + { |
| 82 | + "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm" |
| 83 | + } |
| 84 | + ], |
| 85 | + "packages": ["chromium"], |
| 86 | + "post_install": [], |
| 87 | + "constraints": [ |
52 | 88 | {
|
53 | 89 | "os": "linux",
|
54 |
| - "distribution": "fedora", |
55 |
| - "versions": [ "36", "37" ] |
| 90 | + "distribution": "redhat", |
| 91 | + "versions": ["9"] |
56 | 92 | }
|
57 | 93 | ]
|
58 | 94 | },
|
59 | 95 | {
|
60 |
| - "pre_install": [ |
61 |
| - { "command": "yum install -y which" }, |
62 |
| - { "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" }, |
63 |
| - { "command": "[ $(which google-chrome) ] || yum install -y /tmp/google-chrome.rpm" } |
64 |
| - ], |
65 |
| - "packages": [], |
66 |
| - "post_install": [ |
67 |
| - { "command": "rm -f /tmp/google-chrome.rpm" } |
68 |
| - ], |
| 96 | + "pre_install": [], |
| 97 | + "packages": ["chromium"], |
| 98 | + "post_install": [], |
69 | 99 | "constraints": [
|
70 | 100 | {
|
71 | 101 | "os": "linux",
|
72 |
| - "distribution": "centos", |
73 |
| - "versions": ["7"] |
| 102 | + "distribution": "debian" |
74 | 103 | },
|
75 | 104 | {
|
76 | 105 | "os": "linux",
|
77 |
| - "distribution": "redhat", |
78 |
| - "versions": ["7"] |
| 106 | + "distribution": "fedora" |
| 107 | + }, |
| 108 | + { |
| 109 | + "os": "linux", |
| 110 | + "distribution": "alpine" |
79 | 111 | }
|
80 | 112 | ]
|
81 | 113 | },
|
82 | 114 | {
|
83 |
| - "packages": ["chromium"], |
| 115 | + "pre_install": [ |
| 116 | + { "command": "yum install -y which" }, |
| 117 | + { |
| 118 | + "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" |
| 119 | + }, |
| 120 | + { |
| 121 | + "command": "[ $(which google-chrome) ] || yum install -y /tmp/google-chrome.rpm" |
| 122 | + } |
| 123 | + ], |
| 124 | + "packages": [], |
| 125 | + "post_install": [{ "command": "rm -f /tmp/google-chrome.rpm" }], |
84 | 126 | "constraints": [
|
85 | 127 | {
|
86 | 128 | "os": "linux",
|
87 |
| - "distribution": "alpine" |
| 129 | + "distribution": "centos", |
| 130 | + "versions": ["7", "8"] |
88 | 131 | }
|
89 | 132 | ]
|
90 | 133 | }
|
|
0 commit comments