installer build fixups

This commit is contained in:
zzz
2012-02-26 23:05:21 +00:00
parent 394943c36f
commit 6ebd1f121a
2 changed files with 23 additions and 35 deletions

View File

@ -206,6 +206,7 @@
<copy file="apps/jetty/jettylib/javax.servlet.jar" todir="build/" /> <copy file="apps/jetty/jettylib/javax.servlet.jar" todir="build/" />
</target> </target>
<!-- this makes an empty build/launchi2p.jar and the build/i2p.exe for the no-wrapper windows startup, if possible -->
<target name="buildexe"> <target name="buildexe">
<condition property="noExe"> <condition property="noExe">
<os arch="x86_64" /> <os arch="x86_64" />
@ -234,6 +235,7 @@
classname="net.sf.launch4j.ant.Launch4jTask" classname="net.sf.launch4j.ant.Launch4jTask"
classpath="${basedir}/installer/lib/launch4j/launch4j.jar:${basedir}/installer/lib/launch4j/lib/xstream.jar" /> classpath="${basedir}/installer/lib/launch4j/launch4j.jar:${basedir}/installer/lib/launch4j/lib/xstream.jar" />
<!-- this makes an empty build/launchi2p.jar and the build/i2p.exe for the no-wrapper windows startup -->
<target name="doBuildEXE" depends="buildProperties" unless="noExe"> <target name="doBuildEXE" depends="buildProperties" unless="noExe">
<jar destfile="./build/launchi2p.jar"> <jar destfile="./build/launchi2p.jar">
<manifest> <manifest>
@ -572,7 +574,6 @@
<delete dir="./build" /> <delete dir="./build" />
<delete file="installer/lib/izpack/patches.jar" failonerror="false" quiet="true" /> <delete file="installer/lib/izpack/patches.jar" failonerror="false" quiet="true" />
<delete file="i2pinstall.exe" failonerror="false" quiet="true" /> <delete file="i2pinstall.exe" failonerror="false" quiet="true" />
<delete file="i2p.exe" failonerror="false" quiet="true" />
<delete file="syndie-standalone.zip" failonerror="false" quiet="true" /> <delete file="syndie-standalone.zip" failonerror="false" quiet="true" />
<delete> <delete>
<fileset dir="." includes="i2pinstall*jar i2pinstall*bz2" /> <fileset dir="." includes="i2pinstall*jar i2pinstall*bz2" />
@ -754,7 +755,7 @@
</target> </target>
<target name="preppkg-windows" depends="preppkg-base, buildexe"> <target name="preppkg-windows" depends="preppkg-base, buildexe">
<copy file="i2p.exe" todir="pkg-temp/" failonerror="false" /> <copy file="build/i2p.exe" todir="pkg-temp/" failonerror="false" />
<copy file="apps/systray/java/lib/systray4j.dll" todir="pkg-temp/lib" /> <copy file="apps/systray/java/lib/systray4j.dll" todir="pkg-temp/lib" />
<copy file="apps/systray/java/resources/iggy.ico" todir="pkg-temp/icons" /> <copy file="apps/systray/java/resources/iggy.ico" todir="pkg-temp/icons" />
<copy file="apps/systray/java/resources/iggy.xpm" todir="pkg-temp/icons" /> <copy file="apps/systray/java/resources/iggy.xpm" todir="pkg-temp/icons" />
@ -1169,43 +1170,31 @@
<ant target="doInstallerEXE" /> <ant target="doInstallerEXE" />
</target> </target>
<!-- this makes i2pinstall.exe from install.jar -->
<target name="doInstallerEXE" unless="noExe"> <target name="doInstallerEXE" unless="noExe">
<!-- now the installer exe --> <!-- now the installer exe -->
<launch4j configFile="./installer/i2pinstaller.xml" /> <launch4j configFile="./installer/i2pinstaller.xml" />
<launch4j configFile="./installer/i2pstandalone.xml" />
<!-- thazzit --> <!-- thazzit -->
</target> </target>
<!-- Custom installers --> <!-- Custom installers -->
<target name="installer-nowindows" depends="clean, preppkg-nowindows, getReleaseNumber, getBuildNumber, buildProperties, util-list-changes, izpack-patches" > <target name="installer-nowindows" depends="clean, preppkg-nowindows, izpack-patches" >
<mkdir dir="pkg-temp/installer" /> <izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${full.version}.jar" installerType="standard" basedir="${basedir}" />
<!-- set if unset -->
<property name="workspace.changes.util.tr" value="" />
<izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${release.number}-${i2p.build.number}${build.extra}.jar" installerType="standard" basedir="${basedir}" />
</target> </target>
<target name="installer-freebsd" depends="clean, preppkg-freebsd-only, getReleaseNumber, getBuildNumber, buildProperties, util-list-changes, izpack-patches" > <target name="installer-freebsd" depends="clean, preppkg-freebsd-only, izpack-patches" >
<mkdir dir="pkg-temp/installer" /> <izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${full.version}_freebsd-only.jar" installerType="standard" basedir="${basedir}" />
<!-- set if unset -->
<property name="workspace.changes.util.tr" value="" />
<izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${release.number}-${i2p.build.number}${build.extra}_freebsd-only.jar" installerType="standard" basedir="${basedir}" />
</target> </target>
<target name="installer-linux" depends="clean, preppkg-linux-only, getReleaseNumber, getBuildNumber, buildProperties, util-list-changes, izpack-patches" > <target name="installer-linux" depends="clean, preppkg-linux-only, izpack-patches" >
<mkdir dir="pkg-temp/installer" /> <izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${full.version}_linux-only.jar" installerType="standard" basedir="${basedir}" />
<!-- set if unset -->
<property name="workspace.changes.util.tr" value="" />
<izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${release.number}-${i2p.build.number}${build.extra}_linux-only.jar" installerType="standard" basedir="${basedir}" />
</target> </target>
<target name="installer-osx" depends="clean, checkForIzpack2App, preppkg-osx-only, getReleaseNumber, getBuildNumber, buildProperties, util-list-changes, izpack-patches"> <target name="installer-osx" depends="clean, checkForIzpack2App, preppkg-osx-only, izpack-patches">
<mkdir dir="pkg-temp/installer" />
<mkdir dir="pkg-temp/osx" /> <mkdir dir="pkg-temp/osx" />
<!-- set if unset --> <izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${full.version}_osx-only.jar" installerType="standard" basedir="${basedir}" />
<property name="workspace.changes.util.tr" value="" />
<izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${release.number}-${i2p.build.number}${build.extra}_osx-only.jar" installerType="standard" basedir="${basedir}" />
<ant target="installer2app" /> <ant target="installer2app" />
<delete dir="pkg-temp/osx" /> <delete dir="pkg-temp/osx" />
</target> </target>
@ -1218,28 +1207,25 @@
<mkdir dir="pkg-temp/osx" /> <mkdir dir="pkg-temp/osx" />
<exec executable="python" failonerror="true"> <exec executable="python" failonerror="true">
<arg value="${user.home}/IzPack/utils/wrappers/izpack2app/izpack2app.py" /> <arg value="${user.home}/IzPack/utils/wrappers/izpack2app/izpack2app.py" />
<arg value="${basedir}/i2pinstall_${release.number}-${i2p.build.number}${build.extra}_osx-only.jar" /> <arg value="${basedir}/i2pinstall_${full.version}_osx-only.jar" />
<arg value="${basedir}/pkg-temp/osx/i2p-${release.number}-${i2p.build.number}${build.extra}_osx-install.app" /> <arg value="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app" />
</exec> </exec>
<exec executable="chmod" failonerror="true" osfamily="unix"> <exec executable="chmod" failonerror="true" osfamily="unix">
<arg value="755" /> <arg value="755" />
<arg value="${basedir}/pkg-temp/osx/i2p-${release.number}-${i2p.build.number}${build.extra}_osx-install.app/Contents/MacOS/JavaApplicationStub" /> <arg value="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app/Contents/MacOS/JavaApplicationStub" />
</exec> </exec>
<exec executable="tar" osfamily="unix" failonerror="true"> <exec executable="tar" osfamily="unix" failonerror="true">
<arg value="--owner=root" /> <arg value="--owner=root" />
<arg value="--group=root" /> <arg value="--group=root" />
<arg value="-cjvf" /> <arg value="-cjvf" />
<arg value="${basedir}/i2pinstall_${release.number}-${i2p.build.number}${build.extra}_osx.tar.bz2" /> <arg value="${basedir}/i2pinstall_${full.version}_osx.tar.bz2" />
<arg value="-C" /> <arg value="-C" />
<arg value="${basedir}/pkg-temp/osx" /> <arg value="${basedir}/pkg-temp/osx" />
<arg value="i2p-${release.number}-${i2p.build.number}${build.extra}_osx-install.app" /> <arg value="i2p-${full.version}_osx-install.app" />
</exec> </exec>
</target> </target>
<!-- Yes, even though this makes an installer for Windows, we still need to depend on preppkg-unix (because the installer attempts to delete these files <target name="installer-windows" depends="clean, preppkg-windows-only, util-list-changes, izpack-patches" >
and will fail if they don't exist. Thankfully these files are so very small there's not much harm in including them.
-->
<target name="installer-windows" depends="clean, doBuildEXE, preppkg-windows-only, preppkg-unix, getReleaseNumber, getBuildNumber, buildProperties, util-list-changes, izpack-patches" >
<mkdir dir="pkg-temp/installer" /> <mkdir dir="pkg-temp/installer" />
<!-- set if unset --> <!-- set if unset -->
<property name="workspace.changes.util.tr" value="" /> <property name="workspace.changes.util.tr" value="" />
@ -1267,8 +1253,10 @@
<attribute name="Workspace-Changes" value="${workspace.changes.util.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.util.tr}" />
</manifest> </manifest>
</jar> </jar>
<izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${release.number}-${i2p.build.number}${build.extra}_windows-only.jar" installerType="standard" basedir="${basedir}" /> <izpack input="${basedir}/installer/install.xml" output="${basedir}/install.jar" installerType="standard" basedir="${basedir}" />
<delete dir="pkg-temp/win" /> <ant target="installerexe" />
<delete file="${basedir}/install.jar" />
<move file="${basedir}/i2pinstall.exe" tofile="${basedir}/i2pinstall_${full.version}_windows-only.exe" />
</target> </target>
<target name="installer-all" depends="installer-freebsd, installer-linux, installer-osx, installer-windows, installer" > <target name="installer-all" depends="installer-freebsd, installer-linux, installer-osx, installer-windows, installer" >

View File

@ -1,7 +1,7 @@
<launch4jConfig> <launch4jConfig>
<headerType>0</headerType> <headerType>0</headerType>
<jar>../build/launchi2p.jar</jar> <jar>../build/launchi2p.jar</jar>
<outfile>../i2p.exe</outfile> <outfile>../build/i2p.exe</outfile>
<errTitle>I2P</errTitle> <errTitle>I2P</errTitle>
<chdir>.</chdir> <chdir>.</chdir>
<customProcName>false</customProcName> <customProcName>false</customProcName>