mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
temp replace \ with / in tauri-binary
This commit is contained in:
@@ -117,7 +117,13 @@ pub fn exec(
|
||||
build_args.push(target.command_name());
|
||||
build_args.push(target.ide_build_script_name());
|
||||
|
||||
map.insert("tauri-binary", binary.to_string_lossy());
|
||||
// TODO: temp `\ -> /` conversion for ohos
|
||||
map.insert(
|
||||
"tauri-binary",
|
||||
dunce::simplified(std::path::Path::new(&binary))
|
||||
.to_string_lossy()
|
||||
.replace('\\', "/"),
|
||||
);
|
||||
map.insert("tauri-binary-args", &build_args);
|
||||
map.insert("tauri-binary-args-str", build_args.join(" "));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user