mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-05 19:04:43 +03:00
fix: do not assume basic tools on linux when intalling channels (#7793)
Fixes #7785
This commit is contained in:
parent
acdc531efc
commit
3c4ef9f11d
@ -14,6 +14,10 @@ if dpkg --get-selections | grep -q "^google-chrome-beta[[:space:]]*install$" >/d
|
||||
$maybesudo apt-get remove -y google-chrome-beta
|
||||
fi
|
||||
|
||||
if ! command -v wget >/dev/null; then
|
||||
$maybesudo apt-get install -y wget
|
||||
fi
|
||||
|
||||
# 2. download chrome beta from dl.google.com and install it.
|
||||
cd /tmp
|
||||
wget https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
|
||||
|
@ -15,6 +15,9 @@ if dpkg --get-selections | grep -q "^google-chrome[[:space:]]*install$" >/dev/nu
|
||||
$maybesudo apt-get remove -y google-chrome
|
||||
fi
|
||||
|
||||
if ! command -v wget >/dev/null; then
|
||||
$maybesudo apt-get install -y wget
|
||||
fi
|
||||
|
||||
# 2. download chrome stable from dl.google.com and install it.
|
||||
cd /tmp
|
||||
|
@ -14,6 +14,10 @@ if dpkg --get-selections | grep -q "^microsoft-edge-beta[[:space:]]*install$" >/
|
||||
$maybesudo apt-get remove -y microsoft-edge-beta
|
||||
fi
|
||||
|
||||
if ! command -v curl >/dev/null; then
|
||||
$maybesudo apt-get install -y curl
|
||||
fi
|
||||
|
||||
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg
|
||||
$maybesudo install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/
|
||||
$maybesudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
|
||||
|
@ -14,6 +14,10 @@ if dpkg --get-selections | grep -q "^microsoft-edge-dev[[:space:]]*install$" >/d
|
||||
$maybesudo apt-get remove -y microsoft-edge-dev
|
||||
fi
|
||||
|
||||
if ! command -v curl >/dev/null; then
|
||||
$maybesudo apt-get install -y curl
|
||||
fi
|
||||
|
||||
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg
|
||||
$maybesudo install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/
|
||||
$maybesudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
|
||||
|
Loading…
Reference in New Issue
Block a user