Ignore:
Timestamp:
2015-08-25T21:47:13+12:00 (9 years ago)
Author:
ak19
Message:

Changes specific to 64 bit MacOS with which we now bundle a JRE.

Location:
main/trunk/release-kits/shared/core/ant-scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/core/ant-scripts/create-installer.xml

    r24438 r30131  
    6767            <math result="component.bytesize.core" operand1="${component.bytesize.core-without-jre}" operation="+" operand2="${component.bytesize.linux-java}" datatype="int"/>
    6868        <else>
    69             <property name="component.bytesize.core" value="${component.bytesize.core-without-jre}"/>
     69            <exec dir="." executable="/bin/sh" outputproperty="bitness.ouput"><arg line="-c &quot;uname -m&quot;"/></exec>
     70            <if><bool><contains string="${bitness.ouput}" substring="_64"/></bool>
     71                <math result="component.bytesize.core" operand1="${component.bytesize.core-without-jre}" operation="+" operand2="${component.bytesize.mac-java}" datatype="int"/>
     72                <else><property name="component.bytesize.core" value="${component.bytesize.core-without-jre}"/></else>
     73            </if>
    7074        </else></if></else></if>
    7175        <math result="component.megabytesize.core" operand1="${component.bytesize.core}" operation="/" operand2="1048576" datatype="int"/>
  • main/trunk/release-kits/shared/core/ant-scripts/shared.xml

    r29393 r30131  
    9292        <!-- linux -->
    9393        <property name="linux-java.installer" value="jre_bin${extension_x64}"/>
    94         <property name="bundled.version.linux-java" value="1.6.0_05"/> <!-- set this to the version number of java in the above archive -->
     94        <property name="bundled.version.linux-java" value="1.7.0_72"/> <!-- set this to the version number of java in the above archive -->
    9595        <property name="component.bytesize.linux-java" value="101245987"/> <!-- set this to the size of the extract archive -->
    9696
    9797        <!-- windows -->
    9898        <property name="windows-java.installer" value="jre.exe"/>
    99         <property name="bundled.version.windows-java" value="1.6.0_07"/> <!-- set this to the version number of java in the above archive -->
     99        <property name="bundled.version.windows-java" value="1.7.0_72"/> <!-- set this to the version number of java in the above archive -->
    100100        <property name="component.bytesize.windows-java" value="75000000"/> <!-- set this to the size of the extract archive -->
     101
     102        <!-- mac -->
     103        <!-- only a jre_bin for 64 bit macs -->
     104        <property name="mac-java.installer" value="jre_bin_x64"/>
     105        <property name="bundled.version.mac-java" value="1.7.0_79"/> <!-- set this to the version number of java in the above archive -->
     106        <property name="component.bytesize.mac-java" value="30688272"/> <!-- set this to the size of the archive, NOT the extracted archive, since we'll extract it into the /tmp folder -->
    101107
    102108        <!-- version numbers of other bundled things -->
  • main/trunk/release-kits/shared/core/ant-scripts/wrap.xml

    r30130 r30131  
    151151
    152152            <!-- copy bundled files -->
     153            <!-- Include the self-extracting jre (for 64 bit) if this Mac is a 64 bit OS
     154                 http://stackoverflow.com/questions/218989/how-to-determine-build-architecture-32bit-64bit-with-ant -->
     155            <exec dir="." executable="/bin/sh" outputproperty="bitness.ouput"><arg line="-c &quot;uname -m&quot;"/></exec>
     156            <if><bool><contains string="${bitness.ouput}" substring="_64"/></bool>
     157                <copy tofile="wrapped-installer/Greenstone${version}${version-extra}.app/Contents/Resources/Java/jre_bin" file="${rk.home}/shared/mac/${mac-java.installer}"/>
     158            </if>
    153159            <chmod file="wrapped-installer/Greenstone${version}${version-extra}.app/Contents/MacOS/greenstone" perm="ug+x"/>
    154160            <copy todir="wrapped-installer/Greenstone${version}${version-extra}.app/Contents/Resources/Java" file="installer/Greenstone-${version}${version-extra}-${os.suffix}.jar"/>
Note: See TracChangeset for help on using the changeset viewer.