I put a file called ".test" in /data/bitrock/demo/lib directory, then use the following rule to pack the file, but the file is not packed. Seeing this on Linux using InstallBuild for Qt v8.5.

                    <distributionDirectory  allowWildcards="1">
                        <origin>/data/bitrock/demo/lib/*</origin>
        <includeFiles>
            */*
        </includeFiles>
                    </distributionDirectory>

asked 31 Aug '12, 19:21

gt8967884's gravatar image

gt8967884
116747678
accept rate: 12%


Could you try using the below?:

  <distributionDirectory  allowWildcards="1">
     <origin>/data/bitrock/demo/lib/{*,.*}</origin>
     <includeFiles>*/*</includeFiles>
  </distributionDirectory>
link

answered 01 Sep '12, 07:33

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

It worked in a small test case. But with my real installer which is about 1.9GB it didn't work. InstallBuilder must've included files multiple times or have an infinite loop because I saw the temp installer was about 5.8GB in size (should be 1.9GB), then crashed.

(08 Sep '12, 03:41) gt8967884

could you write us to support@bitrock.com and send us your XML project?

(13 Sep '12, 11:32) juanjo ♦♦

I tried this on a distribution file list as below:

<folder>
    <description>Development Sources</description>
    <destination>${installdir}/Sources</destination>
    <name>sources</name>
    <platforms>all</platforms>
    <distributionFileList>
        <distributionFile>
            <allowWildcards>1</allowWildcards>
            <origin>${build_project_directory}/../../source/{*,.*}</origin>
        </distributionFile>
</folder>

This resulted in installBuilder packing files which were in siblings of the /source/ directory, which was not intended. Finally, I tried this, which seemed to work as intended:

<origin>{${build_project_directory}/../../source/*,.*}</origin>

Is this the correct method?

It seems crazy that there is no obvious or at least documented way to include dot or hidden files in a folder or matched file filter, given that many times hidden files are used for configuration data, which must be installed by an installer.

link

answered 05 Jun '15, 09:00

the7trumpets's gravatar image

the7trumpets
1
accept rate: 0%

Nevermind, this didn't work. I guess I'll start adding each hidden file individually. Yuck.

(05 Jun '15, 09:09) the7trumpets
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:

×1
×1

Asked: 31 Aug '12, 19:21

Seen: 804 times

Last updated: 05 Jun '15, 09:09

Related questions