如何在Linux中签署Mac OS X应用程序? [英] How to sign a Mac OS X application in Linux?

查看:244
本文介绍了如何在Linux中签署Mac OS X应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于OS X,我将我的Java应用程序分发到DMG中。自Mountain Lion发布以来,打开应用程序会显示以下错误消息:

For OS X, I distribute my Java application inside a DMG. Since Mountain Lion's release, opening the app gives the following error message:


[app name]已损坏且无法打开。你应该弹出
磁盘映像。

[app name] is damaged and couldn't be opened. You should eject the disk image.

显然修复是签署.app文件所以我读了代码签名指南。除了如何将其整合到我的一键构建过程这一重要问题之外,一切似乎都很简单。

Apparently the fix is to sign the .app file so I read the Code Signing Guide. Everything seems to be straightforward apart from the important question of how to integrate this into my one-click build process.

在所有项目上构建我的产品平台发生在我的Linux开发机器上。我运行Ant脚本,Windows安装程序,启动器EXE,Linux安装程序,OS X应用程序和DMG都已构建。所以我想将代码签名集成到这个过程中。

Building my product on all platforms happens on my Linux development machine. I run an Ant script and the Windows installer, starter EXE, Linux installer, OS X application and DMG are all built. So I'd like to integrate code signing into this process.

是否有相当于Linux的'codesign'?

Is there an equivalent of 'codesign' for Linux?

推荐答案

无法在Linux中对Mac OS X应用程序进行代码签名

There is no way of code signing a Mac OS X application in Linux

我找到的唯一方法到目前为止这样做是通过SSH连接到Mac并使用它。

The only way I've found to do this so far is to SSH into a Mac and use that.

这篇关于如何在Linux中签署Mac OS X应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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