26 lines
957 B
Markdown
26 lines
957 B
Markdown
# channel-builder
|
|
|
|
Static channel asset builder for coruna-lab.
|
|
|
|
```bash
|
|
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`):
|
|
|
|
```bash
|
|
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
|
|
```
|