Skip to content

Commit 3ed1cd3

Browse files
committed
Update PackageMojo.java
1 parent 0a5a705 commit 3ed1cd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/io/github/fvarrui/javapackager/PackageMojo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ private void generateRpmPackage() throws MojoExecutionException {
500500
if (!xpmIcon.exists()) {
501501
FileUtils.copyResourceToFile("/linux/default-icon.xpm", xpmIcon);
502502
}
503+
504+
File rpmFile = new File(outputDirectory, name + "_" + version + ".rpm");
503505

504506
// invokes plugin to generate deb package
505507
executeMojo(
@@ -516,7 +518,7 @@ private void generateRpmPackage() throws MojoExecutionException {
516518
element("icon", xpmIcon.getAbsolutePath()),
517519
element("autoRequires", "false"),
518520
element("needarch", "true"),
519-
element("copyTo", outputDirectory.getAbsolutePath()),
521+
element("copyTo", rpmFile.getAbsolutePath()),
520522
element("mappings",
521523
/* app folder files, except executable file and jre/bin/java */
522524
element("mapping",

0 commit comments

Comments
 (0)