The jpackage tool of Java 14 can be used to create platform specific packages of java apps. The app does not require a JVM to run.
/opt/jdk-14/bin/jpackage --name etctoy --input target --main-jar etctoy.jar
The call is made from within a maven project. etctoy.jar is a fat-jar (size 6.6M) but the call should also work for regular jars with further dependencies in the target directory (see –input parameter).
The result is a debian package that installs the app under /opt/etctoy
sudo dpkg -i etctoy_1.0-1_amd64.deb
The installation uses 140M of disk space.
To make the tool available via command line on should link the binary into /usr/bin
sudo ln -s /opt/etctoy/bin/etctoy /usr/bin
“I was an engineer at PGP from 2004-2011 … My own secret hope is that Apple is forced to open iMessage as a part of an anti-trust action and that acts as a catalyst for interoperability. ” Found here
Offlineimap is a tool to backup or sync IMAP accounts. Backing up an IMAP account to a local folder is easy.
Create a file `.offlineimaprc` in your home directory like described here: http://www.offlineimap.org/doc/quick_start.html.
Now you can run `offlineimap` from your command line. Type in your password and the download will start.