Document native build step for web-automation setup
This commit is contained in:
@@ -21,6 +21,8 @@ Automated web browsing and scraping using Playwright with Camoufox anti-detectio
|
||||
cd ~/.openclaw/workspace/skills/web-automation/scripts
|
||||
pnpm install
|
||||
npx camoufox-js fetch
|
||||
pnpm approve-builds
|
||||
pnpm rebuild better-sqlite3 esbuild
|
||||
```
|
||||
|
||||
## System libraries (for OpenClaw Docker builds)
|
||||
@@ -29,6 +31,17 @@ npx camoufox-js fetch
|
||||
export OPENCLAW_DOCKER_APT_PACKAGES="ffmpeg jq curl libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2"
|
||||
```
|
||||
|
||||
## Native module note
|
||||
|
||||
If `pnpm install` warns that build scripts were ignored for native modules such as `better-sqlite3` or `esbuild`, run:
|
||||
|
||||
```bash
|
||||
pnpm approve-builds
|
||||
pnpm rebuild better-sqlite3 esbuild
|
||||
```
|
||||
|
||||
Without this, `browse.ts` and `scrape.ts` may fail before launch because the native bindings are missing.
|
||||
|
||||
## Common commands
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user