2009년 8월 17일 월요일

Air 프로그램 자동 upgrade

클라이언트 설정

자동 업그레이드를 위해 applicationupdater_ui.swf 프레임웍을 사용했음

 

app_img1.gif

  • applicationupdater_ui.swf

    • 업데이터 프레임 웍의 핵심 수정을 하려면 flash 로 해야 한다고 함
  • updateConfig.xml
  1. <?xml version="1.0" encoding="utf-8"?>
    <configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
         <url>http://[url]/updateDescriptor.xml</url>
        <delay>1</delay>
    </configuration>

서버쪽의 updateDescriptor.xml 에 셋팅 된 파일을 현재 프로그램의 version과 체크해서 version이 다를 경우 update를 실행한다.

현재 version은 main-app.xml에서 셋팅 가능함

 

  • main-app.xml

    1. <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
      <version>4.06</version>

 

 

서버쪽 설정

소스.air

updateDescriptor.xml

 

  • updateDescriptor.xml

    1. <?xml version="1.0" encoding="utf-8"?>
           <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
             <version>4.06</version>
             <url>http://[url]/[file_name].air</url>
             <description>This is the latest version of the ezpos application.</description>
          </update>
    2.  

version에 설정된 version 값이 main-app.xml의 version과 다를 경우 실행됨.

버젼이 변경될 경우 수정해 줘야 함.

 

 

이 글은 스프링노트에서 작성되었습니다.

댓글 없음:

댓글 쓰기