pup*_*eno 16 java windows javafx gradle javafx-gradle-plugin
我正在使用JavaFX Gradle插件来构建我的JavaFX应用程序.是否可以在完成的安装程序中添加多个开始菜单项?
Fib*_*FoX 10
在回答了关于其他原生发射器的其他问题之后,我检查了JDK的来源,看看它需要什么.
任何启用了"needMenu"属性的启动器都会反映在开始菜单中的某些菜单项中.只需在构建文件中添加以下内容:
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
]
]
}
Run Code Online (Sandbox Code Playgroud)
免责声明:我是JavaFX-Gradle插件的创建者