Skip to content

Commit

Permalink
more loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Sep 21, 2023
1 parent 98fb275 commit 52cdf81
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
8 changes: 0 additions & 8 deletions crates/packager/src/package/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,8 @@ pub(crate) fn package(ctx: &Context) -> crate::Result<Vec<PathBuf>> {
log::debug!("copying binaries");
let bin_dir = contents_directory.join("MacOS");
std::fs::create_dir_all(&bin_dir)?;
dbg!(&bin_dir);
dbg!(&std::fs::read_dir(config.out_dir())?
.map(|res| res.map(|e| e.path()))
.collect::<Result<Vec<_>, std::io::Error>>()?);
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>>()?);
std::fs::copy(&bin_path, bin_dir.join(&bin.filename))?;
}

Expand Down
8 changes: 0 additions & 8 deletions crates/packager/src/package/deb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,8 @@ pub fn generate_data(config: &Config, data_dir: &Path) -> crate::Result<BTreeSet

log::debug!("copying binaries");
std::fs::create_dir_all(&bin_dir)?;
dbg!(&bin_dir);
dbg!(&std::fs::read_dir(config.out_dir())?
.map(|res| res.map(|e| e.path()))
.collect::<Result<Vec<_>, std::io::Error>>()?);
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>>()?);
std::fs::copy(&bin_path, bin_dir.join(&bin.filename))?;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/deno/packager.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../crates/config/schema.json",
"outDir": "./dist",
"beforePackagingCommand": "deno compile deno-example.js --output dist/deno-example",
"beforePackagingCommand": "deno compile deno-example.js --output dist/deno-example && echo $PWD && ls -lah && ls -lah dist",
"productName": "Deno example",
"version": "0.0.0",
"identifier": "com.deno.example",
Expand Down

0 comments on commit 52cdf81

Please sign in to comment.