|
10 | 10 | import org.apache.commons.lang3.StringUtils; |
11 | 11 |
|
12 | 12 | import io.github.fvarrui.javapackager.model.Platform; |
| 13 | +import io.github.fvarrui.javapackager.model.WindowsConfig; |
13 | 14 | import io.github.fvarrui.javapackager.utils.CommandUtils; |
14 | 15 | import io.github.fvarrui.javapackager.utils.FileUtils; |
15 | 16 | import io.github.fvarrui.javapackager.utils.JarUtils; |
@@ -55,6 +56,11 @@ protected File doApply(WindowsPackager packager) throws Exception { |
55 | 56 | File jreDestinationFolder = packager.getJreDestinationFolder(); |
56 | 57 | boolean bundleJre = packager.getBundleJre(); |
57 | 58 | String vmLocation = packager.getWinConfig().getVmLocation(); |
| 59 | + WindowsConfig winConfig = packager.getWinConfig(); |
| 60 | + |
| 61 | + if (winConfig.isWrapJar()) { |
| 62 | + Logger.warn("'wrapJar' property ignored when building EXE with " + getArtifactName()); |
| 63 | + } |
58 | 64 |
|
59 | 65 | createAssets(packager); |
60 | 66 |
|
@@ -120,7 +126,7 @@ protected File doApply(WindowsPackager packager) throws Exception { |
120 | 126 | // process EXE with rcedit-x64.exe |
121 | 127 | CommandUtils.execute(rcedit, getGenericExe(), "--set-icon", getGenericIcon()); |
122 | 128 | CommandUtils.execute(rcedit, getGenericExe(), "--application-manifest", getGenericManifest()); |
123 | | - CommandUtils.execute(rcedit.getAbsolutePath(), getGenericExe(), "--set-version-string", "FileDescription", name); |
| 129 | + CommandUtils.execute(rcedit, getGenericExe(), "--set-version-string", "FileDescription", name); |
124 | 130 |
|
125 | 131 | // creates libs folder if it doesn't exist |
126 | 132 | if (libsFolder == null) { |
|
0 commit comments