gradle - 如何为 install4j 提供 key 文件密码

标签 gradle install4j

我已经对证书进行了自签名,并且正在尝试使用 Install4j 对 exe 进行签名。我在上面输入了密码 12345678。似乎找到了 key 文件,是的,它已加密(pw:12345678)。输出是:

Loading config file C:\Users\alexa\IdeaProjects\downlords-faf-client\downlords-faf-client.install4j------------------------------------------------------------------------------
The private key is encrypted. To avoid manual intervention, set the
"--win-keystore-password" command line option or the 
"winKeystorePassword" gradle property or ant task attribute. 
------------------------------------------------------------------------------
Enter the password for the Windows key store:


Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
10 actionable tasks: 2 executed, 8 up-to-date
install4j: compilation failed. Reason: null
我都尝试在 gradle.properties 和通过命令行设置密码。
enter image description here
enter image description here
enter image description here

最佳答案

设置 gradle 属性不会将值传递给 install4j 编译器,您必须在 gradle task 上配置属性.
错误信息具有误导性,它应该说

"winKeystorePassword" gradle task property


代替

"winKeystorePassword" gradle property


这将在 8.0.9 中修复。

关于gradle - 如何为 install4j 提供 key 文件密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64043172/

相关文章:

Android Studio 1.0 Gradle 错误与 getConfiguration()

android - 当内部类依赖于 R.java 时,Gradle 在 Android Javadocs 中排除 R.java

java - Install4j:安装服务

java - Gnome 3 中的 install4j 应用程序名称

Spring 数据 - "class path resource [org/jboss/resource/adapter/jdbc/vendor/MySQLExceptionSorter.class"

kotlin - Gradle 强制为您带来错误版本的 Kotlin 依赖项

java - 根据上次执行的操作,从自定义代码更新进度条消息

java - Install4j在回滚期间删除response.varfile

java - 如何配置 install4j 来运行包含其他 jar 文件的 java 可执行 jar 文件?

java - JacocoReport 配置的 Gradle 6.0 弃用警告