Scripted (scheduled) target builds?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Zanderxo
Propeller Head
Posts: 32
Joined: Mon Mar 09, 2015 5:28 pm

Scripted (scheduled) target builds?

Post by Zanderxo »

Is there any way to automate the build of a Flare target?

Ideally, I would write a Windows batch file and have it run on a schedule.
When the .bat executes, Flare would build a specified target and put the output in a certain location.

For example:
flare.exe --build C:\MyProject\Targets\mytarget.fltar --output C:\MyProject\BuildOutupts

Yes? No?
When? Or never?

Thanks!
Daniel Ferguson
Propeller Head
Posts: 77
Joined: Wed Jul 10, 2013 12:34 pm
Location: Salt Lake City
Contact:

Re: Scripted (scheduled) target builds?

Post by Daniel Ferguson »

Check out madbuild.exe. Mine is in c:\Program Files\MadCap Software\MadCap Flare 12\Flare.app.

Code: Select all

C:\Program Files\MadCap Software\MadCap Flare 12\Flare.app>madbuild
Usage: madbuild -project <project file> [ -target <target name> ]
        madbuild -export <project file> -settings <export project file name>

Options:
          -project      Compile all or a single target in the specified project.
           -target      Name of the target to compile. If not specified, compiles all targets.
           -export      Exports the project using the settings in the specified file.
         -settings      Name of the export project file to use when exporting the project.
http://help.madcapsoftware.com/flare12/ ... d_Line.htm

Another option might be to use a batch target.
http://help.madcapsoftware.com/flare12/ ... Target.htm
Daniel Ferguson
Certified Flare Trainer & Consultant
smartoutput.com
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Scripted (scheduled) target builds?

Post by SteveS »

This thread is an oldie, but discusses madbuild and batch files in some detail

viewtopic.php?f=12&t=1599
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Zanderxo
Propeller Head
Posts: 32
Joined: Mon Mar 09, 2015 5:28 pm

Re: Scripted (scheduled) target builds?

Post by Zanderxo »

Cool, thanks! Here's a dumb question:
Can madbuild.exe be copied to a machine that does not have Flare installed, and run by providing credentials of some kind on that box?
Or would I need to have a whole, licensed Flare install on that machine?
Paulie
Sr. Propeller Head
Posts: 140
Joined: Sun Mar 01, 2015 3:01 pm

Re: Scripted (scheduled) target builds?

Post by Paulie »

When I looked into this a four years ago, I was told by MadCap that a full installation of Flare was required on the build server. However, MadCap did allow for a special build-only license to be purchased which was significantly cheaper than than a user license.

As mentioned, my correspondence with MadCap was four years ago, so this information could be out of date.
"In an ideal world, software should be simple, well designed, and completely intuitive to end users. In the real world, good documentation is king."
Zanderxo
Propeller Head
Posts: 32
Joined: Mon Mar 09, 2015 5:28 pm

Re: Scripted (scheduled) target builds?

Post by Zanderxo »

Thanks, all. Love the forum! :P
Post Reply