Merge pull request #351 from kinode-dao/hf/dont-kit-build-ds-store

dont `kit::build` `.DS_Store`
This commit is contained in:
nick.kino 2024-05-16 19:53:44 -07:00 committed by GitHub
commit 96f6277ba1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,13 +119,17 @@ fn main() -> anyhow::Result<()> {
let results: Vec<anyhow::Result<(String, String, Vec<u8>)>> = entries
.par_iter()
.map(|entry_path| {
.filter_map(|entry_path| {
let parent_pkg_path = entry_path.join("pkg");
build_and_zip_package(
if parent_pkg_path.exists() {
// don't run on, e.g., `.DS_Store`
return None;
}
Some(build_and_zip_package(
entry_path.clone(),
parent_pkg_path.to_str().unwrap(),
&features,
)
))
})
.collect();