如何在Mac中的dmg文件中添加代码签名 [英] How to add codesigning to dmg file in mac

查看:834
本文介绍了如何在Mac中的dmg文件中添加代码签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的门户网站中有一个dmg文件.下载后,当我尝试打开该文件时,会显示一条消息,指示打开的软件包不安全.我能够使用codesign命令通过命令行添加codesign,也能够检查是否已添加.但是当我单击打开dmg文件时,仍然出现不安全消息

I have a dmg file in my portal.After downloading it,when i try to open it is showing a message indicating that opening package is insecure. i am able to add codesign through command line using codesign command and also able to check whether it is added or not. but still when i click to open my dmg file insecure message is coming

推荐答案

从macOS 10.11.5开始,您现在可以使用codesign工具对磁盘映像.dmg文件进行签名:

As of macOS 10.11.5 you can now sign disk images, .dmg, files using the codesign tool:

codesign -s <identity> --keychain <full-path-to-keychain> <path-to-disk-image>

这篇关于如何在Mac中的dmg文件中添加代码签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆