Ignore:
Timestamp:
2020-12-06T02:35:52+13:00 (3 years ago)
Author:
anupama
Message:

Working with separate folders (MacShortcuts32bit and MacShortcuts64bit) of .app mac shortcuts that work on Mojave and earlier, versus those that work on Catalina (and hopefully later). Catalina only likes .app built on Catalina not earlier machines, presumably this is because it's not backwards compatible with any 32 bit binary inside the .app folder, but Mojave doesn't like the 64 bit version built on Catalina. Since Mojave works with the (32 bit) versions built on a much earlier MacOS, everything before and upto Mojave is left to work with those. This rk3 installer change goes with the commit 34585 of changes in GS3's main build.xml and 2 folders of the older .app and newer (Catalina) .app files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/kits/rk3/installer/build.xml

    r32975 r34587  
    176176        <!-- if windows|linux -->
    177177        <echo>Deleting mac shortcuts</echo>
    178         <delete dir="${installDir}/gs3-server.app"/>
    179         <delete dir="${installDir}/gli.app"/>
    180         <delete dir="${installDir}/client-gli.app"/>
    181         <delete dir="${installDir}/gems.app"/>
     178       
     179        <!-- from now on, we have 64 bit .app as well as 32 bit .app files in their own separate folders.
     180          One or more of these folders or .app files won't exist, so don't fail on error if they can't be deleted for that reason -->
     181        <delete failonerror="false" dir="${installDir}/MacShortcuts64bit"/>
     182        <delete failonerror="false" dir="${installDir}/MacShortcuts32bit"/>
    182183        <!-- /if -->       
    183184       
    184185        <!-- if mac -->
    185186        <echo>Installing Mac Shortcuts</echo>
     187        <!-- convert template document.wflow.in files inside the .app mac shortcuts into their live files -->
    186188        <ant dir="${installDir}" antfile="build.xml" target="gen-mac-shortcuts" inheritAll="false" />
     189
    187190        <!-- need to give executable permissions to the Mac shortcuts -->
    188191        <chmod file="${installDir}/gs3-server.app/Contents/MacOS/gs2-server" perm="775"/><!--called gs2-server, since the gs3-server.app is a copy of the one generated for gs2-->
     
    191194        <chmod file="${installDir}/gems.app/Contents/MacOS/gems" perm="775"/>
    192195
     196        <!-- From Catalina (Darwin kernel version 19.x onwards) the executables are called: Application Stub -->       
     197        <chmod file="${installDir}/gs3-server.app/Contents/MacOS/Application Stub" perm="775"/>
     198        <chmod file="${installDir}/gli.app/Contents/MacOS/Application Stub" perm="775"/>
     199        <chmod file="${installDir}/client-gli.app/Contents/MacOS/Application Stub" perm="775"/>
     200        <chmod file="${installDir}/gems.app/Contents/MacOS/Application Stub" perm="775"/>
     201
    193202        <!--<chmod dir="${installDir}" includes="*.app" perm="755"/>
    194203        <chmod dir="${installDir}" includes="*.app/**/*" perm="755"/>-->
    195204
     205        <!-- can get rid of the shortcuts folders -->
     206        <delete failonerror="false" dir="${installDir}/MacShortcuts64bit"/>
     207        <delete failonerror="false" dir="${installDir}/MacShortcuts32bit"/>
    196208        <!-- /if -->
    197209
Note: See TracChangeset for help on using the changeset viewer.