Skip to content

Desktop 开发与 ADL 调试

Desktop 是 AIR App 的默认开发基线。

bash
apm-cli app build desktop

输出:

text
bin/desktop/<App>.swf

VS Code 的 AIR Desktop launch 使用 ADL 启动应用。Desktop debug 不要求签名证书。

src/assets/ 会按 source-path convention 复制到 desktop 输出,因此无需再维护一套 debug assets。

推荐开发循环

text
修改 ActionScript / assets
  -> app sync
  -> app build desktop
  -> ADL
  -> breakpoint / runtime validation

通常 VS Code task 会自动执行 sync;只有排障时才需要手工调用:

bash
apm-cli app sync