So now that script is unusable, because the IDE, before every build, delete all the build folder content… Until 2018R3 in my build folder (after the build process) I can see my 3 subfolders with my builds… Is there any explanation for this? Is there a workaround or a solution?
I’m still not sure what the problem is. You relied on an error. And you don’t need to do anything manually. Ditto is working fine for this type of stuff.
First make sure that the script executes fine in the Terminal.
Then copy them verbatim to the IDE script.
Then start replacing the paths with relative paths. Sprinkle with “print cmd” before running the IDE script and “print s” after the script.
And use ditto instead of mv to preserve everything.
The macOS mv and cp commands now preserve everything that’s needed for modern (10.6+) versions of macOS. Using ditto is no longer required. One of the few bug reports that I filed in RADAR back in the 10.4 days that finally got implemented.
Thanks for the help… print s and print cmd was a great debug mode… Now, my problem was that in my app name there was one space… So, the right script is the following (posted if anyone other needs this help). Note the “-f” parameter for the mv command.
[code]dim builtApp as String
dim cmd as string
dim s As String
Just updated to 2018r4 and now, because the IDE deletes all folders inside the build folder, my IDE scripts are useless. Also, it follows any alias’s in there and deletes them too, even if they’re outside the build folder! Thank f**k for time machine backups etc. Good grief. Why oh why did you do this. Hours of work ahead of me now, for nowt. Gah.
Sorry… if you read above there is an helpful solution for this “annoying” “new feature”. I find useful to have an external build folder… I use for all my projects.
Just so very frustrating that we get used to a certain way of working - them boom! All change - quite a major one. I have around 14 current projects that all have fairly complex IDE scripts - all of which will need modification to work. A nice simple checkbox in preferences ‘don’t empty build folder’ would have been nice.
And a major flaw (well possible that this leads to data loss…!)…
The Xojo IDE should never-ever delete files outside of the BuildFolder…!
Thanks for mentioning this - I’ve just reported this as <https://xojo.com/issue/54912>
[quote=424743:@Jürg Otter]And a major flaw (well possible that this leads to data loss…!)…
The Xojo IDE should never-ever delete files outside of the BuildFolder…!
Thanks for mentioning this - I’ve just reported this as <https://xojo.com/issue/54912>[/quote]
It DID lead to major data loss! I’m just thankful I’m a backup maniac.