服务器端 Adobe AIR 应用程序
这听起来可能是一个非常愚蠢的问题,但是有没有办法在非 UI 服务器(即 Linux)上以无头服务器端模式运行 Adobe AIR 应用程序?我正在尝试构建服务器端机器人来与 API (grapevinetalk.com) 交互,并且我想使用现有代码来执行此操作,而无需为新应用程序重新编写所有数据处理等。
我尝试移植的应用程序本质上是一个基于 jQuery 的 AIR 桌面应用程序,我希望将其重用于服务器端交互。我已经尝试使用 Rhino 和 envjs.com,但遇到了一些问题,所以正在寻找替代方案。
谢谢
罗比
This might sound like a really stupid question, but is there anyway to run an Adobe AIR application in a headless server side mode on a non-UI server (i.e. Linux)? I'm trying to build server side bots to interact with an API (grapevinetalk.com) and I want to use existing code to do that without having to re-write all the data munging etc for a new application.
The application I'm trying to port is essentially a jQuery based AIR desktop app that I want to reuse for server side interactions. I've tried Rhino with envjs.com, but am having some issues so am looking at alternatives.
Thanks
Robbie
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AIR 应用程序可以是无头的,因为它们可以在没有 UI 的情况下运行,并在启动时启动等等。虽然我不能 100% 确定它们可以在没有 UI 的情况下安装,但如果可以通过任何类型的远程桌面临时获得服务器 UI,这可能不是问题。
但您应该意识到,这并不是 AIR 目前真正支持的用例。我记得看到一个问题(无法再找到链接),有人编写了一个类似服务器的 AIR 应用程序,该应用程序运行良好一段时间,然后停止响应,当他们远程到服务器时,发现运行时已弹出打开一个更新对话框,它正在等待输入。我相信目前还没有办法避免这种事情。
AIR applications can be headless in the sense that they can run without UIs, and start on boot and so on. I'm not 100% sure that they can be installed without a UI though, though that may not be a problem if it's possible to temporarily get a server UI with a remote desktop of whatever variety.
But you should be aware that this isn't really a supported use case for AIR right now. I recall seeing an issue (can't find the link any more) where someone had written a server-like AIR app that worked fine for a while and then stopped responding, and when they remoted onto the server the found that the runtime had popped up an update dialog and it was waiting for input. I believe there's currently no way to avoid this kind of thing.