I use a XojoScript to build two Windows versions of the one Desktop app with slightly changed Constants. My problem is that when the second one goes to Build, it deletes everything in the Build folder (ie the first built application)!
Is there any way to ask Xojo in XojoScript to leave existing folders alone, or change the destination Build folder on the fly to a different folder?
As I’m understanding David, the builds are slightly different based on the constants. I do the same for a client who prefers separate executables for their Pro and Standard versions of a program.
My build script equates to roughly
App.kPro = True
Build
Rename Pro build
App.kPro = False
Build
The end result is that both versions are there. David, you should try something like step 3 where you either rename or move the first build.
Here is my XojoScript where it runs two Builds for the one application by changing the App.WindowsAppName constant. It builds the BlackDogCRM exe in the Windows>BlackDogCRM folder, but when it runs again to build the BlackDogSRM exe, it removes the Windows>BlackDogCRM folder!
I am running on the latest macOS with the latest Xojo, but building for Windows. I tried previously to run a Shell command to move the first Build folder, but it returned with a permissions error. I haven’t tried an AppleScript.
How can I ‘rename or move the first build’ in XojoScript?