chore: Run cargo fmt

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/8087792668

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
This commit is contained in:
FabianLars
2024-02-28 22:14:42 +00:00
committed by tauri-bot
parent 844f25f443
commit baadcffe97

View File

@@ -119,11 +119,12 @@ pub fn init<R: Runtime>(
// exe path to not break it.
let exe_path = current_exe.canonicalize()?.display().to_string();
let parts: Vec<&str> = exe_path.split(".app/").collect();
let app_path = if parts.len() == 2 && matches!(macos_launcher, MacosLauncher::AppleScript) {
format!("{}.app", parts.get(0).unwrap().to_string())
} else {
exe_path
};
let app_path =
if parts.len() == 2 && matches!(macos_launcher, MacosLauncher::AppleScript) {
format!("{}.app", parts.get(0).unwrap().to_string())
} else {
exe_path
};
info!("auto_start path {}", &app_path);
builder.set_app_path(&app_path);
}