mygo.json 增加 windows.signCommand -> scripts/codesign/sign-file.ps1(PowerShell Set-AuthenticodeSignature,不依赖 Windows SDK)。新增 new-cert.ps1 生成 10 年期自签名证书、trust.ps1 导入当前用户 Root + TrustedPublisher(certutil 静默导入)。公钥 certs/ZeroOrigin-CodeSign.cer 进仓库,*.pfx 进 .gitignore。AGENTS.md / 架构文档 / README 同步签名流程与三条坑。
21 lines
683 B
JSON
21 lines
683 B
JSON
{
|
|
"name": "ZerOriginTool",
|
|
"slug": "zerorigin-toolbox",
|
|
"identifier": "cn.zerorigin.toolbox",
|
|
"version": "0.2.1",
|
|
"copyright": "© 2026 零源",
|
|
"publisher": "零源",
|
|
"main": "./cmd/zerorigin",
|
|
"out": "bin",
|
|
"icon": "assets/icon.png",
|
|
"updates": {
|
|
"publicKey": "A3BYIOzBB8LvaUjSGskLHtvg7jCnL9Rat01xo2mNjAQ=",
|
|
"url": "https://git.zerorigin.cn/zerorigin/zerorigin-toolbox/releases/download/latest"
|
|
},
|
|
"windows": {
|
|
"displayName": "零源工具箱",
|
|
"installDirName": "ZerOriginTool",
|
|
"signCommand": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts\\codesign\\sign-file.ps1 %1"
|
|
}
|
|
}
|