2022-07-25 12:34:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Packs puppeteer using npm and moves the archive file to docker/puppeteer-latest.tgz.
|
|
|
|
# Expected cwd: project root directory.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-10-05 12:17:03 +00:00
|
|
|
cd docker
|
2022-07-25 12:34:01 +00:00
|
|
|
|
2023-03-28 09:27:50 +00:00
|
|
|
npm pack --workspace puppeteer --workspace puppeteer-core --workspace @puppeteer/browsers --pack-destination .
|
2022-07-25 12:34:01 +00:00
|
|
|
|
2022-10-05 12:17:03 +00:00
|
|
|
rm -f puppeteer-core-latest.tgz
|
|
|
|
rm -f puppeteer-latest.tgz
|
2023-03-28 09:27:50 +00:00
|
|
|
rm -f puppeteer-browsers-latest.tgz
|
2022-10-05 12:17:03 +00:00
|
|
|
|
|
|
|
mv puppeteer-core-*.tgz puppeteer-core-latest.tgz
|
2023-03-28 09:27:50 +00:00
|
|
|
mv puppeteer-browsers-*.tgz puppeteer-browsers-latest.tgz
|
2022-10-05 12:17:03 +00:00
|
|
|
mv puppeteer-[0-9]*.tgz puppeteer-latest.tgz
|