gradle install4插件如何指定license key

gradle install4 plugin how to specify license key

在官方文档 (http://resources.ej-technologies.com/install4j/help/doc/index.html) 中,我没有看到如何指定许可证密钥的方法,尽管有 --license= 标志。有人对如何解决这个问题有什么建议吗?

谢谢,

从 6.0.4 开始,无法使用 gradle 插件设置许可证密钥,您必须调用

install4jc --license=[license key]

直接。

根据文档,您可以设置license如下

install4j {
    installDir = file('/path/to/install4j_home')
    license = 'your_actual_license'
}

注意:如果指定许可证属性,install4j 将覆盖任何以前的许可证并立即退出。在删除许可证配置之前,不会生成安装文件。

https://www.ej-technologies.com/resources/install4j/help/doc/help.pdf