bash 如何仅从命令行(无 gui)在 Linux (ec2/ubuntu) 上运行/执行 adobe AIR 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19261098/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to run/execute an adobe AIR file on Linux (ec2/ubuntu) from command line only (no gui)
提问by timh
Im trying to execute a .AIR file on a linux box (ubuntu) from the command line, and disregard the GUI.
我试图从命令行在 linux 机器 (ubuntu) 上执行 .AIR 文件,而忽略 GUI。
Here's the thing. About 6mo I was able to do this, but I forgot how I did it, and I'm left to figure out how it was done by looking at clues on the server.
这是事情。大约 6mo 我能够做到这一点,但我忘记了我是如何做到的,我只能通过查看服务器上的线索来弄清楚它是如何做到的。
- I see the MainSimple.air file that I had originally used.
- I see that I somehow installed it into /opt/MainSimple/bin/MainSimple (which is now a binary file, not an air)
- I see my script file to run that file, and it successfully executes.
- 我看到了我最初使用的 MainSimple.air 文件。
- 我看到我以某种方式将它安装到 /opt/MainSimple/bin/MainSimple (现在是一个二进制文件,而不是一个空气)
- 我看到我的脚本文件运行该文件,并且它成功执行。
--- runAir.sh ---
--- runAir.sh ---
#!/bin/sh
export DISPLAY=:2
/opt/MainSimple/bin/MainSimple &
So my question is, now that I have a new/different air file... how do I get it to "install" or change/compile into a binary file like I did before?
所以我的问题是,现在我有了一个新的/不同的空气文件......我如何让它像以前一样“安装”或更改/编译成二进制文件?
I know an .air file is just a zip file.. I unzipped it, and theirs no /bin directory in it.
我知道 .air 文件只是一个 zip 文件。我解压了它,里面没有 /bin 目录。
回答by wens
To install an air application from command-line, you can try this:
要从命令行安装 air 应用程序,您可以尝试以下操作:
ln -s "/opt/Adobe AIR/Versions/1.0/Adobe AIR Application Installer" /usr/sbin/airinstall
The above command will create a symbolic link for Air Application Installer. Then, to install an air app:
上述命令将为 Air Application Installer 创建一个符号链接。然后,安装一个空气应用程序:
airinstall app.air
To execute/run the air application, locate the binary file of your air application then run it on terminal:
要执行/运行 air 应用程序,请找到您的 air 应用程序的二进制文件,然后在终端上运行它:
/opt/MainSimple/bin/MainSimple &

