Best way to package data files for application

What is word on streets about using GResource vs. simply copying data files to share? I have been reading and both ways have some pros.

1 Like

GResource is definitely preferred to having multiple data files lying around; having a single file reduces the chance of an installation issue, and allows loading all necessary data with a single read operation.

2 Likes

Thanks. I was also wondering is there way to add whole directories, or all files should be separate entries :slight_smile:

No, you cannot add directories: you need to add each file independently to the resource manifest.

You can use your build system to generate the resource manifest from the contents of another file or from the contents of a directory.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.