Files
2026-10-07 05:19:52 +08:00
..
2026-10-07 05:19:52 +08:00
2026-08-09 21:57:08 +08:00
2026-10-07 05:19:52 +08:00
2026-10-07 05:19:52 +08:00
2026-08-09 21:57:08 +08:00

channel-builder

Static channel asset builder for coruna-lab.

cd channel-builder
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt

# default: write web/sync into ../public, seeds into ../storage/app/channel-builder
.venv/bin/python tools/new_project.py --channel-id <32-hex> --support-template test --force

Laravel ChannelProjectService invokes the same entry with --artifact-root / --state-root.

Published web/<id>/index.js is the shared boot (iOS router + /t.js). The Coruna payload is payload.js. Third-party sites can unzip the admin「浏览器资源 zip」to their docroot and include <script src="./index.js"></script>.

Rebuild existing old channels (same 32-hex id; DGA seed from CORUNA_CHANNEL_SEED):

php artisan coruna:repack              # all builder_type=old
php artisan coruna:repack <32-hex>     # one
php artisan coruna:repack --dry-run
php artisan coruna:repack --template=test