我正在使用Javafx Gradle插件来构建我的Javafx应用程序。是否可以在完成的安装程序中添加多个启动菜单项?
在回答有关其他本机发射器的其他问题后,我检查了JDK的来源,以查看此内容。
任何带有启用" needmenu" - property的启动器将反映在启动 - 菜单内的某些菜单输入中。只需在您的buildfile中添加类似的东西:
jfx {
// ... normal configuration ...
// your secondary entry points, each will inherit the configuration, unless you specify otherwise here
secondaryLaunchers = [
[
appName: 'somethingDifferent2',
mainClass: 'your.different.entrypoint.MainApp',
// the following is required for an start-menu entry
needMenu: true
]
]
}
免责声明:我是该Javafx-Gradle-Plugin的创建者