Skip to content

Commit

Permalink
comon
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Sep 21, 2023
1 parent 9a5b07f commit 0fd7b0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/packager/src/package/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ pub(crate) fn package(ctx: &Context) -> crate::Result<Vec<PathBuf>> {
dbg!(&std::fs::read_dir(config.out_dir())?
.map(|res| res.map(|e| e.path()))
.collect::<Result<Vec<_>, std::io::Error>>()?
.into_iter()
.flatten());
for bin in &config.binaries {
let bin_path = config.binary_path(bin);
dbg!(&bin_path);
dbg!(&std::fs::read_dir(bin_path.parent().unwrap())?
.map(|res| res.map(|e| e.path()))
.collect::<Result<Vec<_>, std::io::Error>>()?
.into_iter()
.flatten());
std::fs::copy(&bin_path, bin_dir.join(&bin.filename))?;
}
Expand Down
2 changes: 2 additions & 0 deletions crates/packager/src/package/deb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,15 @@ pub fn generate_data(config: &Config, data_dir: &Path) -> crate::Result<BTreeSet
dbg!(&std::fs::read_dir(config.out_dir())?
.map(|res| res.map(|e| e.path()))
.collect::<Result<Vec<_>, std::io::Error>>()?
.into_iter()
.flatten());
for bin in config.binaries.iter() {
let bin_path = config.binary_path(bin);
dbg!(&bin_path);
dbg!(&std::fs::read_dir(bin_path.parent().unwrap())?
.map(|res| res.map(|e| e.path()))
.collect::<Result<Vec<_>, std::io::Error>>()?
.into_iter()
.flatten());
std::fs::copy(&bin_path, bin_dir.join(&bin.filename))?;
}
Expand Down

0 comments on commit 0fd7b0e

Please sign in to comment.