Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] use external launch4j config file and override some build specific properties #37

Merged
merged 1 commit into from
Jan 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 5 additions & 53 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.7.14</version>
<version>1.7.15</version>
<executions>
<execution>
<id>exe-win</id>
Expand All @@ -290,66 +290,18 @@
<goal>launch4j</goal>
</goals>
<configuration>
<!--
including external launch4j config file and overriding onyl some values is not supported
# https://github.com/lukaszlenart/launch4j-maven-plugin/issues/48
-->
<!--<infile>${project.build.sourceDir}/launch4j-config.xml</infile>-->

<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<!-- use external launch4j configuration file -->
<infile>${project.build.sourceDir}/launch4j-config.xml</infile>

<!-- override some build specific properties -->
<jar>${project.build.directory}/${my.finalJarName}.jar</jar>
<outfile>${project.build.directory}/${my.finalShortName}.exe</outfile>
<errTitle />
<cmdLine />
<chdir />
<priority>normal</priority>
<downloadUrl>https://www.java.com/download/</downloadUrl>
<supportUrl />
<stayAlive>true</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest />
<icon>${project.build.icons.sourceDir}/paginaEPUBChecker_512.ico</icon>
<singleInstance>
<mutexName>${my.finalJarName}</mutexName>
<windowTitle>${my.finalShortName}</windowTitle>
</singleInstance>
<jre>
<path />
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>1.7.0</minVersion>
<maxVersion />
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
<splash>
<file>${project.build.splash.sourceDir}/SplashScreen_Windows.bmp</file>
<waitForWindow>true</waitForWindow>
<timeout>60</timeout>
<timeoutErr>false</timeoutErr>
</splash>
<versionInfo>
<fileVersion>${my.versionNumber}.0</fileVersion>
<txtFileVersion>${my.versionNumber}</txtFileVersion>
<productVersion>${my.versionNumber}.0</productVersion>
<txtProductVersion>${my.versionNumber}</txtProductVersion>
<fileDescription>${my.finalLongName}</fileDescription>
<copyright>pagina GmbH, Tuebingen</copyright>
<productName>${my.finalLongName}</productName>
<companyName>pagina GmbH</companyName>
<internalName>${my.finalShortName}</internalName>
<originalFilename>${my.finalShortName}.exe</originalFilename>
<trademarks />
<language>ENGLISH_US</language>
</versionInfo>
<messages>
<startupErr>An error occurred while starting 'pagina EPUB-Checker'. Please contact support.</startupErr>
<bundledJreErr>'pagina EPUB-Checker' was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted. Please contact support.</bundledJreErr>
<jreVersionErr>'pagina EPUB-Checker' requires an installed Java Runtime Environment (JRE): min.</jreVersionErr>
<launcherErr>The registry refers to a nonexistent Java Runtime Environment (JRE) installation or the runtime is corrupted. 'pagina EPUB-Checker' can't be used. Please contact support.</launcherErr>
<instanceAlreadyExistsMsg>Another instance of 'pagina EPUB-Checker' is already running.</instanceAlreadyExistsMsg>
</messages>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 2 additions & 2 deletions src/build/launch4j-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
<versionInfo>
<fileVersion>1.7.0.0</fileVersion>
<txtFileVersion>1.7.0</txtFileVersion>
<fileDescription>pagina EPUB-Checker</fileDescription>
<copyright>pagina GmbH, Tuebingen</copyright>
<productVersion>1.7.0.0</productVersion>
<txtProductVersion>1.7.0</txtProductVersion>
<fileDescription>pagina EPUB-Checker</fileDescription>
<copyright>pagina GmbH, Tuebingen</copyright>
<productName>pagina EPUB-Checker</productName>
<companyName>pagina GmbH</companyName>
<internalName>EPUB-Checker</internalName>
Expand Down