Skip to content
Brian Spencer edited this page Mar 14, 2017 · 10 revisions

The libraries folder sits alongside the app.yml file in your app folder. It holds script-only stack files that will be opened on application startup and placed into the message path with start using.

Libraries can be loaded individually or in bulk. You specify which libraries to load in app.yml. If you specify a folder then every file in that folder and any subfolders should be a script-only LiveCode stack. The folder will load recursively so any subfolders will be loaded as well.

Update libraries section in app.yml

Whenever you add or remove library stacks be sure to update the libraries section of app.yml. This enables the framework to properly load your library stacks at startup.

# app.yml
...
libraries:
  1:
    filename: [relative path to stack file within libraries folder]
    encrypt: Optional parameter that can override the `encrypt stacks` setting for this stack.
  2:
    folder: [relative path a folder with library stack files]
    encrypt: Optional parameter that can override the `encrypt stacks` setting for all stacks in the folder.
    ...
...

Examples

libraries:
  1:
    filename: ../../shared/mylibrary.livecodescript
  2:
    folder: ./libraries
Clone this wiki locally