MacOSX DMG package creation

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@366 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-02-17 14:20:13 +00:00
parent 23aa8311eb
commit e707b8fe5c
3 changed files with 60 additions and 15 deletions

View File

@ -44,6 +44,49 @@
</nsis>
</target>
<target name="dist-osx">
<taskdef name="jarbundler"
classname="net.sourceforge.jarbundler.JarBundler">
<classpath location="lib/jarbundler-2.1.0.jar"/>
</taskdef>
<!-- Fake JavaApplicationStub, replaced with a link to
/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub-->
<touch file="dist/JavaApplicationStub"/>
<jarbundler dir="dist"
shortname="DavMail"
name="DavMail"
mainclass="davmail.DavGateway"
build="$(version)"
icon="src/osx/tray.icns"
infostring="DavMail Gateway $(version)"
jvmversion="1.5+"
version="$(version)"
vmoptions="-Dsun.net.inetaddr.ttl=60 -Xmx512m"
stubfile="dist/JavaApplicationStub">
<jarfileset dir="dist/lib">
<include name="*.jar"/>
<exclude name="swt*.jar"/>
</jarfileset>
<jarfileset dir="dist">
<include name="*.jar"/>
</jarfileset>
</jarbundler>
<delete file="dist/DavMail.app/Contents/MacOS/JavaApplicationStub"/>
<symlink link="dist/DavMail.app/Contents/MacOS/JavaApplicationStub"
resource="/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub"/>
<exec executable="/usr/bin/hdiutil" os="Mac OS X" failonerror="true">
<arg value="create"/>
<arg value="-srcfolder"/>
<arg value="dist/DavMail.app"/>
<arg value="SWTHello.dmg"/>
</exec>
<exec executable="/usr/bin/hdiutil" os="Mac OS X" failonerror="true">
<arg value="internet-enable"/>
<arg value="-yes"/>
<arg value="SWTHello.dmg"/>
</exec>
</target>
<target name="dist-deb">
<taskdef resource="ant_deb_task.properties">
<classpath location="lib/ant-deb-0.0.1.jar"/>
@ -64,7 +107,8 @@
<maintainer email="mguessan@free.fr" name="Mickaël Guessant"/>
<description synopsis="DavMail POP/IMAP/SMTP/Caldav/LDAP Exchange Gateway">
Ever wanted to get rid of Outlook ? DavMail is a POP/IMAP/SMTP/Caldav/LDAP exchange gateway allowing
users to use any mail/calendar client (e.g. Thunderbird with Lightning or Apple iCal) with an Exchange server,
users to use any mail/calendar client (e.g. Thunderbird with Lightning or Apple iCal) with an Exchange
server,
even from the internet or behind a firewall through Outlook Web Access. DavMail now includes an
LDAP gateway to Exchange global address book to allow recipient address completion in mail compoze
window and full calendar support with attendees free/busy display.
@ -179,6 +223,7 @@
</tar>
<antcall target="dist-nsis"/>
<antcall target="dist-deb"/>
<antcall target="dist-osx"/>
<!-- source package -->
<tar tarfile="dist/davmail-src-${version}.tgz" compression="gzip" longfile="gnu">
<tarfileset prefix="davmail-src-${version}" dir=".">

BIN
lib/jarbundler-2.1.0.jar Normal file

Binary file not shown.

BIN
src/osx/tray.icns Normal file

Binary file not shown.