How do I use password protection for my application stacks?
Commercial versions of LiveCode allow you to set the password property of a stack in order to encrypt the scripts. While this is a useful feature it can be troublesome to password protect your stacks during development. Levure allows you to develop your application using unencrypted stacks and gives you the option of encrypting some or all of your stacks when you build a distribution with the packager.
To encrypt stacks in your distribution builds, do the following:
encrypt stacksentry to
uuid()to generate a password each time you package your application.
encrypt stacks: random
If you set
passwordthen create an
.envfile alongside the app.yml file with
If you are using Git, don't commit the
.envfile to your version control repository.
If you want to leave some stacks unencrypted in your builds, you can override the
encrypt stackssetting for specific stacks. Here is an example in
libraries: - filename: my_unencrypted_library.livecodescript encrypt: false - folder: my_folder_of_unencrypted_libraries encrypt: false