Skip to content

Commit 45a0a16

Browse files
committed
fix: update executable path for windows and linux
1 parent 1523f4e commit 45a0a16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-tauri/src/commands/pull_up.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn candidate_paths(is_dev: bool) -> Vec<PathBuf> {
6161
} else {
6262
if let Ok(current_exe) = env::current_exe() {
6363
if let Some(base) = current_exe.parent() {
64-
candidates.push(base.join(subdir).join(exe_name));
64+
candidates.push(base.join("resources").join("bin").join(subdir).join(exe_name));
6565
// macOS 打包:App.app/Contents/MacOS/ 下为运行目录
6666
// 资源常在 App.app/Contents/Resources/
6767
if cfg!(target_os = "macos") {

0 commit comments

Comments
 (0)