未设 bundle.macOS.signingIdentity 时,Tauri 不签整个 .app,只剩 Rust linker 对主执行文件的签名(Sealed Resources=none、Info.plist 未绑定); universal 构建的 x86_64 slice 连这个签名都没有。 设为 "-"(ad-hoc)后整个 bundle 都会签上:两个 slice 都有 Sealed Resources、Info.plist 已绑定、Identifier 为 bundle id, codesign --verify --deep --strict 通过。不需要证书或 secret; ad-hoc 不等于公证。
29 lines
579 B
JSON
29 lines
579 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"create": false,
|
|
"title": "HGhub",
|
|
"width": 1200,
|
|
"height": 780,
|
|
"minWidth": 900,
|
|
"minHeight": 620,
|
|
"resizable": true,
|
|
"center": true,
|
|
"decorations": true,
|
|
"titleBarStyle": "Overlay",
|
|
"hiddenTitle": true,
|
|
"trafficLightPosition": { "x": 14, "y": 24 }
|
|
}
|
|
]
|
|
},
|
|
"bundle": {
|
|
"targets": ["app", "dmg"],
|
|
"macOS": {
|
|
"signingIdentity": "-"
|
|
}
|
|
}
|
|
}
|