|
| 1 | +<autoUpdateProject> |
| 2 | + <fullName>bncert autoupdater</fullName> |
| 3 | + <shortName>bncertupdater</shortName> |
| 4 | + <version>1.0</version> |
| 5 | + <enableSslSupport>1</enableSslSupport> |
| 6 | + <autoUpdateInitializationActionList> |
| 7 | + <iniFileGet file="${system_temp_directory}/autoupdater/update.ini" section="Update"> |
| 8 | + <key>update_download_location</key> |
| 9 | + <variable>UpdateDownloadLocation</variable> |
| 10 | + </iniFileGet> |
| 11 | + <deleteFile> |
| 12 | + <path>${UpdateDownloadLocation}/bncert*</path> |
| 13 | + </deleteFile> |
| 14 | + </autoUpdateInitializationActionList> |
| 15 | + <postUpdateDownloadActionList> |
| 16 | + <setInstallerVariableFromRegEx name="downloadedFileName" text="${downloadedFilePath}"> |
| 17 | + <pattern>^(.*)[\:\/]</pattern> |
| 18 | + </setInstallerVariableFromRegEx> |
| 19 | + <setInstallerVariableFromRegEx name="downloadedFileName" text="${downloadedFileName}"> |
| 20 | + <pattern>.app.tgz|.app|.exe|.run</pattern> |
| 21 | + </setInstallerVariableFromRegEx> |
| 22 | + <iniFileGet file="${system_temp_directory}/autoupdater/update.ini" section="Update"> |
| 23 | + <key>bncert_tool_ui</key> |
| 24 | + <variable>toolUI</variable> |
| 25 | + </iniFileGet> |
| 26 | + <iniFileGet file="${system_temp_directory}/autoupdater/update.ini" section="Update"> |
| 27 | + <key>bncert_tool_installdir</key> |
| 28 | + <variable>toolInstalldir</variable> |
| 29 | + </iniFileGet> |
| 30 | + <dirName path="${downloadedFilePath}" variable="downloadFolder"/> |
| 31 | + <createDirectory path="${toolInstalldir}/bncert"/> |
| 32 | + <createSymLink linkName="${toolInstalldir}/bncert-tool" target="${toolInstalldir}/bncert/${downloadedFileName}.${platform_exec_suffix}" abortOnError="0" showMessageOnError="0"/> |
| 33 | + <renameFile ruleEvaluationLogic="or" origin="${downloadedFilePath}" destination="${toolInstalldir}/bncert/"> |
| 34 | + </renameFile> |
| 35 | + <if> |
| 36 | + <conditionRuleList> |
| 37 | + <compareText text="${toolUI}" logic="equals" value="gui"/> |
| 38 | + </conditionRuleList>s |
| 39 | + <actionList> |
| 40 | + <runProgram workingDirectory="${system_temp_directory}" abortOnError="0" showMessageOnError="0"> |
| 41 | + <program>${toolInstalldir}/bncert/${downloadedFileName}.${platform_exec_suffix}</program> |
| 42 | + <programArguments>&</programArguments> |
| 43 | + <ruleList> |
| 44 | + <platformTest type="linux"></platformTest> |
| 45 | + </ruleList> |
| 46 | + </runProgram> |
| 47 | + </actionList> |
| 48 | + <elseActionList> |
| 49 | + <exit exitCode="0"/> |
| 50 | + </elseActionList> |
| 51 | + </if> |
| 52 | + </postUpdateDownloadActionList> |
| 53 | +</autoUpdateProject> |
0 commit comments