This post is regarding how we can create executable from AIR file targeting a specific OS platform. Flex or Flash builder doesn’t give us the functionality to create executable, we have to use command line Air compiler to create executable. As of now we can create executable targeting 3 major platform i.e. Windows, MAC and Linux. Until now i.e. Before version 2 of AIR it wasn’t possible in AIR.
We simply create a single AIR output file and can install/deploy it on any platform using AIR framework. But then we couldn’t call up native processes in the host operative system in AIR and it turned out to be a very less effective desktop application. So because of huge demand from community Adobe has come out with AIR 2, which has class in AIR among few. But this additional feature has downside as well and that is we have to create separate executable for each 3 major supported OS i.e.
Windows, MAC and Linux. 2nd if it’s a executable we can’t update it directly from Server like we use to do for AIR apps. How can be create executable from AIR app: Goto command line Move to AIR SDK installed folderbin command to create executable is.
In this tutorial we’ll be using to create a standalone OSX application from a Python 2 or 3 source code with a simple user interface. 'py2app is a Python setuptools command which will allow you to make standalone application bundles and plugins from Python scripts. Py2app is similar in purpose and design to py2exe for Windows.'
Relevant links about py2app:. (last commit 2015-05-05)., This guide is loosely based on the. Based on a Python file called Sandwich.py, we’ll create an application called Sandwich.app. Prerequisites Create a custom directory and create a. $ rm -rf build dist $ python setup.py py2app This will assemble your application as dist/Sandwich.app.
Since this application is self-contained, you will have to run the py2app command again any time you change any source code, data files, options, etc. The original py2app has a bug which would display “ AttributeError: 'ModuleGraph' object has no attribute 'scancode'” or loadmodule. If you encounter this error, take a look at this or use my.
How To Open Exe Files Mac
The easiest way to wrap your application up for distribution at this point is simply to right-click the application from Finder and choose “Create Archive”. Adding an icon Simply add 'iconfile': 'youricon.icns' to the OPTIONS dict.