Commit 44e17860 authored by Andrew Wright's avatar Andrew Wright Committed by andrew

customize the wildfire view

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4304 b35dd754-fafc-0310-a699-88a17e54d16e
parent 685a142f
...@@ -1187,6 +1187,7 @@ ...@@ -1187,6 +1187,7 @@
<property name="mac.pkg.dir" value="${basedir}/macpkg" /> <property name="mac.pkg.dir" value="${basedir}/macpkg" />
<property name="mac.dmg.dir" value="${basedir}/Wildfire" /> <property name="mac.dmg.dir" value="${basedir}/Wildfire" />
<property name="mac.dmg.file" value="${basedir}/wildfire.dmg" /> <property name="mac.dmg.file" value="${basedir}/wildfire.dmg" />
<property name="mac.dmg.template" value="${basedir}/build/osx/template.dmg" />
<target name="mac.delete"> <target name="mac.delete">
<delete dir="${mac.pkg.dir}" /> <delete dir="${mac.pkg.dir}" />
...@@ -1195,7 +1196,11 @@ ...@@ -1195,7 +1196,11 @@
</target> </target>
<target name="mac.prepare" depends="mac.delete,jar"> <target name="mac.prepare" depends="mac.delete,jar">
<mkdir dir="${mac.pkg.dir}/usr/local/wildfire"/> <copy file="${mac.dmg.template}" tofile="${basedir}/tmp.dmg" />
<mkdir dir="${mac.dmg.dir}" />
<exec executable="hdiutil" failonerror="true">
<arg line="attach '${basedir}/tmp.dmg' -noautoopen -mountpoint '${mac.dmg.dir}'" />
</exec>
<copy todir="${mac.pkg.dir}/usr/local/wildfire"> <copy todir="${mac.pkg.dir}/usr/local/wildfire">
<fileset dir="${target.dir}"> <fileset dir="${target.dir}">
<exclude name="**/wildfired"/> <exclude name="**/wildfired"/>
...@@ -1204,7 +1209,8 @@ ...@@ -1204,7 +1209,8 @@
</fileset> </fileset>
</copy> </copy>
<mkdir dir="${mac.pkg.dir}/System/Library/LaunchDaemons"/> <mkdir dir="${mac.pkg.dir}/System/Library/LaunchDaemons"/>
<copy file="${basedir}/build/osx/org.jivesoftware.wildfire.plist" todir="${mac.pkg.dir}/System/Library/LaunchDaemons"/> <copy file="${basedir}/build/osx/org.jivesoftware.wildfire.plist"
todir="${mac.pkg.dir}/System/Library/LaunchDaemons"/>
<mkdir dir="${mac.dmg.dir}"/> <mkdir dir="${mac.dmg.dir}"/>
<exec executable="chown"> <exec executable="chown">
<arg line="-R root:wheel ${mac.pkg.dir}"/> <arg line="-R root:wheel ${mac.pkg.dir}"/>
...@@ -1227,7 +1233,7 @@ ...@@ -1227,7 +1233,7 @@
<arg value="-proj" /> <arg value="-proj" />
<arg value="${basedir}/build/osx/wildfire.pmproj"/> <arg value="${basedir}/build/osx/wildfire.pmproj"/>
<arg value="-p"/> <arg value="-p"/>
<arg value="${mac.dmg.dir}/wildfire.pkg"/> <arg value="${mac.dmg.dir}/Wildfire.pkg"/>
<arg value="-v"/> <arg value="-v"/>
<arg value="-ds"/> <arg value="-ds"/>
</exec> </exec>
...@@ -1235,12 +1241,7 @@ ...@@ -1235,12 +1241,7 @@
<target name="mac.dmg" depends="mac.pkg"> <target name="mac.dmg" depends="mac.pkg">
<exec executable="hdiutil" failonerror="true"> <exec executable="hdiutil" failonerror="true">
<arg value="create"/> <arg line="detach ${mac.dmg.dir} -quiet -force" />
<arg value="-srcfolder"/>
<arg value="${mac.dmg.dir}"/>
<arg value="-fs"/>
<arg value="HFS+"/>
<arg value="${basedir}/tmp.dmg"/>
</exec> </exec>
<exec executable="hdiutil" failonerror="true"> <exec executable="hdiutil" failonerror="true">
<arg line="convert ${basedir}/tmp.dmg -format UDZO -o ${mac.dmg.file}"/> <arg line="convert ${basedir}/tmp.dmg -format UDZO -o ${mac.dmg.file}"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment