emscripten-core/emscripten

file_packager: Add suport for glob or loading file list from file

Open

#18.366 aperta il 13 dic 2022

Vedi su GitHub
 (16 commenti) (1 reazione) (0 assegnatari)C++ (3519 fork)batch import
good first bughelp wanted

Metriche repository

Star
 (27.361 star)
Metriche merge PR
 (Merge medio 19g 10h) (147 PR mergiate in 30 g)

Descrizione

Sometimes you might not want to pack all files from a specific folder, but only some. In this case glob pattern (there is a function in the Python standard library for doing this) would be useful like assets/**/*.png, but it is not supported by file_packager. There is a workaround - you can specify all files explicitly by hand or generate a command line using another script. But in this case you may hit command line length limit on Windows if you have too many files. In such case it would be useful to be able to read file list from text file (e.g. compilers allow you to pass options using text files). But such feature is also missing from file_packager.

Guida contributor