@@ -30,48 +30,51 @@ public File apply(Packager packager) throws Exception {
3030 Logger .info (getArtifactName () + " generation skipped by 'linuxConfig.generateDeb' property!" );
3131 return null ;
3232 }
33-
34- File assetsFolder = linuxPackager .getAssetsFolder ();
35- String name = linuxPackager .getName ();
36- String description = linuxPackager .getDescription ();
37- File appFolder = linuxPackager .getAppFolder ();
38- File outputDirectory = linuxPackager .getOutputDirectory ();
39- String version = linuxPackager .getVersion ();
40- boolean bundleJre = linuxPackager .getBundleJre ();
41- String jreDirectoryName = linuxPackager .getJreDirectoryName ();
42- File executable = linuxPackager .getExecutable ();
43- String organizationName = linuxPackager .getOrganizationName ();
44- String organizationEmail = linuxPackager .getOrganizationEmail ();
45-
46- // generates desktop file from velocity template
47- File desktopFile = new File (assetsFolder , name + ".desktop" );
48- VelocityUtils .render ("linux/desktop.vtl" , desktopFile , linuxPackager );
49- Logger .info ("Desktop file rendered in " + desktopFile .getAbsolutePath ());
50-
51- // generated deb file
52- File debFile = new File (outputDirectory , name + "_" + version + ".deb" );
53-
54- Deb debTask = createDebTask ();
55- debTask .setProperty ("archiveFileName" , debFile .getName ());
56- debTask .setProperty ("destinationDirectory" , outputDirectory );
57- debTask .setPackageName (name .toLowerCase ());
58- debTask .setPackageDescription (description );
59- debTask .setPackager (organizationName );
60- debTask .setUploaders (organizationName );
61- debTask .setMaintainer (organizationName + (organizationEmail != null ? " <" + organizationEmail + ">" : "" ));
62- debTask .setPriority ("optional" );
63- debTask .setArchStr ("amd64" );
64- debTask .setDistribution ("development" );
65- debTask .setRelease ("1" );
66-
67- // installation destination
68- debTask .into ("/opt/" + name );
69-
70- // includes app folder files, except executable file and jre/bin/java
71- debTask .from ("build/assets/" + name + ".desktop" , c -> {
72- c .into (name );
73- });
7433
34+ Logger .warn ("Sorry! " + getArtifactName () + " generation is not yet available" );
35+ return null ;
36+
37+ // File assetsFolder = linuxPackager.getAssetsFolder();
38+ // String name = linuxPackager.getName();
39+ // String description = linuxPackager.getDescription();
40+ // File appFolder = linuxPackager.getAppFolder();
41+ // File outputDirectory = linuxPackager.getOutputDirectory();
42+ // String version = linuxPackager.getVersion();
43+ // boolean bundleJre = linuxPackager.getBundleJre();
44+ // String jreDirectoryName = linuxPackager.getJreDirectoryName();
45+ // File executable = linuxPackager.getExecutable();
46+ // String organizationName = linuxPackager.getOrganizationName();
47+ // String organizationEmail = linuxPackager.getOrganizationEmail();
48+ //
49+ // // generates desktop file from velocity template
50+ // File desktopFile = new File(assetsFolder, name + ".desktop");
51+ // VelocityUtils.render("linux/desktop.vtl", desktopFile, linuxPackager);
52+ // Logger.info("Desktop file rendered in " + desktopFile.getAbsolutePath());
53+ //
54+ // // generated deb file
55+ // File debFile = new File(outputDirectory, name + "_" + version + ".deb");
56+ //
57+ // Deb debTask = createDebTask();
58+ // debTask.setProperty("archiveFileName", debFile.getName());
59+ // debTask.setProperty("destinationDirectory", outputDirectory);
60+ // debTask.setPackageName(name.toLowerCase());
61+ // debTask.setPackageDescription(description);
62+ // debTask.setPackager(organizationName);
63+ // debTask.setUploaders(organizationName);
64+ // debTask.setMaintainer(organizationName + (organizationEmail != null ? " <" + organizationEmail + ">" : ""));
65+ // debTask.setPriority("optional");
66+ // debTask.setArchStr("amd64");
67+ // debTask.setDistribution("development");
68+ // debTask.setRelease("1");
69+ //
70+ // // installation destination
71+ // debTask.into("/opt/" + name);
72+ //
73+ // // includes app folder files, except executable file and jre/bin/java
74+ // debTask.from("build/assets/" + name + ".desktop", c -> {
75+ // c.into(name);
76+ // });
77+ //
7578// // executable
7679// debTask.from(appFolder.getParentFile(), c -> {
7780// c.include(appFolder.getName() + "/" + executable.getName());
@@ -90,14 +93,14 @@ public File apply(Packager packager) throws Exception {
9093// debTask.from(desktopFile.getParentFile().getAbsolutePath(), c -> {
9194// c.into("/usr/share/applications");
9295// });
93-
94- // symbolic link in /usr/local/bin to app binary
95- debTask .link ("/usr/local/bin/" + name , "/opt/" + name + "/" + name , 0777 );
96-
97- // runs deb task
98- debTask .getActions ().forEach (action -> action .execute (debTask ));
99-
100- return debFile ;
96+ //
97+ // // symbolic link in /usr/local/bin to app binary
98+ // debTask.link("/usr/local/bin/" + name, "/opt/" + name + "/" + name, 0777);
99+ //
100+ // // runs deb task
101+ // debTask.getActions().forEach(action -> action.execute(debTask));
102+ //
103+ // return debFile;
101104
102105 }
103106
0 commit comments