Files
WYF-koubo/packaging/README.md
T
2026-06-20 18:36:36 +08:00

21 lines
960 B
Markdown

# Packaging Layout
`packaging/` keeps build-time assets separate from application source code.
## Directories
- `build-resources/`: Electron Builder icons and installer assets. Small icon files are source-controlled. Large redistributables such as `vc_redist*.exe` stay local and are ignored.
- `resources/`: Files copied into the packaged app as `resources/extra`, such as config files, cover templates, tray assets, sound effects, and voice preview cache metadata.
- `vendor/`: Local packaging dependencies and large runtime bundles, including Playwright, Python runtime, FFmpeg, models, fonts, ziti, and BGM. This directory is intentionally ignored by Git.
## Restore Local Vendor Assets
Use the existing preparation scripts when a fresh checkout needs local packaging dependencies:
```bat
npm.cmd run prepare-package
node scripts\copy-playwright-browser.cjs
```
Dependency download helpers write into `packaging/vendor` instead of the project root.