Prev | Current Page 63 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


If you like, you can run all of your Neko applications in this way, though this method does provide a few
drawbacks. For example, in order to run the application, you will need the aid of an open command
window or batch file to handle the neko command execution. Also, calling the neko command requires
that an environment variable is set to provide the operating system with a way of finding the Neko
executable. This will certainly not be a good idea if you plan to distribute your application.
Luckily, Neko comes with a utility toolkit that can convert your Neko application to an executable file, so
your users will be able to execute your application by double - clicking its icon or by entering the
executables filename into the command line.
To do this, you need to enter the following at the command line:
> nekotools boot helloworld.n
If successful, you should now have a file called helloworld.exe , or simply helloworld on Mac OSX
and Linux, in your application directory.
Running as a Web Application
Running a Neko application on the desktop is one way to execute your code, however, the primary
purpose of the haXe and Neko partnership is to provide a toolkit for web developers.


Pages:
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75