`

air program auto update.

阅读更多

Air Application Auto-Update

July 30th, 2008

There is a SDK at Adobe Labs with a beta of Air Application Updates. There are 2 ways, using the UI update and the headerless update. The headerless allows you to make updates and checks without the end-user knowing the checks.

Lets make a small example.

Short Description:
1.) Local AIR Application read local config file.
2.) The config file points to external (online) config file.
3.) Online Config file holds online released update and path to file.
4.) If file is never, download and upgrade

air-updater

1.) Download the SDK
1.1) Download the files from Adobe Labs AIR Update Framework .
1.2) Put the 2 *.swc file into your app-folder/sdks/3.0.0/libs/air

2.) Create a Project
2.1) Well, you know how to create a Flex AIR Project =)

3.) The Local Settings File
3.1) Create an XML file in the project (mine is config.xml)
3.2) Change the url path where the online pointer file is.
3.3) If using the GUI version of update change the settings in defaultUI

<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
	<url>http://www.undefined-type.com/update-buxfer.xml</url>
	<delay>1</delay>
	<defaultUI>
		<dialog name="checkForUpdate" visible="true" />
		<dialog name="downloadUpdate" visible="true" />
		<dialog name="downloadProgress" visible="true" />
		<dialog name="installUpdate" visible="true" />
		<dialog name="fileUpdate" visible="true" />
		<dialog name="unexpectedError" visible="true" />
	</defaultUI>
</configuration>

4.) Create the Online Pointer File
4.1) Create the XML file, (mines called update-buxfer.xml) this is so that I put all my pointer xml file at 1 place on my server.
4.2) Fill the file with example code.

<update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
  <version>1.4</version>
  <url>http://undefined-type.com/apps/buxfer_1.4.air</url>
  <description>
           <![CDATA[
               This update enables automatic updates in the future.
           ]]>
   </description>
</update>

5.) The actual file
5.1) Don’t forget to put the actual new *.air file on the server where you are pointing =)
5.2) When building make sure as well to change the “version” in the application xml file.

6.) The Code
6.1) When you want to check the update just add this code.

import
 air.update
.events
.UpdateEvent
;
import
 air.update
.ApplicationUpdaterUI
;
 
private
 var
 updater : ApplicationUpdaterUI;
private
 function
 check(
)
:void

{

	var
 confFile : File = File.applicationDirectory
.resolvePath
(
"config-template.xml"
)
;
	updater = new
 ApplicationUpdaterUI(
)
;
	updater.configurationFile
 = confFile;
	updater.addEventListener
(
UpdateEvent.INITIALIZED
, onInit)
;
	updater.initialize
(
)
;
}

 
private
 function
 onInit(
event:UpdateEvent)
:void

{

	updater.checkNow
(
)
;
}
分享到:
评论

相关推荐

    华为官方解压工具,提取update.app 文件

    这些文件以特定的格式打包,以便于手机进行OTA(Over-The-Air)升级或通过电脑进行手动升级。 `HuaweiUpdateExtractor`是一个专为华为设备设计的工具,其主要功能是解析和提取`update.app`文件的内容。这个工具能够...

    adobe air runtime version 33.1.1.744 for Mac

    描述中提到的"adobe air runtime(电脑air运行环境) Mac版本"确认了这是为Mac用户提供的Adobe AIR运行时环境。这意味着Mac用户可以安装这个软件来运行基于Adobe AIR技术构建的应用程序。 从标签"macos"我们可以知道...

    A/B分区系统ota更新客户端代码 SystemUpdate.zip

    OTA(Over-the-Air)更新是指通过无线网络向设备推送软件更新的方法,无需用户通过USB数据线连接电脑进行升级。这种更新方式方便快捷,适用于大规模的设备升级。 描述中的"操作差分包"是指在OTA更新过程中使用的一...

    OTA_UPDATE.rar

    在本例中,"OTA_UPDATE.rar" 提供的是一个用于广升(Gosuncn)FOTA(Firmware Over The Air)升级的工具包。FOTA是针对固件级别的更新,允许用户无需通过电脑或其他物理媒介,直接通过网络下载并安装设备的系统更新...

    AirPlay+DMR+Pro+1.7.5-NoUpdate.apk

    AirPlay+DMR+Pro+1.7.5-NoUpdate.apk

    adobe air runtime version 33.1.1.744 for windows

    Adobe AIR runtime 33.1.1.744的文件名"AdobeAIR-runtime-Windows-v33.1.1.744"表明这是专为Windows设计的,文件包含了所有必要的组件,使得用户能够在Windows系统上顺畅地运行AIR应用。 使用Adobe AIR开发的应用...

    update.zip

    在Android OTA(Over-the-Air)更新中,META-INF通常包含`ALERT.SF`和`UPDATE-SuperSU.zip`等文件,用于验证更新的完整性和安全。 6. **META**: 这个目录可能是另一个存储特定更新相关信息的地方,比如特定的脚本、...

    update.rar

    这里我们讨论的是在ESP8266上使用NONOS3.0固件进行SmartConfig配网和OTA(Over-The-Air)升级的过程。SmartConfig是一种便捷的配置Wi-Fi连接的方式,而OTA升级则允许用户远程更新设备固件,无需物理接触设备。 首先,...

    adobe air runtime version 50.2.4.1 for windows

    标题中的"adobe air runtime version 50.2.4.1 for windows"指的是Adobe AIR运行时的一个特定版本,适用于Windows操作系统。 这个版本号50.2.4.1代表着软件的更新迭代,通常包括性能优化、错误修复和新功能的添加。...

    758153783191653Update.zip

    在Android设备的维护和优化过程中,这样的zip文件经常用于通过OTA(Over-The-Air)方式或手动刷机来更新系统。以下是其中包含的关键文件及其功能的详细解释: 1. **loaderdb.bin**:这是一个与设备加载器相关的...

    Wiley.Adobe.AIR.Bible.Oct.2008.eBook-DDU.pdf

    Wiley.Adobe.AIR.Bible.Oct.2008.eBook-DDU.pdf

    air.2m.gauss.2021.nc

    air.2m.gauss.2021.nc

    OtaUpdate.zip

    OTA更新,全称为Over-the-Air Technology,是无线通信领域的一种技术,主要用于移动设备(如智能手机、平板电脑)的软件更新。在Android系统中,OTA更新是设备制造商和运营商提供新功能、修复安全漏洞以及改进性能的...

    stm32f103c8t6,AT控制air模块v1.0.1.7z

    2、使用前需要更改drivers/air/air.h文件中的宏定义 //按需求更改型号 #define AIR2XX_SUPPORT //#define AIR720_SUPPORT 代码功能 (根据需求在main.c中更改执行的函数即可测试) 实验1 GSM接电话 实验2 GSM...

    xindawn-windows-airplay-master.zip_Air Media Serve_airplay_airpl

    本文将深入探讨如何在Windows平台上实现AirPlay功能的服务端程序,主要围绕"xindawn-windows-airplay-master.zip"这个压缩包中的"Air Media Server"项目,以及与之相关的"airplay"、"libairplaysdk"和"xindawn"标签...

    RKUpdateService,ota本地升级源码

    在Android系统中,OTA(Over-the-Air)升级是一种常见的系统更新方式,它允许设备通过无线网络接收并安装系统更新,极大地便利了用户对设备的维护和优化。其中,RKUpdateService是实现这一功能的关键组件,特别是在...

    airprinter 1.6.6.1 无限制版

    如果你有台iPhone手机, 或者苹果iPad平板电脑,那么你可以很方便得利用苹果iOS系统内置AirPrint功能WiFi无线打印照片,Word,PDF等各种文件到你的Air Printer打印机,但有个前提是你的打印机必须支持苹果Air Print...

    FirmWare_UpDate.zip

    而" FirmWare_UpDate.zip "文件提供了一种通过C语言编写的串口工具,使得用户能够便捷地对MCU进行固件升级,包括在实际应用中的Over-the-Air (OTA) 升级测试。 串口通信是一种古老但仍然广泛使用的通信方式,尤其在...

    Macbook Air显卡是什么.docx

    Macbook Air显卡是什么.docx

    iPad Air如何预订?.docx

    iPad Air如何预订?.docx

Global site tag (gtag.js) - Google Analytics