READMESource: main@2ec071ee
深鲸交付包(@deepwhale-cn/dsh-deliverable-pack)
把产出物打成一个可核对、可追溯的交付物:zip + 文件清单 + SHA256。
律师交证据、设计师交稿、顾问交报告——对方拿到的是一个能校验的包,而不是一堆散文件。
安装
dsh plugin --profile web add @deepwhale-cn/dsh-deliverable-pack
也可源码安装:dsh plugin --profile web add github:feely0208/dsh-deliverable-pack。
面板
侧栏「深鲸交付包」→ 填要交付的目录(可选输出目录/包名/后缀过滤)→ 生成交付包 → 可点「重新校验 SHA256」。
命令
dsh-deliverable-pack --input ./结案材料 --out ./交付 --name 张某案-结案交付
dsh-deliverable-pack --input ./设计稿 --exts png,jpg,pdf --no-zip
dsh-deliverable-pack --verify ./交付/张某案-结案交付
产出结构
<名称>/
files/... 原始产出物(保留相对路径;自动跳过 node_modules/.git/dist 等)
MANIFEST.json 每个文件的路径 / 字节数 / SHA256 / mtime
CHECKSUMS.sha256 shasum -a 256 -c 可直接核对
交付说明.md 怎么核对
<名称>.zip
说明
- 默认只收常见办公与图片后缀,可用
--exts覆盖; - 全部本机完成,不上传任何文件;
- 生成后可
--verify复核,篡改会被发现(测试里有对应用例)。
No comments yet. Be the first to write one.