diff --git a/ct/changedetection.sh b/ct/changedetection.sh index 07702c399..cd42bbf95 100644 --- a/ct/changedetection.sh +++ b/ct/changedetection.sh @@ -69,6 +69,7 @@ function update_script() { $STD git -C /opt/browserless/ reset --hard origin/main $STD npm update --prefix /opt/browserless $STD npm ci --include=optional --include=dev --prefix /opt/browserless + $STD npm install --save-exact playwright-core@1.62.1 --prefix /opt/browserless $STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps # Update Chrome separately, as it has to be done with the force option. Otherwise the installation of other browsers will not be done if Chrome is already installed. $STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome diff --git a/install/changedetection-install.sh b/install/changedetection-install.sh index f323c53ac..e59c3a4e6 100644 --- a/install/changedetection-install.sh +++ b/install/changedetection-install.sh @@ -62,6 +62,7 @@ mkdir /opt/browserless $STD /opt/changedetection/.venv/bin/python -m pip install playwright $STD git clone https://github.com/browserless/chrome /opt/browserless $STD npm ci --include=optional --include=dev --prefix /opt/browserless +$STD npm install --save-exact playwright-core@1.62.1 --prefix /opt/browserless $STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps &>/dev/null $STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome &>/dev/null $STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit &>/dev/null