I have two builds defined in my project for Linux and for Windows. I would like some pre-build operations to be executed when I build Linux and some of the when I build Windows. In both cases, I run the build on Linux host. I used a rule "'${platform_name}' equals 'linux'" but it doesn't seem to be working. Also, is there a log file for build where I can see the output of what exactly is executed during the build?

asked 16 Apr '12, 01:35

NicoleH's gravatar image

NicoleH
66202023
accept rate: 50%


The ${platform_name} variable specifies build platform at build time, so perhaps it is a different issue.

Can you check if simply doing the following shows correct platform name:

<preBuildActionList>
    <showInfo text="${platform_name}" />
</preBuildActionList>

Also, when building from GUI, the log is always shown. When building from CLI, you can add --verbose option - for example:

$ /opt/installbuilder-8.1.0/bin/builder build path/to/project.xml linux --verbose
link

answered 16 Apr '12, 03:11

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

The showInfo idea in preBuild is nice to get more information, especially with platform_name. Is there a non-interactive way to output this in the console (i.e. a non-gui build)?

(11 May '12, 02:29) DevHopeful_2012

You can use --setvars to specify a variable name. This is documented in more details here:

http://installbuilder.bitrock.com/docs/installbuilder-userguide/ar01s24.html#custom_build_targets

(11 May '12, 05:11) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×27

Asked: 16 Apr '12, 01:35

Seen: 2,054 times

Last updated: 11 May '12, 05:11