mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
487bc589b0
This patch: - refactors script to output per-browser package dependencies. This is to aid with per-browser docker setup and Playwright github action. - sorts package maps for both Ubuntu 18.04 and Ubuntu 20.04 alphabetically (and removes a stray dependency) References #2926
24 lines
607 B
Bash
Executable File
24 lines
607 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set +x
|
|
|
|
# Install Node.js
|
|
|
|
apt-get update && apt-get install -y curl && \
|
|
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
|
|
apt-get install -y nodejs
|
|
|
|
# Install apt-file
|
|
apt-get update && apt-get install -y apt-file && apt-file update
|
|
|
|
# Install tip-of-tree playwright
|
|
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright.tar.gz
|
|
|
|
cp /root/hostfolder/inside_docker/list_dependencies.js /root/tmp/list_dependencies.js
|
|
|
|
FILENAME="RUN_RESULT"
|
|
if [[ -n $1 ]]; then
|
|
FILENAME=$1
|
|
fi
|
|
node list_dependencies.js | tee "/root/hostfolder/$FILENAME"
|