Skip to content
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

Improve ami packaging #17

Closed
remkop opened this issue Mar 31, 2020 · 4 comments
Closed

Improve ami packaging #17

remkop opened this issue Mar 31, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@remkop
Copy link
Collaborator

remkop commented Mar 31, 2020

Investigate the jpackage tool that is included in Java 14.

From the documentation:

The jpackage tool packages a Java application into a platform-specific package that includes all of the necessary dependencies. The application may be provided as a collection of ordinary JAR files or as a collection of modules. The supported platform-specific package formats are:

  • Linux: deb and rpm
  • macOS: pkg and dmg
  • Windows: msi and exe

It may be possible to add this to the Maven build, with plugins like jlink-jpackager-maven-plugin.

@petermr
Copy link
Owner

petermr commented Mar 31, 2020 via email

@remkop
Copy link
Collaborator Author

remkop commented Mar 31, 2020

If NPE's are a common problem, then just running the program on Java 14 will help, since they introduced "helpful NullPointerExceptions" that look something like this

Exception in thread "main" java.lang.NullPointerException: 
        Cannot assign field "i" because "a" is null
    at Prog.main(Prog.java:5)

instead of the "old" way, which looked like this:

Exception in thread "main" java.lang.NullPointerException
    at Prog.main(Prog.java:5)

@petermr
Copy link
Owner

petermr commented Mar 31, 2020 via email

@remkop remkop added the enhancement New feature or request label Apr 6, 2020
@remkop remkop self-assigned this Apr 7, 2020
@remkop
Copy link
Collaborator Author

remkop commented Jul 24, 2020

Closing, since with the work on #24 and #51 we now have a publishing pipeline that results in a zip/bz2 archive with launcher scripts and required jars. Artifacts are hosted by GitHub Packages: https://github.com/petermr/ami3/packages/

The equivalent jpackage solution would include a (minimized) version of the JRE. This would add another 30-40MB to the download, but would allow users to run ami without installing Java.

For our current purposes, our current solution is sufficient.

@remkop remkop closed this as completed Jul 24, 2020
This was referenced Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants