Tutorials & ManualsSQL YogaSQL Yoga General ConceptsBuilding a Standalone Application With SQL Yoga

Building a Standalone Application With SQL Yoga

This lesson will show you how to build a standalone using a single stack, the SQL Yoga library and the LiveCode database libraries.

Configure Standalone Application Settings

Configure Standalone Application Settings

Focus on the stack you want to build a standalone with.

Select File > Standalone Application Settings...

Configure General Properties

Configure General Properties

1) From the General pane, specify that you want to select inclusions. You need to manually select inclusions because your application calls SQL Yoga handlers, not RevDB handlers and the Standalone Builder won't be able to detect that you need the database library.

2) Select Database Support and select the database driver you need.

Stacks

Stacks

When building the standalone you will need to copy the SQL Yoga stack file into the application.

Click on Add Stack File... to select the stack file to copy into the standalone.

Select sql_yoga.rev

Select sql_yoga.rev

The sql_yoga.rev file will be added to the list.

Copy Files

Copy Files

If you are using a SQLite database then you may need to add the SQLite database file to the Copy Files list.

Click on Add File... to select the database file.

Select Database File

Select Database File

In this example I need to copy the france.sqlite file.

The france.sqlite database file will be added to the list of files that will be copied into the folder with the standalone application.

Save as Standalone Application

Save as Standalone Application

You can now close the settings window and build the standalone application.

Select File > Save as Standalone Application... and select the folder to build the standalone in using the folder selection dialog that appears.

The Result

The Result

Here is the result of building the standalone application.

On Windows the files were placed alongside the application itself (1).

On OS X the sql_yoga.rev stack file and the france.sqlite database file were copied into the application bundle (2).

The Application

The Application

Here is the finished application running on OS X.

0 Comments

Add your comment

E-Mail me when someone replies to this comment