Building Standalone Applications
This tutorial guides you through the steps of creating an executable application that can be deployed to a Windows based operating system.
Using the LiveCode Integrated Development Environment (IDE) to develop and test your applications is a great way to work, but not everyone has LiveCode installed or uses the same platform as you do. You may also want to distribute your work in such a way that other people do not see how you have implemented the functionality. LiveCode allows you to save your application in formats that can be deployed to a range of platforms. This tutorial guides you through the fundamental steps of saving your LiveCode application for deployment to a Windows based operating system.
Application in the IDE
Standalone Application Settings
Once you have an application you would like to create as a standalone, save its stack but do not close it in the IDE. The application must remain active in LiveCode. Then open the Standalone Application Settings dialog box. You open this by selecting Standalone Application Settings... from the File Menu. This dialog box provides an overview over the standalone platforms that are supported and other features you can add and configure for standalone applications.
Select the image of the platform you would like to deploy to. In this case select the Windows icon. This opens the Standalone Application Settings for Windows deployment. Make sure that the Build for: Windows box has been selected. This also adds a small green tick mark next to the Windows icon. The other Standalone Application Settings can be configured with your preferences that are specific to the application. Here we have added the word "Game" to the Product Name field and added the word "Game" to the beginning of the File Description field. Next, dismiss the dialog box. This completes the required configuration for a basic standalone build.
Saving as a Standalone
You build the standalone with the configuration you set up by selecting Save as Standalone Application... from the File Menu. This initiates a sequence of events that are accompanied by dialog boxes. If you are application has been modified and the most recent changes are not stored on your hard drive, you are prompted to save the active stack. You are then prompted with a dialog that allows you to select a location into which you can save your standalone application. Once you have accepted this dialog and your standalone has been saved, you should see the message that is displayed on the screen of this step.
You can access the standalone by following the path to the standalone application area you selected as part of building the standalone application. Look for the file with the .exe extension and try to execute it by double clicking on it. This should open and display the application in a way similar to that shown in the image of this step.
This tutorial presents the fundamental steps for creating a standalone application in LiveCode that runs on Windows, but LiveCode supports more platforms, including Linux, Max, iOS and Android. For information on deploying to iOS, have a look at the following lessons: How do I Build an iPhone Application for iOS?.