Packs resources in to a datafile.