便携式 AIR 应用程序。这可能吗?
是否可以构建一个air应用程序的便携式版本?这样就可以将其放在闪存上并在任何 PC 上启动。
先感谢您!
is it possible to build a portable version of an air app? So that it's possible to put it on flash, and launch on any PC.
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 AIR 3 中,您可以将应用程序打包为强制运行时包。这是独立的,无需特殊安装即可运行。 (一些需要在 Windows 上进行注册表设置的功能将无法使用,例如注册以处理文件类型。)
In AIR 3, you can package the app as a captive runtime bundle. This is self contained and can be run without a special install. (A few features that require registry settings on windows won't work, like registering to handle file types.)
这是很有可能的。开发人员唯一需要记住的是不要在应用程序的 app-storage:// 中存储任何内容。他们应该在存储用户的任何数据之前询问用户。同样,在引用文件时,开发人员应尝试将其放入 app:/ 文件夹中。最后,不应使用加密的本地存储。
如果遵循这些准则,AIR 应用程序也应该可以轻松地通过闪存驱动器运行。
It is quite possible. The only thing the developer(s) need to keep in mind is not to store anything in app-storage:// of the application. They should ask the user before storing any data from the user. Similarly, when referencing files the developers should try and put the same in the app:/ folder. Lastly, encrypted local storage should not be used.
If these guidelines are followed, an AIR application should easily work from a flash drive as well.
我怀疑不是。 Adobe AIR 广泛使用登录用户配置文件中的目录来进行本地存储等操作。我相信这也是它设置代码签名证书验证的地方。因此,您可能无法从闪存驱动器便携式地运行 AIR 应用程序。
我猜你已经尝试过了。如果没有,那就尝试一下。使用一台计算机安装应用程序,并在提示输入安装位置时将其发送到闪存驱动器。然后将该闪存驱动器带到另一台安装了 AIR 的计算机上并尝试从那里运行它。看看会发生什么,看看你会得到什么样的错误。就像我说的,我怀疑它不会起作用。
I suspect not. Adobe AIR makes extensive use of directories in the logged-in user's profile for things like local storage. I believe that that is also where it sets up the verification for the code-signing certificate. So it would likely not be possible for you to run an AIR application portably from a flash drive.
I am going to guess you have tried it. If not, then give it a try. Install the Application using one machine, and when prompted for the install location, sent it to a Flash drive. Then take that Flash drive to another machine that has AIR installed and try running it from there. See what happens, and see what kind of error you get. Like I said, I suspect it will not work.