dunbarx wrote: ↑Tue Dec 07, 2021 3:16 am
The "working" stacks HAVE to be stacks living in SEPARATE stack files
Late in the discussion and tbh TL;DR
so apologies if i'm just re-iterating what's been said before...
@samuele:
As the /Applications folder is often a
non-writeable location, you keep your immutable stack (the splash stack which will then become the standalone app) there, and it then calls the mutable working stack which is stored in a writeable location (eg app support folder, documents etc).
So the stacks have to be different files because they have to reside in different directories/folders.
Your immutable splash stack manages launching the main working stack as a normal stack, not as stand alone (obviously on desktop you should cater for the possibility this may not exist so you should have a copy within the your standalone app directory to copy to the desired location etc - less of an issue for mobile...).
To avoid problems originating from preOpen/Open scripts (for example the splash stack calling the mainstack) i found i have to close all stacks, suspend messages (Development menu -> suspend messages), open the splash stack, build my app, then allow messages again. I prefer this to filling my stack with code just to build the app and it works very well for me.