Page 1 of 1

Save source code in same folder as Standalone

Posted: Fri Sep 06, 2013 4:02 pm
by AndyP
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?

Re: Save source code in same folder as Standalone

Posted: Fri Sep 06, 2013 4:43 pm
by FourthWorld
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.

Re: Save source code in same folder as Standalone

Posted: Fri Sep 06, 2013 4:50 pm
by AndyP
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.

Re: Save source code in same folder as Standalone

Posted: Tue Sep 10, 2013 4:50 pm
by AndyP
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?