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,18 +44,61 @@
</nsis> </nsis>
</target> </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"> <target name="dist-deb">
<taskdef resource="ant_deb_task.properties"> <taskdef resource="ant_deb_task.properties">
<classpath location="lib/ant-deb-0.0.1.jar"/> <classpath location="lib/ant-deb-0.0.1.jar"/>
</taskdef> </taskdef>
<desktopentry <desktopentry
toFile="dist/davmail.desktop" toFile="dist/davmail.desktop"
name="DavMail" name="DavMail"
comment="DavMail POP/SMTP/Caldav/LDAP Exchange Gateway" comment="DavMail POP/SMTP/Caldav/LDAP Exchange Gateway"
exec="davmail" exec="davmail"
icon="/usr/share/davmail/davmail.png" icon="/usr/share/davmail/davmail.png"
categories="Office;Email;Network;Calendar;ContactManagement" categories="Office;Email;Network;Calendar;ContactManagement"
/> />
<deb todir="dist" <deb todir="dist"
package="davmail" package="davmail"
section="mail" section="mail"
@ -63,14 +106,15 @@
<version upstream="${version}"/> <version upstream="${version}"/>
<maintainer email="mguessan@free.fr" name="Mickaël Guessant"/> <maintainer email="mguessan@free.fr" name="Mickaël Guessant"/>
<description synopsis="DavMail POP/IMAP/SMTP/Caldav/LDAP Exchange Gateway"> <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 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
even from the internet or behind a firewall through Outlook Web Access. DavMail now includes an server,
LDAP gateway to Exchange global address book to allow recipient address completion in mail compoze even from the internet or behind a firewall through Outlook Web Access. DavMail now includes an
window and full calendar support with attendees free/busy display. LDAP gateway to Exchange global address book to allow recipient address completion in mail compoze
DavMail gateway is implemented in java and should run on any platform. Releases are tested on Windows, window and full calendar support with attendees free/busy display.
Linux (Ubuntu) and Mac OSX. Tray does not work on MacOS and is replaced with a full frame. DavMail gateway is implemented in java and should run on any platform. Releases are tested on Windows,
Tested successfully with the Iphone (gateway running on a server). Linux (Ubuntu) and Mac OSX. Tray does not work on MacOS and is replaced with a full frame.
Tested successfully with the Iphone (gateway running on a server).
http://davmail.sourceforge.net http://davmail.sourceforge.net
@ -179,6 +223,7 @@
</tar> </tar>
<antcall target="dist-nsis"/> <antcall target="dist-nsis"/>
<antcall target="dist-deb"/> <antcall target="dist-deb"/>
<antcall target="dist-osx"/>
<!-- source package --> <!-- source package -->
<tar tarfile="dist/davmail-src-${version}.tgz" compression="gzip" longfile="gnu"> <tar tarfile="dist/davmail-src-${version}.tgz" compression="gzip" longfile="gnu">
<tarfileset prefix="davmail-src-${version}" dir="."> <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.