1

我们正在努力让 install4j 8 Mac 公证工作。

在 Mac Catalina 上使用 install4j Multi-Platform Edition 8.0.2(内部版本 8057)。

“Notarize macOS 媒体文件”复选框被选中,导致配置:

    ...
    <buildOptions verbose="true" notarize="true" />
  </install4j>

但是当我们跑

mvn release -Pinstall4j

我们得到以下日志,表明尚未应用公证过程:

[INFO] 
[INFO] Important: macOS media sets have to be notarized before distribution.
[INFO]   More information in the code signing help.
[INFO] 

按照以下文档中的说明进行操作: https ://www.ej-technologies.com/resources/install4j/help/doc/install4j.pdf

“如果您在 macOS 上构建,install4j 可以为您执行整个公证过程。在 install4j IDE 中,必须选中“构建”步骤中的 Notarize macOS 媒体文件复选框(仅在 macOS 上可见)。对于命令行构建, --apple-id 和 --apple-id-password 命令行参数或 Gradle、Maven 和 Ant 插件的等效参数必须设置"

我们的 Apple ID 和密码已在 install4j 属性文件的 maven settings.xml 文件中设置:

      ...
      <install4j.appleId>[our notarization apple ID]</install4j.appleId>
      <install4j.appleIdPassword>[corresponding password]</install4j.appleIdPassword>
    </properties>
  </profile>

需要帮助找出公证程序未运行的原因。

最后一个问题:install4j 是否将公证票装订到安装程序中?

亲切的问候塔马斯

4

1 回答 1

1

目前发布的install4j maven插件(1.1.1)没有appleIdandappleIdPassword参数,虽然master分支

https://github.com/sonatype/install4j-support/tree/master/install4j-maven-plugin

已经有了。

-Dinstall4j.appleIdPassword=...在 8.0.3 中,只要 Maven 插件没有更新版本,您就可以在项目的“常规设置->代码签名”步骤中定义 Apple ID,还可以在外部设置系统属性。您可以写信至 support@ej-technologies.com 以获取已经实施的构建。

最后一个问题:install4j 是否将公证票装订到安装程序中?

是的,装订由 install4j 执行。

于 2019-11-15T23:04:02.230 回答