Comments

2 comments

  • Avatar
    Jake

    We eventually plan to add this functionality as a built-in installer variable, but for the time being you can use the below snippet. The "processorType" variable will contain either "powerpc" or "i386"

    <initializationActionList>
      <setInstallerVariableFromScriptOutput name="processorType" execArgs="-p" exec="uname">
      <ruleList>
         <platformTest type="osx" />
      </ruleList>
      </setInstallerVariableFromScriptOutput>
    </initializationActionList>
    
  • Avatar
    juanjo

    Since InstallBuilder 6.3.0, the <platformTest> rule includes support for osx-intel and osx-ppc:

    <initializationActionList>
      <throwError text="This installer requires an Intel processor">
        <ruleList>
          <platformTest type="osx" />
          <platformTest type="osx-intel" negate="1"/>
        </ruleList>
      </throwError>
    </initializationActionList>
    

Please sign in to leave a comment.