Bundle Puppeteer Dependency

This commit is contained in:
Salastil
2025-11-23 01:53:57 -05:00
parent c524e2c990
commit d99e44e996
5 changed files with 151 additions and 2 deletions

View File

@@ -1,2 +1,17 @@
# streamed-tui
TUI Application for launching streamed.pk feeds
## Bundled Puppeteer dependencies
The extractor relies on `puppeteer-extra`, `puppeteer-extra-plugin-stealth`, and `puppeteer`. These Node.js packages are
bundled into the final binary via `internal/assets/node_modules.tar.gz`. To refresh the archive (for example after updating
dependency versions), run:
```
scripts/build_node_modules.sh
```
The script installs the dependencies into a temporary directory and regenerates the tarball so the Go binary can extract
them at runtime without requiring `npm install` on the target system. When the binary starts it will automatically unpack the
archive into the user's cache directory (or `$TMPDIR` fallback) and point Puppeteer at that cached `node_modules` tree, so the
program can run as a single self-contained executable even when no dependencies exist alongside it.