Open tonsky opened 3 years ago
On Linux (ubuntu 20.04 x64), jpackage generates crashed .deb file probably because of symlinks.
jpackage --name metrics --type deb -i target --main-class org.jetbrains.example.Example --main-jar example-assembly-0.0.0.jar --verbose | grep 'no path found'
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXtst.so.6
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libfontconfig.so.1
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libGLX.so.0
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libOpenGL.so.0
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXrandr.so.2
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXext.so.6
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libbsd.so.0
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libasound.so.2
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXi.so.6
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libGLdispatch.so.0
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libfreetype.so.6
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libX11.so.6
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXfixes.so.3
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libxcb.so.1
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXrender.so.1
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXdmcp.so.6
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXau.so.6
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libstdc++.so.6
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libpng16.so.16
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libGL.so.1
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libXcursor.so.1
workaroud is to use ubuntu 18.04
Write a script that invokes jpackage