When you choose to 'Save as standalone application' I would love to have the option of not only saving the source code back to where it was opened (as it is now) but also to have an additional copy saved alongside the compiled application file(s).
This I believe makes it easier to track back to a build if a problem occurs but also provides a psudo versioning method.
Any thoughts?
Save source code in same folder as Standalone
Moderator: Klaus
Save source code in same folder as Standalone
Andy .... LC CLASSIC ROCKS!
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Save source code in same folder as Standalone
The IDE sends two messages when building a standalone: SavingStandalone is sent just before the build, and StandaloneSaved is sent after the build. Using these messages will allow you script nearly any solution you'd like for versioning or backup.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Save source code in same folder as Standalone
Thank's Richard,
I learn something new each day.. I'll work on a plugin for this feature.
But it would still be nice to have this as a standard preferences option.
I learn something new each day.. I'll work on a plugin for this feature.
But it would still be nice to have this as a standard preferences option.
Andy .... LC CLASSIC ROCKS!
Re: Save source code in same folder as Standalone
Ok starting to paly with the standaloneSaved command
The dictionary has this:
Syntax:
standaloneSaved folderSavedIn
Parameters:
folderSavedIn is a string variable containing the folder that the standalone application was saved in.
Example app is named "CodeSave"
However if you saved the standalone in C:\MyApps\Test then folderSavedIn would report C:\MyApps\Test which is incorrect. It should be C:\MyApps\Test\CodeSave with subsequent stanalone saves should be C:\MyApps\Test\CodeSave1 , C:\MyApps\Test\CodeSave2 etc
Is this a bug or am I understanding this the wrong way?
The dictionary has this:
Syntax:
standaloneSaved folderSavedIn
Parameters:
folderSavedIn is a string variable containing the folder that the standalone application was saved in.
Example app is named "CodeSave"
However if you saved the standalone in C:\MyApps\Test then folderSavedIn would report C:\MyApps\Test which is incorrect. It should be C:\MyApps\Test\CodeSave with subsequent stanalone saves should be C:\MyApps\Test\CodeSave1 , C:\MyApps\Test\CodeSave2 etc
Is this a bug or am I understanding this the wrong way?
Andy .... LC CLASSIC ROCKS!