javafx-gradle-plugin icon indicating copy to clipboard operation
javafx-gradle-plugin copied to clipboard

Debian bundler prefix installation directory

Open DJViking opened this issue 5 years ago • 3 comments

How can we change the prefix directory for the debian bundler? There are no bundle arguments for it, nor do I find a way to set it in the control file.

Custom src/deploy/packages/linux/control

Package: @projectName@
Version: @applicationVersion@
Release: @applicationRelease@
Section: unknown
Priority: optional
Architecture: amd64
Provides: @projectName@
Depends: xdg-utils
Description: @projectDescription@

With the RPM bundler we can set prefix in the project-name.spec

The command dpkg-deb gets the directory structure

/tmp/fxbundler/images/linux-deb.image/application-1.0.0/opt/application/

Is it the plugin or the javapackager who creates this and copies the files? If it is the latter, I don't think there is much we can do about it.

DJViking avatar Nov 08 '18 14:11 DJViking

The folder-name /tmp/fxbundler/images/linux-deb.image is hard-coded inside the javapackager/bundler itself, where is not much I'm aware of to change this. But I do not see the actual problem here, what do you need to rename, and why?

FibreFoX avatar Nov 09 '18 09:11 FibreFoX

The DEB installer puts my application under /opt/application, wheres my RPM puts my application under /opt/company/application. The RPM directory is set through the Prefix in its SPEC file.

The DEB control file has no such parameter for setting the installation directory (could not find one).

Package: @projectName@
Version: @applicationVersion@
Release: @applicationRelease@
Section: unknown
Priority: optional
Architecture: x86_64
Provides: @projectName@
Depends: xdg-utils
Description: @projectDescription@

I have a workaround for now, not using the plugin to package DEB, but the ospackage plugin.

DJViking avatar Nov 09 '18 10:11 DJViking

I wasn't aware of this different behavior ... sounds interesting :) the "bundler-prefix" is internally something different, that's what confused me on the first thought.

FibreFoX avatar Nov 09 '18 12:11 FibreFoX