My fork of airsonic with experimental fixes and improvements. See branch "custom"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

106 lines
4.7 KiB

<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>5.3</version>
</parent>
<properties>
<exe4j.home>c:/Program Files/exe4j</exe4j.home>
<nsis.home>c:/Program Files (x86)/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>