Standalone stack file name .livecode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Standalone stack file name .livecode
I notice that if I have windows app with say 2 top level stacks (not substacks design intention).
When I create a standalone build, the primary top level stack gets merged into the exe, but the remainder stacks are named individually as stackname .livecode is there anyway to change the default file extension .livecode. I have tried changing the name/filename of the stack before I build a standalone but it just appends .livecode to the end of the stack file name.
Thanks for any assistance.
When I create a standalone build, the primary top level stack gets merged into the exe, but the remainder stacks are named individually as stackname .livecode is there anyway to change the default file extension .livecode. I have tried changing the name/filename of the stack before I build a standalone but it just appends .livecode to the end of the stack file name.
Thanks for any assistance.
Last edited by Brudders on Thu Sep 08, 2022 11:40 am, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Standalone stack file name .livecode
I suspect your problem is that your other stacks are NOT substacks of your main stack.
https://livecode.fandom.com/wiki/Substacks
https://livecode.fandom.com/wiki/Substacks
Re: Standalone stack file name .livecode
Thanks for the response but 2 stacks that are not substacks that is not my problem but my design intention.
1st stack is launcher performs security/update tasks before launching 2nd stack main application.
1st stack is launcher performs security/update tasks before launching 2nd stack main application.
Re: Standalone stack file name .livecode
Hi Brudders,
welcome to the forum!
How do you open/reference the "second" stack from the first one?
Actaully Livecode files do not need any suffxix, as long it is a valid stack.
You could do this:
1. Remove the suffix from the second mainstack
2. Add this file (the stack from 1. now without the suffix) via the "Add files" tab in the "Standalone Application Settings".***
3. Open that second stack from the first stack:
***You will find everything added here in that specialfolderpath("resources") on ANY PLATFORM!
Best
Klaus
welcome to the forum!
How do you open/reference the "second" stack from the first one?
Actaully Livecode files do not need any suffxix, as long it is a valid stack.
You could do this:
1. Remove the suffix from the second mainstack
2. Add this file (the stack from 1. now without the suffix) via the "Add files" tab in the "Standalone Application Settings".***
3. Open that second stack from the first stack:
Code: Select all
...
put specialfolderpath("resources") & "/name_of_lc_stack_without_suffix" into tTargetStack
go stack tTargetStack
...
Best
Klaus
Resolved Re: Standalone stack file name .livecode
Thanks Klaus, I like it that will work.
Just guessing as the 2nd stack is added via the add files route which means it would not be encrypted, but possibly could use an already encrypted version, will have a play.
You have already helped my many times having read previous posts so thanks again.
Just guessing as the 2nd stack is added via the add files route which means it would not be encrypted, but possibly could use an already encrypted version, will have a play.
You have already helped my many times having read previous posts so thanks again.
Re: Resolved Re: Standalone stack file name .livecode
Hi Brudders,
Whatever you add, will be found later in the runtime in -> specialfolderpath("resources")
Best
Klaus
yes, just add an password protected stack!
Whatever you add, will be found later in the runtime in -> specialfolderpath("resources")
Best
Klaus
Re: Standalone stack file name .livecode
Perfect thank you, just one more related question if I may. When distributing your app does exposing the albeit encrypted and password protected stack cause any security concerns. Is there any gotchas I should be aware of or is this generally a safe/secure practice.
Re: Standalone stack file name .livecode
No!
No idea HOW safe this is in the end, but it prevents users of LC to look at your scripts!
And yes, this is common and safe practise for LC developers.
Re: Standalone stack file name .livecode
Your a star thank you Klaus.
Re: Standalone stack file name .livecode
Not really - i think most use this with no issues (just don't forget your password )
You may also find this blog post from Mark Waddingham interesting: https://livecode.com/best-practice-for- ... -security/