kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
408 stars 48 forks source link

Use a folder with subdirectories in assets #41

Closed jb-alvarado closed 2 years ago

jb-alvarado commented 2 years ago

Hello, is there a way to copy recursive a folder with subdirectories in the assets? The Readme says that glob is supported, but folder/* or folder/*.* copies only the files inside the folder, but not directories and folder/** did not work.

kornelski commented 2 years ago

Currently it’s not possible. I agree it would be useful. Can you try adding it? The crate already uses globs.

jb-alvarado commented 2 years ago

I have try to integrate this, but failed on data.rs -> archive_files(...), because here it wants files, not folders.

But I also figure out, that I used the wrong glob pattern. In my project I don't exactly need empty folders (which would be nice, but not necessary). So when I use folder/**/* I get all files in any subdirectory.