aboutsummaryrefslogtreecommitdiff
path: root/subsonic-installer-windows/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-installer-windows/pom.xml')
-rw-r--r--subsonic-installer-windows/pom.xml106
1 files changed, 106 insertions, 0 deletions
diff --git a/subsonic-installer-windows/pom.xml b/subsonic-installer-windows/pom.xml
new file mode 100644
index 00000000..698749e6
--- /dev/null
+++ b/subsonic-installer-windows/pom.xml
@@ -0,0 +1,106 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.sourceforge.subsonic</groupId>
+ <artifactId>subsonic-installer-windows</artifactId>
+ <packaging>pom</packaging>
+ <name>Subsonic Installer for Windows</name>
+
+ <parent>
+ <groupId>net.sourceforge.subsonic</groupId>
+ <artifactId>subsonic</artifactId>
+ <version>4.7.beta2</version>
+ </parent>
+
+ <properties>
+ <exe4j.home>c:/Program Files/exe4j</exe4j.home>
+ <nsis.home>c:/Program Files/NSIS</nsis.home>
+ </properties>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>net.sourceforge.subsonic</groupId>
+ <artifactId>subsonic-main</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ </dependency>
+
+ <dependency>
+ <groupId>net.sourceforge.subsonic</groupId>
+ <artifactId>subsonic-booter</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ </dependencies>
+
+ <profiles>
+
+ <profile>
+ <id>windows</id>
+ <activation>
+ <os>
+ <family>windows</family>
+ </os>
+ </activation>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>exe4j</id>
+ <phase>compile</phase>
+ <configuration>
+ <target>
+ <echo>Compiling exe4j...</echo>
+ <copy file="${basedir}/src/main/exe4j/subsonic-agent.exe.vmoptions" todir="${project.build.directory}"/>
+ <copy file="${basedir}/src/main/exe4j/subsonic-agent-elevated.exe.vmoptions" todir="${project.build.directory}"/>
+ <copy file="${basedir}/src/main/exe4j/subsonic-service.exe.vmoptions" todir="${project.build.directory}"/>
+ <exec executable="${exe4j.home}/bin/exe4jc">
+ <arg value="--license=L-SINDRE_MEHUS#14926715500010001-1ty7dbe11l10ll#140"/>
+ </exec>
+ <exec executable="${exe4j.home}/bin/exe4jc">
+ <arg value="${basedir}/src/main/exe4j/subsonic-agent.exe4j"/>
+ </exec>
+ <exec executable="${exe4j.home}/bin/exe4jc">
+ <arg value="${basedir}/src/main/exe4j/subsonic-agent-elevated.exe4j"/>
+ </exec>
+ <exec executable="${exe4j.home}/bin/exe4jc">
+ <arg value="${basedir}/src/main/exe4j/subsonic-service.exe4j"/>
+ </exec>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ <execution>
+ <id>nsis</id>
+ <phase>compile</phase>
+ <configuration>
+ <target>
+ <echo>Compiling NSIS script...</echo>
+ <mkdir dir="${project.build.directory}"/>
+ <exec executable="${nsis.home}/makensis">
+ <arg value="${basedir}/src/main/nsis/subsonic.nsi"/>
+ <arg value="-XOutFile ${project.build.directory}/subsonic-${project.version}-setup.exe"/>
+ </exec>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ </profile>
+ </profiles>
+</project>