Flash builder發佈Air程序時設備配置文件supportedProfiles的配置

1. 發佈的程序:須要訪問本地進程,那麼只能發佈爲exe程序才能夠。
   此時supportedProfiles 配置爲 extendedDesktop desktop
   desktop保證能發佈air時不會出錯,而訪問本地進程則須要extendedDesktop


2. 本地調試:須要訪問本地進程
   此時supportedProfiles 配置爲 extendedDesktop。若是配置爲desktop運行會報錯,提示沒有權限運行本地進程。
   爲了避免至於在發佈與調試的時候來回改supportedProfiles,調試時supportedProfiles能夠配置爲extendedDesktop desktop,但要記住順序不能顛倒。
   若是配置爲desktop extendedDesktop 運行時就會報錯。
   
  因此,只需將supportedProfiles配置爲 extendedDesktop desktop,那麼在調試與發佈時都能訪問本地進程了。
  Air程序是沒有權限訪問本地進程,只能將其打包爲exe才能夠。
  
3. 打包air爲exe命令行
a.先配置系統環境變量path:C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.5.0\bin 這樣就能夠用adt命令
b.使用命令行找到你air程序存放路徑輸入如下命令:

html

adt -package -target native mySetup.exe myAirApp.airui

若是myAirApp.air沒有配置extendedDesktop,則打包爲exe會失敗命令行

 

Adobe官網參考:調試

1. 設置配置文件htm

http://help.adobe.com/zh_CN/air/build/WS144092a96ffef7cc16ddeea2126bb46b82f-8000.html進程

2. 如何發佈爲exe文件get

http://help.adobe.com/zh_CN/air/build/WS789ea67d3e73a8b22388411123785d839c-8000.html變量

相關文章
相關標籤/搜索