Skip to content

Commit

Permalink
fix(app): error of path not found in copy_dir (#53)
Browse files Browse the repository at this point in the history
* fix: path not found error in copy_dir

* chore: add changelog
  • Loading branch information
jason-crabnebula authored Oct 19, 2023
1 parent 87a8c00 commit 8cc5b05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-path-not-exist-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cargo-packager": patch
---

Fixed an error message that the source path does not exist when packaging .app
2 changes: 1 addition & 1 deletion crates/packager/src/package/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ fn create_info_plist(
#[tracing::instrument(level = "trace")]
fn copy_dir(from: &Path, to: &Path) -> crate::Result<()> {
if !from.exists() {
return Err(crate::Error::AlreadyExists(from.to_path_buf()));
return Err(crate::Error::DoesNotExist(from.to_path_buf()));
}
if !from.is_dir() {
return Err(crate::Error::IsNotDirectory(from.to_path_buf()));
Expand Down

0 comments on commit 8cc5b05

Please sign in to comment.