My build platform is Linux 64-bit. I have two command lines:

/home/user/installbuilder-8.5.1-professional/bin/builder build /home/user/share/installbuilder/projects/project-domt.xml linux-x64 --setvars build=2 is_lite=0 project.versionID=3

and

/home/user/installbuilder-8.5.1-professional/bin/builder build /home/user/share/installbuilder/projects/project-domt.xml windows --setvars build=2 is_lite=1 project.versionID=3

First problem: Both command lines build the binary for the linux-x64 target platform.

Building Do Machine Translation linux-x64
0% ______________ 50% ______________ 100%
#########################################

output filename: domt-desktop-1.0.3.2-linux-x64-installer.run

Second problem: The is_lite=1 parameter should change the output filename. It should be:

domt-lite-1.0.3.2-linux-x64-installer.run

but it does not change from above.

Is it my command line?

asked 18 Nov '12, 21:01

tahoar's gravatar image

tahoar
201313236
accept rate: 42%


In this particular case, the issue was that pre-build actions were setting build and is_lite variables to their defaults.

For this issue the solution is to add checks in <preBuildActionList>:

<preBuildActionList> <setInstallerVariable> <name>is_lite</name> <persist>1</persist> <value>0</value> <ruleList> <regExMatch> <logic>does_not_match</logic> <pattern>^[0-9]+$</pattern> <text>${is_lite}</text> </regExMatch> </ruleList> </setInstallerVariable> <setInstallerVariable> <name>build</name> <persist>1</persist> <value>0</value> <ruleList> <regExMatch> <logic>does_not_match</logic> <pattern>^[0-9]+$</pattern> <text>${build}</text> </regExMatch> </ruleList> </setInstallerVariable> </preBuildActionList>

link

answered 07 Jan '13, 11:12

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

That is really strange. Could you send us your XML project to support@bitrock.com? Could you also launch the builds as:

/home/user/installbuilder-8.5.1-professional/bin/builder build /home/user/share/installbuilder/projects/project-domt.xml windows --setvars build=2 is_lite=1 project.versionID=3 --debugtrace debug-windows.txt
/home/user/installbuilder-8.5.1-professional/bin/builder build /home/user/share/installbuilder/projects/project-domt.xml linux-x64 --setvars build=2 is_lite=0 project.versionID=3 --debugtrace debug-linux.txt

And send us the generated files?

link

answered 19 Nov '12, 03:25

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

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:

×23

Asked: 18 Nov '12, 21:01

Seen: 1,139 times

Last updated: 07 Jan '13, 11:12