Skip to content

Commit

Permalink
- executables for Windows
Browse files Browse the repository at this point in the history
- distribution for Windows
- 1.1.0 version
  • Loading branch information
reallyinsane committed Jan 21, 2020
1 parent 9ddbb28 commit a1a0d53
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 37 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-aggregator</artifactId>
<packaging>pom</packaging>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>
<modules>
<module>trainsimulator-core</module>
<module>trainsimulator-parent</module>
Expand Down
4 changes: 2 additions & 2 deletions trainsimulator-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../trainsimulator-parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-client</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>

<dependencies>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions trainsimulator-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../trainsimulator-parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-core</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>
<dependencies>

</dependencies>
Expand Down
Binary file added trainsimulator-ft232h/app.ico
Binary file not shown.
69 changes: 58 additions & 11 deletions trainsimulator-ft232h/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<parent>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../trainsimulator-parent</relativePath>
</parent>
<packaging>jar</packaging>
<modelVersion>4.0.0</modelVersion>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-ft232h</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>
<properties>
<start-class>io.mathan.trainsimulator.ft232h.Ft232hApplication</start-class>
</properties>
Expand All @@ -33,14 +33,61 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.7.25</version>
<executions>
<execution>
<id>build-windows-executable</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
</execution>
</executions>
<configuration>
<headerType>console</headerType>
<outfile>${project.build.directory}/${project.artifactId}-${project.version}.exe</outfile>
<jar>${project.build.directory}/${project.artifactId}-${project.version}.jar</jar>
<errTitle>${project.artifactId}</errTitle>
<classPath>
<mainClass>org.springframework.boot.loader.JarLauncher</mainClass>
<addDependencies>false</addDependencies>
</classPath>
<icon>app.ico</icon>
<jre>
<minVersion>1.8.0</minVersion>
</jre>
<versionInfo>
<fileVersion>${project.version}.0</fileVersion>
<txtFileVersion>${project.version}.0</txtFileVersion>
<fileDescription>trainsimulator-controller ft232h sample</fileDescription>
<copyright>Copyright 2019 Matthias Hanisch (reallyinsane)</copyright>
<productVersion>${project.version}.0</productVersion>
<txtProductVersion>${project.version}.0</txtProductVersion>
<productName>${project.artifactId}</productName>
<internalName>${project.artifactId}</internalName>
<originalFilename>${project.artifactId}-${project.version}.exe</originalFilename>
</versionInfo>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assembly/zip.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</project>
26 changes: 26 additions & 0 deletions trainsimulator-ft232h/src/assembly/zip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>distribution</id>
<formats>
<format>zip</format>
</formats>
<files>
<file>
<source>target/${project.artifactId}-${project.version}.exe</source>
<outputDirectory></outputDirectory>
</file>
<file>
<source>../LICENSE</source>
<outputDirectory></outputDirectory>
</file>
<file>
<source>src/main/resources/application.properties</source>
<outputDirectory></outputDirectory>
</file>
<file>
<source>src/main/resources/default.mapping</source>
<outputDirectory></outputDirectory>
</file>
</files>
</assembly>
2 changes: 1 addition & 1 deletion trainsimulator-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<packaging>pom</packaging>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>

<properties>
<pi4j.version>1.2</pi4j.version>
Expand Down
4 changes: 2 additions & 2 deletions trainsimulator-raspberry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../trainsimulator-parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-raspberry</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>

<dependencies>
<dependency>
Expand Down
Binary file added trainsimulator-server/app.ico
Binary file not shown.
83 changes: 65 additions & 18 deletions trainsimulator-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<parent>
<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../trainsimulator-parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>

<groupId>io.mathan.trainsimulator</groupId>
<artifactId>trainsimulator-server</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0</version>

<properties>
<start-class>io.mathan.trainsimulator.service.Application</start-class>
Expand All @@ -28,26 +28,73 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<!--to be imported on other projects-->
<classifier>import</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<!--to be imported on other projects-->
<classifier>import</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.7.25</version>
<executions>
<execution>
<id>build-windows-executable</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
</execution>
</executions>
<configuration>
<headerType>console</headerType>
<outfile>${project.build.directory}/${project.artifactId}-${project.version}.exe</outfile>
<jar>${project.build.directory}/${project.artifactId}-${project.version}.jar</jar>
<errTitle>${project.artifactId}</errTitle>
<classPath>
<mainClass>org.springframework.boot.loader.JarLauncher</mainClass>
<addDependencies>false</addDependencies>
</classPath>
<icon>app.ico</icon>
<jre>
<minVersion>1.8.0</minVersion>
</jre>
<versionInfo>
<fileVersion>${project.version}.0</fileVersion>
<txtFileVersion>${project.version}.0</txtFileVersion>
<fileDescription>trainsimulator-controller REST server</fileDescription>
<copyright>Copyright 2019 Matthias Hanisch (reallyinsane)</copyright>
<productVersion>${project.version}.0</productVersion>
<txtProductVersion>${project.version}.0</txtProductVersion>
<productName>${project.artifactId}</productName>
<internalName>${project.artifactId}</internalName>
<originalFilename>${project.artifactId}-${project.version}.exe</originalFilename>
</versionInfo>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assembly/zip.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit a1a0d53

Please sign in to comment.