# demo-01-command-plan 纯函数生成三平台签名参数:macOS 的 `--options runtime --timestamp`、 公证 `submit --wait`、Windows 的 `/tr /td`、Linux 的 GPG 分离签名。 只返回参数数组,不拼 shell,不执行命令。 ## 运行 ```bash pnpm --filter @tutorial/53-code-signing-notarization-demo-01-command-plan start ``` ## 验证 ```bash pnpm --filter @tutorial/53-code-signing-notarization-demo-01-command-plan smoke # {"evt":"smoke","ok":true,"macRoles":"sign,notarize,staple",...} ``` ## 说明 - 参数数组比字符串安全:不需要处理引号与空格转义。 - 工具名与参数分开,测试可断言关键 flag 是否存在。 - `executes: false` 是类型级约束,防止误接执行逻辑。 ## 已知限制 - 不包含证书选择与 Keychain 解锁。 - 时间戳服务器是示例域名,真实使用需替换。