Changeset 2307fed6 for build.xml


Ignore:
Timestamp:
Sep 12, 2011 10:52:03 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
c8395df5
Parents:
fd2c83f
Message:

switch to tar'ing the osx installer

When zipping with infozip, executable permissions are left intact. When zip is
called with ant, these permissions are lost. When tarring using ant the
permissions seem to be lost too. Switching to calling tar directly ensures that
the executable permissions aren't lost.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    rfd2c83f r2307fed6  
    10621062            <arg value="${basedir}/pkg-temp/osx/i2p-${release.number}-osx-install.app" />
    10631063        </exec>
    1064         <zip destfile="${basedir}/i2pinstall_${release.number}-osx.zip" level="9"
    1065             basedir="${basedir}/pkg-temp/osx" whenempty="fail" comment="${release.number}-${build.number}"/>
     1064        <exec executable="chmod" failonerror="true" osfamily="unix">
     1065                <arg value="755" />
     1066                <arg value="${basedir}/pkg-temp/osx/i2p-${release.number}-osx-install.app/Contents/MacOS/JavaApplicationStub" />
     1067        </exec>
     1068        <exec executable="tar" osfamily="unix" failonerror="true">
     1069                <arg value="--owner=root" />
     1070                <arg value="--group=root" />
     1071                <arg value="-cjvf" />
     1072                <arg value="${basedir}/i2pinstall_${release.number}-osx.tar.bz2" />
     1073                <arg value="-C" />
     1074                <arg value="${basedir}/pkg-temp/osx" />
     1075                <arg value="i2p-${release.number}-osx-install.app" />
     1076        </exec>
    10661077    </target>
    10671078
Note: See TracChangeset for help on using the changeset viewer.