Creating OSX installer stub

This commit is contained in:
Jindra Petřík
2015-05-08 22:05:10 +02:00
parent 252abed070
commit e27e3c8077

View File

@@ -304,16 +304,22 @@
</installer-script>]]></echo>
<property name="pkg.file" value="${RELEASESDIR}/${PREFIXFILENAME}_${VERSION}${VERSIONSUFFIX}.pkg"/>
<!-- XAR archiver, linux only :-( -->
<exec executable="xar" failonerror="true">
<fileset id="xarfileset" dir="${app.installer.dir}/flat">
<include name="*"/>
</fileset>
<pathconvert refid="xarfileset" property="xarconverted"/>
<exec executable="xar" failonerror="true" dir="${app.installer.dir}/flat">
<arg value="--compression" />
<arg value="none" />
<arg value="-cf" />
<arg value="none" />
<arg value="${pkg.file}" />
<arg value="*" />
<arg line="${xarconverted}" />
</exec>
</target>
<target name="osx-app-bundle" depends="-loadversion,dist">
<property name="app.script.temp" value="${app.bundle.dir}/${app.osx.dir}.app/Contents/MacOS/${app.osx.dir}"/>
<echo file="${app.script.temp}">#!/bin/bash&#10;cd "$(dirname "$${BASH_SOURCE[0]}")"&#10;cd ../Resources&#10;./${app.script}</echo>