cryptomator / cryptomator-linux

Cryptomator .AppImage for Linux
GNU General Public License v3.0
14 stars 7 forks source link

Determine required modules using jdeps #33

Open overheadhunter opened 3 years ago

overheadhunter commented 3 years ago

After unpacking the libraries, we can run jdeps to generate a list of system modules (starting with java. or jdk.):

jdeps --module-path libs -R --multi-release 11 -s libs/cryptomator-x.y.z.jar | awk -F ' -> ' '{print $2}' | grep -E '^java\.|^jdk\.' | sort | uniq | tr '\n' ','

~:warning: At the moment, this list would include java.jwt (still awating https://github.com/auth0/java-jwt/pull/484).~ :warning: This list does not include dependencies, which are only loaded at runtime such as jdk.crypto.ec

This list can then be passed to jlink.