File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/io/github/fvarrui/javapackager Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments