Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Aug 31, 2023
1 parent ab2fb0a commit d5a2882
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .changes/tauri-utils-current-exe.md

This file was deleted.

4 changes: 1 addition & 3 deletions core/tauri-utils/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ mod starting_binary;
/// [Hard Link]: https://en.wikipedia.org/wiki/Hard_link
/// [See the patch that enabled this]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=800179c9b8a1e796e441674776d11cd4c05d61d7
pub fn current_exe() -> std::io::Result<PathBuf> {
self::starting_binary::STARTING_BINARY
.cloned()
.map(|p| dunce::simplified(&p).to_path_buf())
self::starting_binary::STARTING_BINARY.cloned()
}

/// Try to determine the current target triple.
Expand Down
1 change: 1 addition & 0 deletions core/tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ cocoa = "0.24"
objc = "0.2"

[target."cfg(windows)".dependencies]
dunce = "1"
webview2-com = "0.19.1"
win7-notifications = { version = "0.4", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion core/tauri/src/updater/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ fn copy_files_and_run<R: Read + Seek>(
// we need to wrap the current exe path in quotes for Start-Process
let mut current_executable = std::ffi::OsString::new();
current_executable.push("\"");
current_executable.push(current_exe()?);
current_executable.push(dunce::simplified(&current_exe()?));
current_executable.push("\"");

let mut mis_path = std::ffi::OsString::new();
Expand Down

0 comments on commit d5a2882

Please sign in to comment.