New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way for Drombler FX support #274
Comments
Copied from #259 (comment)
|
@puce77 I have checked the installers a bit, and it seems that not onl the javafx-maven-plugin needs that kind of tweaking. Have a look at this: [Files]
Source: "APPLICATION_NAME\APPLICATION_NAME.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "APPLICATION_NAME\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{group}\APPLICATION_NAME"; Filename: "{app}\APPLICATION_NAME.exe"; IconFilename: "{app}\APPLICATION_NAME.ico"; Check: APPLICATION_MENU_SHORTCUT()
Name: "{commondesktop}\APPLICATION_NAME"; Filename: "{app}\APPLICATION_NAME.exe"; IconFilename: "{app}\APPLICATION_NAME.ico"; Check: APPLICATION_DESKTOP_SHORTCUT()
SECONDARY_LAUNCHERS This is the content of the used Do you want to create INSTALLERS or just a bundle which you can ZIP up? |
One thing closed my mind: how do you think about your own custom bundlers which generate JAR-files and installers like you wish? Instead of modifying the existing bundlers, especially the installers, it might make more sense to create an own custom bundler which generates everything as you wish |
First here my current requirements (jfx = JavaFX Maven Plugin): This already works using the following branches: Currently I need to support native installers for all platforms supported by javapacker and likely also a ZIP-file distribution in addition. https://github.com/Drombler/javafx-maven-plugin/tree/native (work in progress) I can create a deb and rpm file on Kubuntu 16.04.1 LTS.
Later support for preloader, JNLP etc. might be added. In the coming days I will describe how the current solution works and then we can discuss how to go forward from there. |
I'm not sure what you mean with "custom bundlers". Wouldn't that mean I would have to create "generators" for types (deb, rpm, exe, msi, ...) myself? If yes, I'm afraid this is currently not really an option. If I misunderstood something, please explain. |
"Custom Bundlers" are a way to extend "AbstractBundler" and implement your own way of bundling, while still using the javafx-maven-plugin, but as you are requiring deb/rpm/pkg/.... this is not an option right now. About the JVM-error and layout-thing: The native launchers are expecting their java-files in the app-folder, mostly the |
Using the following branches a Drombler FX application can be packaged (deb), installed and run: The layout of the application is not optimal, but at least the content of the app directory is more or less as expected and like a ZIP distribution would look like. |
The current solution looks like this: <initialize>
org.drombler.fx:drombler-fx-maven-plugin:create-standalone-dir,
org.drombler.fx:drombler-fx-maven-plugin:set-maven-properties
</initialize>
<generate-resources>org.drombler.fx:drombler-fx-maven-plugin:generate-application-resources</generate-resources>
<process-resources>
org.apache.maven.plugins:maven-resources-plugin:resources
</process-resources>
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
<prepare-package>
org.drombler.fx:drombler-fx-maven-plugin:copy-standalone-startup-libs,
org.drombler.fx:drombler-fx-maven-plugin:copy-standalone-bundles
</prepare-package>
<package>
org.apache.maven.plugins:maven-jar-plugin:jar,
com.zenjava:javafx-maven-plugin:build-jar,
org.drombler.fx:drombler-fx-maven-plugin:ensure-standalone-config
</package>
<install>
org.apache.maven.plugins:maven-install-plugin:install
</install>
<deploy>
org.apache.maven.plugins:maven-deploy-plugin:deploy
</deploy> |
The set-maven-properties goal sets the following JavaFX Maven Plugin properties:
|
@FibreFoX As you see the Proof of Concept is already working but it requires something like "jfx.jfxBinDir" or "jfx.jarParentFolderName" or similar. |
Does it work cross-os? with all installers? |
I haven't tried yet to run it on a different OS. Do you see any bigger issues that could come up on other OS using this approach? |
#274 (comment) |
Thanks for the hint. I will check it in the coming days. |
The javafx-maven-plugin as a wrapper for the
javapackager
does not provide a nice way to integrate with the DromblerFX framework written by @puce77 .This is meant to be a discussion-thread about what requirements are needed for full integration.
@puce77 Please list the steps you require for your workflow, maybe we can find a way where I can give you a more direct access to the internals, instead of combining too much.
The text was updated successfully, but these errors were encountered: