Closed ghost closed 1 year ago
I'm currently try creating a deb package, for the first time and am seeing the same issue.
I noticed that the build/jpackage/<app>/lib
contains the correct .png
file, but after installing the deb package I checked /opt/<app>/lib
directory and even though the .png
had the correct name, when I viewed it, it was the default/java icon.
Hi @vewert, I don't remember how I fixed the issue but this is my build.gradle for Linux binaries now:
if (org.gradle.internal.os.OperatingSystem.current().linux) {
imageOptions = ["--icon", "src/main/resources/images/app_icon512.png"]
installerOptions += [
'--description', project.description,
'--app-version', version,
'--resource-dir', "build/jpackage/mkwriter/lib",
'--copyright', 'Copyright 2021 Carlos Molero',
'--linux-menu-group', 'Office',
'--linux-shortcut',
'--linux-deb-maintainer', 'carlosrooma94@gmail.com',
'--linux-rpm-license-type', 'MIT',
]
}
It works and the only thing I did was hardcode the resource dir path instead of referencing a variable. Hope it helps.
Adding installerOptions += ['--icon', "src/main/resources/icon.$imgType"] fixed the issue for .deb packages
I believe this is fixed in v3.0.0 by #236.
Hi, I'm trying to set an icon for a .deb package.
This is my current
build.gradle
The app icon is not present, just the java default one
Also, when my system displays the Software installer app:
--resource-dir
is correctly set as you can see in this screenshot--info
output showing correct path replacementAny hint of what might be causing this issue? Thanks in advance.