I’d love to create a quite extensive build automation script, but unfortunately the documentation lacks a lot info about it. It says I could just record the steps that I would like to do, but unfortunately I can find that feature no where.
I am building a webApp, and would love to automatically build it as standalone and CGI everytime I hit the build button.
Here is what I would like to do:
Change the Build folder to “/bla/builds/buildNumber/StandAlone”
Build it as Standalone with Port 8080 (Also, is there an option to change the port number while the app is running?)
Change the Build folder to “/bla/builds/buildNumber/CGI”
Then build it as CGI for all targets using the “Auto Select Port” setting.
thanks. Would be great if you update the Docs accordingly, since when you add a script via Insert -> Build Step -> Script the editor doesnt show up.
But nonetheless, the XojoScript Editor doesnt record anything I’m doing in my xojo window; however it does record when I am selecting the script editor window.
Also, can you confirm the copy files step in the build automation works in xojo 2013r3.1 ? It doesnt over here.
But is there a way to set the build Location? The docs dont say if the build path is a readOnly variable, also it seems to be generated during runtime as it doesnt show up as possible option in the script editor.
// Overwrite old Project
DoCommand “SaveFileAs”
[/code]
But - Is there a way to define where save as should save the project to? Otherwise I’ll probably just copy the project using shell scripts.
Also, it seems the only way to run this at the moment is to copy it into the IDE Script editor and press run. Is this correct?
Can you confirm that BuildStepCopyFiles works?
So far it almost works to my satisfaction, except that this build script (which is placed after the build itself) doesnt work because it can not build the app because it is run while the compiler is still busy with linking. Any Ideas to make that work?
[/quit]
Remove the BuildApp and put it BEFORE the build
Each entry in the targets is ONE complete build and the compiler is BUSY for the whole duration
You can’t make it build a second time using build automation
You can add many steps to any build - but that builds ONE executable.
What you can’t do is add another target, say a second Linux, OS X or Windows target, with a different set of steps so you could select both and have it build two different Linux, OS X or Windows executable.
Denis, I think it deserves to create a Feedback. I will vote for it.
Indeed, it would be convenient to quickly and easily generate several executables.
For example:
I have a webServer with 20 instances of a web app, each with a different port.
If Xojo could spawn 20 instances (each with its port) in one step, it would be practical. There would just send them to the server.
you can change the port when you launch the standalone web app, but it is much less convenient. With each update, it will restart each instance by manually specifying the port.
Actually, there is a feedback case for multiple targets already; #17907 - I just saw it now. For some reason I didnt get any notifications that there have been additional replies in here…