【问题标题】:Install4j Mac OSx signingInstall4j Mac OSx 签名
【发布时间】:2014-10-07 20:24:07
【问题描述】:

我使用开发人员 ID 应用程序证书 .p12 密钥文件为 Mac (.dmg) 签署了单个捆绑安装程序应用程序。在构建期间我没有收到 install4j 5.1.12 的任何抱怨,它会询问我的密码并输出应用程序已签名。

Creating media file 'Mac OS X Single Bundle':
  Collecting files:
  Compiling launchers:
    Compiling launcher 'MyTestApp':
      Generating VM options file vmoptions.txt.
  Creating media file: 
    Zipping custom code & resources JAR file
    Identifying components
    Adding JRE (macosx-amd64-1.7.0_65)
    Shrinking runtime
    Compressing files
    Applying LZMA compression
    Generating VM options file vmoptions.txt.
    Signing installer
  Moving media files to media directory C:\..
  Installer\Installer\Build
  The name of the media file is MyTestApp.dmg.
  The size of the media file is 34.4 MB

当从 iis 网络服务器托管该应用程序时,客户端下载并尝试安装它,他从 Mac Gate Keeper 收到错误消息,指出应用程序不安全并且不允许安装。 当我在 Mac 上的应用程序上执行 codesign -dvvv 时,我会得到关于我看起来正常的应用程序签名的信息。在这一点上,我不知道为什么它没有通过 Gate Keeper。任何帮助将不胜感激。

$ codesign -dvvv MyTestApp.app
Executable=MyTestApp
Installer.app/Contents/MacOS/JavaApplicationStub
Identifier=com.install4j.4414-4382-9884-2117.347
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20100 size=626 flags=0x0(none) hashes=24+3 location=embedded
Hash type=sha1 size=20
CDHash=27fe7393db936790d050c78d09bb9a6e489f10d6
Signature size=4241
Authority=Developer ID Application: Zee, Inc. (KZ254T2RPN)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Signed Time=Sep 16, 2014, 2:25:12 PM
Info.plist entries=25
TeamIdentifier=not set
Sealed Resources version=1 rules=4 files=20
Internal requirements count=1 size=36

【问题讨论】:

    标签: macos code-signing install4j


    【解决方案1】:

    从 Mac OS 10.9.5 开始,您需要 v2 签名,否则会被 Gatekeeper 拒绝。您可以在该行中看到

    Sealed Resources version=1 rules=4 files=20
    

    那里应该说“版本 2”。使用 install4j 5.1.13 或更高版本重新编译,然后签名将被接受。

    有关更多信息,请参阅here

    【讨论】:

    • 感谢您的帮助!
    【解决方案2】:

    是的,升级到 6.x 版修复了 OSX 10.10 的签名问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-21
      • 1970-01-01
      • 2018-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多