64bit AutoUpdater for MAC OSx

Comments

3 comments

  • Avatar
    michiel

    Hi,

    Are you setting the <osxPlatforms> to 64 bit in the autoupdater XML?

     

      <osxPlatforms>os-x-intel osx-x86_64</osxPlatforms>

    Which IB version are you using?

    Regards,

    Michiel

     

    0
    Comment actions Permalink
  • Avatar
    Srilakshmi Malla

    Hi Micheal

     

    With 19.5 the autoupdater is working on old OS, and is working independently on new OS that is Catalina. But is not working when triggered from the client installer in new OS but works with old OS. Here is the code for our installer

    Can you please help as soon as possible as we have release on 3rd.

     

    Thanks in advance

     

     

            <component>

                <name>autoupdater</name>

                <description>includes tool to perform updates</description>

                <canBeEdited>0</canBeEdited>

                <selected>1</selected>

                <show>0</show>

                <folderList>

                    <folder>

                        <destination>${installdir}</destination>

                        <name>autoupdaterwin</name>

                        <platforms>windows</platforms>

                        <distributionFileList>

                            <distributionFile origin="Windows/${buildFolderName}/autoupdate-windows.exe"/>

                        </distributionFileList>

                    </folder>

                    <folder>

                        <destination>${installdir}</destination>

                        <name>autoupdaterosx</name>

                        <platforms>osx</platforms>

                        <actionList>

                            <changePermissions files="${installdir}/autoupdate-osx.app/Contents/MacOS/*" permissions="0777"/>

                        </actionList>

                        <distributionFileList>

                            <distributionFile origin="Mac/${buildFolderName}/autoupdate-osx.app"/>

                        </distributionFileList>

                    </folder>

                </folderList>

                <postInstallationActionList>

                    <writeFile>

                        <path>${installdir}/settings.ini</path>

                        <text>{

      "CurrentLang": "${installation_language_code}",

    }

    </text>

                    </writeFile>

                    <addFilesToUninstaller files="${installdir}/settings.ini"/>

                    <if>

                        <actionList>

                            <writeFile>

                                <path>${installdir}/update.ini</path>

                                <text>[Update]

    url = ${update_url}JSAPreschoolUpdate.xml

    version_id = ${version_id}

    update_download_location = ${system_temp_directory}

    check_for_updates = 1

    </text>

                            </writeFile>

                            <actionGroup>

                                <actionList>

                                    <runProgram>

                                        <program>${installdir}/${mainExecutable}.exe</program>

                                        <programArguments></programArguments>

                                                                                                                                                    <useMSDOSPath>0</useMSDOSPath>

                                    </runProgram>

                                </actionList>

                                <ruleList>

                                    <compareText>

                                        <logic>does_not_equal</logic>

                                        <text>${installer_interactivity}</text>

                                        <value>normal</value>

                                    </compareText>

                                </ruleList>

                            </actionGroup>

                        </actionList>

                        <conditionRuleList>

                            <platformTest>

                                <type>windows</type>

                            </platformTest>

                        </conditionRuleList>

                        <elseActionList>

                            <writeFile>

                                <path>${installdir}/update.ini</path>

                                <text>[Update]

    url = ${update_url}JSAPreschoolUpdate.xml

    version_id = ${version_id}

    update_download_location = ${system_temp_directory}

    check_for_updates = 1

    </text>

                            </writeFile>

                            <actionGroup>

                                <actionList>

                                    <runProgram>

                                        <program>${installdir}/${mainExecutable}.app/Contents/MacOS/${mainExecutable}</program>

                                        <programArguments>&amp;</programArguments>

                                    </runProgram>

                                </actionList>

                                <ruleList>

                                    <compareText>

                                        <logic>does_not_equal</logic>

                                        <text>${installer_interactivity}</text>

                                        <value>normal</value>

                                    </compareText>

                                </ruleList>

                            </actionGroup>

                        </elseActionList>

                    </if>

                    <addFilesToUninstaller files="${installdir}/update.ini"/>

                    <if>

                        <actionList>

                            <touchFile path="${installdir}\${mainExecutable}_Data\output_log.txt"/>

                            <addFilesToUninstaller files="${installdir}\${mainExecutable}_Data\output_log.txt"/>

                        </actionList>

                        <conditionRuleList>

                            <platformTest>

                                <type>windows</type>

                            </platformTest>

                        </conditionRuleList>

                    </if>

                    <if>

                        <actionList>

                            <touchFile path="${installdir}\${mainExecutable}_Data\PlayerPrefs.txt"/>

                            <addFilesToUninstaller files="${installdir}\${mainExecutable}_Data\PlayerPrefs.txt"/>

                        </actionList>

                        <conditionRuleList>

                            <platformTest>

                                <type>windows</type>

                            </platformTest>

                        </conditionRuleList>

                    </if>

                    <if>

                        <actionList>

                            <touchFile path="~/Library/Preferences/unity.JumpStart.Preschool.plist"/>

                            <addFilesToUninstaller files="~/Library/Preferences/unity.JumpStart.Preschool.plist"/>

                        </actionList>

                        <conditionRuleList>

                            <platformTest>

                                <type>osx</type>

                            </platformTest>

                        </conditionRuleList>

                    </if>

                                <if>

                        <actionList>

                            <addFilesToUninstaller files="${installdir}"/>

                        </actionList>

                        <conditionRuleList>

                            <platformTest>

                                <type>osx</type>

                            </platformTest>

                        </conditionRuleList>

                    </if>

                    <addEnvironmentVariable>

                        <name>JSAPreschool_VERSION</name>

                        <scope>system</scope>

                        <username>${system_username}</username>

                        <value>${project.version}</value>

                        <ruleList>

                            <registryTest>

                                <key>JSAPreschool_VERSION</key>

                                <logic>does_not_exist</logic>

                                <name>JSAPreschool_VERSION</name>

                            </registryTest>

                        </ruleList>

                    </addEnvironmentVariable>

                    <setInstallerVariable>

                        <name>project.installationType</name>

                        <value>upgrade</value>

                        <ruleList>

                            <!-- Check that the env variable exists -->

                            <compareText>

                                <logic>does_not_equal</logic>

                                <text>${env(JSAPreschool_VERSION)}</text>

                                <value></value>

                            </compareText>




                            <!-- Compare the versions -->

                            <compareVersions>

                                <logic>greater</logic>

                                <version1>${project.version}</version1>

                                <version2>${env(JSAPreschool_VERSION)}</version2>

                            </compareVersions>

                        </ruleList>

                    </setInstallerVariable>

                    <throwError text="${msg(error.text.VersionExists)}">

                        <customErrorMessage>${msg(error.text.VersionExists)}</customErrorMessage>

                        <explanation>${msg(error.text.VersionExists)}</explanation>

                        <show>0</show>

                        <ruleList>

                            <compareVersions>

                                <logic>equals</logic>

                                <version1>${project.version}</version1>

                                <version2>${env(JSAPreschool_VERSION)}</version2>

                            </compareVersions>

                        </ruleList>

                    </throwError>

                </postInstallationActionList>

            </component>


    Thank

    Sri

    0
    Comment actions Permalink
  • Avatar
    BitRock support

    Hi Sri,

    We have created a ticket for this issue and we will reply to you there.

    Regards,

    Michiel

     

    0
    Comment actions Permalink

Please sign in to leave a comment.