如何解压、更新和重新打包 Adobe Air 文件?
我需要解压缩空气文件,更新它并重新打包它。有人可以在这方面帮助我吗?
在java中,对于jar文件,我们可以使用winrar实用程序。请建议我们如何处理空气。adobe air 有任何实用程序吗?
我尝试使用 winzip/winrar。我将其扩展名更改为 .zip 文件并在 winzip 和 winrar 中打开它。当我尝试更新它时,它已损坏。
-阿布舍克
I need to unpack air file, update it and repack it. Can anybody please help me in this regard?
In java, for jar file we can use winrar utlity for this kind. Please suggest how can we do for air.Is there any utility for adobe air.
I tried with winzip/winrar. I changed its extension to .zip file and opened it in winzip and winrar. When I tried to update it, it got corrupted.
-Abhishek
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AIR 文件本身只是 zip 文件,因此理论上您可以将它们重命名为 *.zip 并在里面乱搞。但您无法更新其中的内容,然后将结果用作新的 AIR 文件,因为 AIR 文件已签名,并且签名过程的一部分包括获取应用程序内容的哈希值。当您尝试使用更改了内容的文件时,新文件将与签名不匹配。 (这是一项安全功能 - 您不希望有人拿走您的 AIR 应用程序、更改内部结构,然后将其作为更新版本分发。)
要生成新的 AIR 文件,您应该重新发布(并因此重新签名)来自您的原始来源。
AIR files themselves are simply zip files, so in theory you can rename them to *.zip and muck around inside. But you can't update the contents inside and then use the result as a new AIR file, because AIR files are signed, and part of the signing process includes taking a hash of the app contents. When you try to use the file you changed the contents of, the new files won't match the signature. (This is a security feature - you wouldn't want someone taking your AIR app, changing the insides, and then distributing it as an updated version.)
To produce a new AIR file you should re-publish (and therefore re-sign) from your original source.