File tree 1 file changed +4
-1
lines changed
scripts/datasheet-rendering
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if [ -n "$CI" ]; then
26
26
sudo apt-get -qq update -y
27
27
# SEE: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix
28
28
sudo apt-get -qq install -y -o=Dpkg::Use-Pty=0 ca-certificates fonts-liberation libasound2 libappindicator3-1 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
29
+ sudo apt-get -qq install -y chromium || sudo apt-get -qq install -y chromium-browser
29
30
30
31
echo " Running on Node version: ` node -v` "
31
32
@@ -34,7 +35,9 @@ if [ -n "$CI" ]; then
34
35
echo " Registry attuale: $( npm config get registry) "
35
36
36
37
echo " Installing dependencies..."
37
- export PUPPETEER_SKIP_DOWNLOAD=true npm install --verbose
38
+ export PUPPETEER_SKIP_DOWNLOAD=true
39
+ npm install --verbose
40
+ export PUPPETEER_EXECUTABLE_PATH=$( which chromium || which chromium-browser)
38
41
39
42
echo " Running datasheet-renderer..."
40
43
time npx datasheet-renderer config.json
You can’t perform that action at this time.
0 commit comments