From 4b2e1317c82b1b36621c27b294573548669e260e Mon Sep 17 00:00:00 2001 From: tznthou Date: Sun, 8 Nov 2026 15:51:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(macos):=20=E6=89=93=E5=8C=85=E6=97=B6?= =?UTF-8?q?=E5=AF=B9=E6=95=B4=E4=B8=AA=20.app=20=E5=81=9A=20ad-hoc=20?= =?UTF-8?q?=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 未设 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 不等于公证。 --- src-tauri/tauri.macos.conf.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json index 2cc7dd3..477ca32 100644 --- a/src-tauri/tauri.macos.conf.json +++ b/src-tauri/tauri.macos.conf.json @@ -20,6 +20,9 @@ ] }, "bundle": { - "targets": ["app", "dmg"] + "targets": ["app", "dmg"], + "macOS": { + "signingIdentity": "-" + } } }