未签名安装提示
来源:spike-report.md S6(Microsoft Learn、Apple Support 官方文档为准;无 Windows/macOS 真机,未做真机实测,实际对话框逐字文案待真机复核)。
Windows(未签名安装包)
- 提示:Microsoft Defender SmartScreen 全屏蓝框 “Windows protected your PC”(“Microsoft Defender SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk.”),仅有 Don’t run 按钮。
- 通过路径:点 More info → 显示
App: <文件名>、Publisher: Unknown publisher→ 点 Run anyway。 - 另一路径:下载前右键安装包 → 属性 → 勾选 Unblock(清除 Mark of the Web)。
- 注意:未签名文件每版从零声誉起步,声誉不跨版本继承;企业策略可彻底禁止继续(不可绕过)。签名版待 fork 集成+证书后发布。
macOS(未签名/未公证 .dmg,Apple Silicon)
- 提示:macOS 15+ 对话框标题 “\<App\>” Not Opened,正文 “Apple could not verify … is free of malware”;macOS 14 及更早为 “\<App\>” cannot be opened because the developer cannot be verified。
- 通过路径:点 Done(勿选 Move to Trash)→ 系统设置 → 隐私与安全 → 安全区找到被拦截记录 → 点 Open Anyway → 确认 Open;该按钮仅在首次拦截后约 1 小时内出现。
- macOS 14 及更早也可用 Finder 右键(Control-点按)→ Open。
- 终端兜底(仅对已信任的自家包):
xattr -dr com.apple.quarantine "/Applications/<App>.app"。不建议全局spctl --master-disable。 - 注意:未公证即使有 Developer ID 签名也会被拦;macOS 公证版待用户办 Apple Developer($99/年)后发布。
来源:https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/smartscreen-reputation 、 https://support.apple.com/en-us/102445