FibreFoX / javafx-gradle-plugin

Gradle plugin for JavaFX
Apache License 2.0
427 stars 59 forks source link

Debian bundler prefix installation directory #136

Open DJViking opened 5 years ago

DJViking commented 5 years ago

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.

FibreFoX commented 5 years ago

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?

DJViking commented 5 years ago

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.

FibreFoX commented 5 years ago

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.