chore: keep linux browser deps script up-to-date (#27309)
References https://github.com/microsoft/playwright/issues/27255
This commit is contained in:
parent
dfc75a1e1a
commit
471d12ac7b
|
|
@ -26,7 +26,7 @@
|
|||
"./lib/image_tools/colorUtils": "./lib/image_tools/colorUtils.js",
|
||||
"./lib/cli/cli": "./lib/cli/cli.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/server": "./lib/server/index.js",
|
||||
"./lib/utils": "./lib/utils/index.js",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ const fs = require('fs');
|
|||
const util = require('util');
|
||||
const path = require('path');
|
||||
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 readFileAsync = util.promisify(fs.readFile.bind(fs));
|
||||
|
|
|
|||
|
|
@ -2,14 +2,18 @@
|
|||
set -e
|
||||
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 - && \
|
||||
apt-get install -y nodejs
|
||||
apt-get install -y --no-install-recommends nodejs
|
||||
|
||||
# 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
|
||||
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright-core install
|
||||
|
|
|
|||
Loading…
Reference in a new issue