mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-05 02:42:50 +00:00
Changedetection: Fix Browserless installation and update process (#8011)
* Fix the issue with changedetection.io install: > @browserless.io/browserless@2.37.0 build:ts > tsc sh: 1: tsc: not found [ERROR] in line 70: exit code 0: while executing command $STD npm run build --prefix /opt/browserless * Just to verify the installation works * Just to verify the installation works * Try to fix typescript issues * Try to fix TypeScript issues and update NodeJS * Try to fix TypeScript issues * Add more missing npm dependencies * Cleanup test changes * Revert testing changes and change the way dependencies are installed * Revert testing changes and change the way dependencies are installed * Revert manually added TypeScript and esbuild packages and tried to install them from the optional requirements * Try the clean install * Fix the update script and revert testing changes * Added testing files again * Revert testing repos again
This commit is contained in:
@@ -51,6 +51,7 @@ function update_script() {
|
|||||||
$STD git -C /opt/browserless/ fetch --all
|
$STD git -C /opt/browserless/ fetch --all
|
||||||
$STD git -C /opt/browserless/ reset --hard origin/main
|
$STD git -C /opt/browserless/ reset --hard origin/main
|
||||||
$STD npm update --prefix /opt/browserless
|
$STD npm update --prefix /opt/browserless
|
||||||
|
$STD npm ci --include=optional --include=dev --prefix /opt/browserless
|
||||||
$STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps
|
$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.
|
# 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
|
$STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ msg_info "Installing Browserless & Playwright"
|
|||||||
mkdir /opt/browserless
|
mkdir /opt/browserless
|
||||||
$STD python3 -m pip install playwright
|
$STD python3 -m pip install playwright
|
||||||
$STD git clone https://github.com/browserless/chrome /opt/browserless
|
$STD git clone https://github.com/browserless/chrome /opt/browserless
|
||||||
$STD npm install --prefix /opt/browserless --include=dev
|
$STD npm ci --include=optional --include=dev --prefix /opt/browserless
|
||||||
$STD npm install --prefix /opt/browserless typescript ts-node @types/node --save-dev
|
|
||||||
$STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps &>/dev/null
|
$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 --force chrome &>/dev/null
|
||||||
$STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit &>/dev/null
|
$STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit &>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user