macOS NodeJS 签署 `node_modules` 文件夹中的 `.node` 文件以进行公证?

问题描述

我在 macOS .pkg 安装程序公证中遇到的一个问题是公证拒绝来自 .pkgoclif 文件,因为各个节点包中的 .node 文件不是签。尝试运行以下进行签名时,出现此错误

bash-3.2# codesign -d -f -s "Developer ID Installer: #### (###)" node_modules/fsevents/fsevents.node
error: The specified item Could not be found in the keychain.

有谁知道是什么导致了这种情况,或者应该使用什么命令来签署 .node 文件

编辑:我将补充说 Developer ID InstallerDeveloper ID Application 证书都在系统钥匙串中,我在使用 --keychain /Library/Keychains/System.keychain 时引用了它

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)