chore: keep linux browser deps script up-to-date (#27309)

References https://github.com/microsoft/playwright/issues/27255
This commit is contained in:
Andrey Lushnikov 2023-10-02 11:34:49 -07:00 committed by GitHub
parent dfc75a1e1a
commit 471d12ac7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 6 deletions

View file

@ -26,7 +26,7 @@
"./lib/image_tools/colorUtils": "./lib/image_tools/colorUtils.js", "./lib/image_tools/colorUtils": "./lib/image_tools/colorUtils.js",
"./lib/cli/cli": "./lib/cli/cli.js", "./lib/cli/cli": "./lib/cli/cli.js",
"./lib/cli/program": "./lib/cli/program.js", "./lib/cli/program": "./lib/cli/program.js",
"./lib/containers/docker": "./lib/containers/docker.js", "./lib/server/registry/index": "./lib/server/registry/index.js",
"./lib/remote/playwrightServer": "./lib/remote/playwrightServer.js", "./lib/remote/playwrightServer": "./lib/remote/playwrightServer.js",
"./lib/server": "./lib/server/index.js", "./lib/server": "./lib/server/index.js",
"./lib/utils": "./lib/utils/index.js", "./lib/utils": "./lib/utils/index.js",

View file

@ -4,7 +4,7 @@ const fs = require('fs');
const util = require('util'); const util = require('util');
const path = require('path'); const path = require('path');
const {spawn} = require('child_process'); const {spawn} = require('child_process');
const {registryDirectory} = require('playwright-core/lib/server'); const {registryDirectory} = require('playwright-core/lib/server/registry/index');
const readdirAsync = util.promisify(fs.readdir.bind(fs)); const readdirAsync = util.promisify(fs.readdir.bind(fs));
const readFileAsync = util.promisify(fs.readFile.bind(fs)); const readFileAsync = util.promisify(fs.readFile.bind(fs));

View file

@ -2,14 +2,18 @@
set -e set -e
set +x set +x
# Install Node.js export DEBIAN_FRONTEND=noninteractive
export TZ=America/Los_Angeles
apt-get update && apt-get install -y curl && \ # Install Node.js
apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \
apt-get install -y --no-install-recommends curl && \
curl -sL https://deb.nodesource.com/setup_18.x | bash - && \ curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs apt-get install -y --no-install-recommends nodejs
# Install apt-file # Install apt-file
apt-get update && apt-get install -y apt-file && apt-file update apt-get update && apt-get install -y --no-install-recommends apt-file && apt-file update
# Install tip-of-tree playwright-core and browsers # Install tip-of-tree playwright-core and browsers
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright-core install mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright-core install