Skip to content
Snippets Groups Projects
Commit 0905c09d authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Add deploy exe and zip file

parent 45e07bc6
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,14 @@ ...@@ -24,8 +24,14 @@
<junit.version>4.12</junit.version> <junit.version>4.12</junit.version>
<launch4j-maven-plugin.version>1.7.24</launch4j-maven-plugin.version> <launch4j-maven-plugin.version>1.7.25</launch4j-maven-plugin.version>
<appbundle-maven-plugin.version>1.2.0</appbundle-maven-plugin.version> <appbundle-maven-plugin.version>1.2.0</appbundle-maven-plugin.version>
<project.buildDir>../build/${project.version}</project.buildDir>
<project.jar>${project.buildDir}/${project.artifactId}.jar</project.jar>
<project.exe>${project.buildDir}/${project.artifactId}.exe</project.exe>
<project.app>${project.buildDir}/${project.artifactId}.app</project.app>
<project.zip>${project.buildDir}/${project.artifactId}.zip</project.zip>
</properties> </properties>
<dependencies> <dependencies>
...@@ -74,6 +80,7 @@ ...@@ -74,6 +80,7 @@
<build> <build>
<plugins> <plugins>
<!--Fat Jar-->
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<configuration> <configuration>
...@@ -99,6 +106,7 @@ ...@@ -99,6 +106,7 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- LAUNCH4J --> <!-- LAUNCH4J -->
<plugin> <plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId> <groupId>com.akathist.maven.plugins.launch4j</groupId>
...@@ -113,12 +121,13 @@ ...@@ -113,12 +121,13 @@
</goals> </goals>
<configuration> <configuration>
<headerType>gui</headerType> <headerType>gui</headerType>
<jar>../build/${project.version}/${project.artifactId}.jar</jar> <jar>${project.jar}</jar>
<outfile>../build/${project.version}/${project.artifactId}.exe</outfile> <icon>${project.iconBase}.ico</icon>
<downloadUrl>http://java.com/download</downloadUrl> <outfile>${project.exe}</outfile>
<classPath> <classPath>
<mainClass>${project.main}</mainClass> <mainClass>${project.main}</mainClass>
</classPath> </classPath>
<downloadUrl>http://java.com/download</downloadUrl>
<jre> <jre>
<bundledJre64Bit>false</bundledJre64Bit> <bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback> <bundledJreAsFallback>false</bundledJreAsFallback>
...@@ -126,7 +135,6 @@ ...@@ -126,7 +135,6 @@
<jdkPreference>preferJre</jdkPreference> <jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits> <runtimeBits>64/32</runtimeBits>
</jre> </jre>
<icon>${project.iconBase}.ico</icon>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
...@@ -140,7 +148,7 @@ ...@@ -140,7 +148,7 @@
<configuration> <configuration>
<mainClass>${project.main}</mainClass> <mainClass>${project.main}</mainClass>
<iconFile>${project.iconBase}.icns</iconFile> <iconFile>${project.iconBase}.icns</iconFile>
<buildDirectory>../build/${project.version}</buildDirectory> <buildDirectory>${project.buildDir}</buildDirectory>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
...@@ -151,6 +159,34 @@ ...@@ -151,6 +159,34 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!--Deploy exe, zip-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.10</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.exe}</file>
<type>exe</type>
</artifact>
<artifact>
<file>${project.zip}</file>
<type>zip</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
...@@ -176,7 +212,7 @@ ...@@ -176,7 +212,7 @@
<goal>exec</goal> <goal>exec</goal>
</goals> </goals>
<configuration> <configuration>
<workingDirectory>../build/${project.version}</workingDirectory> <workingDirectory>${project.buildDir}</workingDirectory>
<executable>${basedir}/scripts/sign.sh</executable> <executable>${basedir}/scripts/sign.sh</executable>
</configuration> </configuration>
</execution> </execution>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment