Home » DataWarrior » Installation Issues » Interest in a Mavenised form of the code?
Re: Interest in a Mavenised form of the code? [message #2128 is a reply to message #1689] Thu, 08 February 2024 15:16 Go to previous messageGo to previous message
mjw99 is currently offline  mjw99
Messages: 5
Registered: July 2022
Junior Member
Dear Thomas,

I have recently been investigating JPackage[1] as a tool for creating platform dependent installers of Java programs. It first appeared in Java 15 (I think) and I have been using it in the LTS JDK 17. I have also found a Maven plugin for this [2] and have managed to apply it to a branch of my DataWarrior Maven fork[3].

An aspect of JPackage is that it can only build binary installers on the platform that it is executed on. Hence I have three different containers in my GitHub actions config for each platform[4]. The upshot is that these each build an installer[5] and this final binary installer is deposited as an artifact[5], which can be downloaded. This entire process is triggered every time one commits to the repository.

Further tuning of icons and file associations can also be done with JPackage[6,7]. I have tested Windows and Linux and it seems to work. I've not tested Mac yet, since I do not have access to one.

This needs a bit more optimisation at the moment, but I thought I would share this with you and please let me know what you think of this.



[1] -overview.html#GUID-C1027043-587D-418D-8188-EF8F44A4C06A



[4] e6c3fa112c081bd9e91ed1/.github/workflows/maven.yml#L14


[6] e6c3fa112c081bd9e91ed1/pom.xml#L295

[7] resources/jpackage
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Instantly quits
Next Topic: Newest Version Install
Goto Forum:

Current Time: Thu Jun 13 06:10:14 CEST 2024

Total time taken to generate the page: 0.04315 seconds