command line not working as expected

Answered

Comments

2 comments

  • Avatar
    juanjo

    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?

  • Avatar
    wojciechka

    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>

Please sign in to leave a comment.