Skip to content

Commit

Permalink
Generate installers and zips in target/builds directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hlfernandez committed Nov 29, 2016
1 parent 4cd5952 commit 38b474a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ The final application can be built using the `mvn install` command. This command
In order to create the Windows/Linux portable versions and the Windows executable installers, two profiles can be specified: `createDistributables` and `createInstallers`, respectively. Both portable versions and installers are self-contained since they contain an embedded Java Runtime Environment to run the application.

### Building the portable versions
Windows/Linux portable versions can be built using the `mvn install -PcreateDistributables` command. This command generates the following four portable versions of La-iMAgeS at `la-images-aibench/target`: Linux 32-bit, Linux 64-bit, Windows 32-bit and Windows 64-bit.
Windows/Linux portable versions can be built using the `mvn install -PcreateDistributables` command. This command generates the following four portable versions of La-iMAgeS at `la-images-aibench/target/builds`: Linux 32-bit, Linux 64-bit, Windows 32-bit and Windows 64-bit.

### Building the Windows installers
NSIS-based Windows installers can be built using the `mvn install -PcreateInstallers` command. This command generates the 32 and 64-bit versions at `la-images-aibench/target/dist32` and `la-images-aibench/target/dist`, respectively. Note that this profile is created to run under Linux environments with `mingw-w64` and `wine` installed (it relies on `i686-w64-mingw32-windres` and `i686-w64-mingw32-gcc` to create some application files packed by NSIS).
NSIS-based Windows installers can be built using the `mvn install -PcreateInstallers` command. This command generates the 32 and 64-bit versions at `la-images-aibench/target/builds`. Note that this profile is created to run under Linux environments with `mingw-w64` and `wine` installed (it relies on `i686-w64-mingw32-windres` and `i686-w64-mingw32-gcc` to create some application files packed by NSIS).

Team
----
Expand Down
15 changes: 13 additions & 2 deletions la-images-aibench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,13 @@
<arg value="target/dist/installer-script.nsi" />
</exec>
<delete includeemptydirs="true">
<fileset dir="${project.build.directory}/dist/" excludes="setup.exe"/>
<fileset dir="${project.build.directory}/dist/" excludes="setup.exe"/>
</delete>
<move
file="${project.build.directory}/dist/setup.exe"
tofile="${project.builds.directory}/${project.name}-${project.version}-windows-64b.exe"
/>
<delete dir="${project.build.directory}/dist/"/>
</target>
</configuration>
<goals>
Expand Down Expand Up @@ -222,8 +227,13 @@
<arg value="target/dist32/installer-script.nsi" />
</exec>
<delete includeemptydirs="true">
<fileset dir="${project.build.directory}/dist32/" excludes="setup.exe"/>
<fileset dir="${project.build.directory}/dist32/" excludes="setup.exe"/>
</delete>
<move
file="${project.build.directory}/dist32/setup.exe"
tofile="${project.builds.directory}/${project.name}-${project.version}-windows-32b.exe"
/>
<delete dir="${project.build.directory}/dist32/"/>
</target>
</configuration>
<goals>
Expand All @@ -249,6 +259,7 @@
<configuration>
<skipAssembly>${should.skip.distributable}</skipAssembly>
<finalName>${project.name}-${project.version}</finalName>
<outputDirectory>${project.builds.directory}</outputDirectory>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>src/main/resources/assembly/linux.xml</descriptor>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
<should.skip.installer>true</should.skip.installer>
<should.skip.distributable>true</should.skip.distributable>
<should.skip.download>true</should.skip.download>
<project.builds.directory>${project.build.directory}/builds</project.builds.directory>
</properties>

<repositories>
Expand Down

0 comments on commit 38b474a

Please sign in to comment.