Fix build on Linux and macOS

This commit is contained in:
liushuyu 2019-12-07 16:55:56 -07:00 committed by James
parent b9e825faa5
commit d2399d97e4
2 changed files with 203 additions and 181 deletions

382
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -274,6 +274,7 @@ mod natives {
target: &str,
args: &str,
working_dir: &str,
_exe_path: &str,
) -> Result<String, String> {
// FIXME: no icon will be shown since no icon is provided
let data_local_dir = dirs::data_local_dir();
@ -318,6 +319,7 @@ mod natives {
target: &str,
args: &str,
working_dir: &str,
_exe_path: &str,
) -> Result<String, String> {
warn!("STUB! Creating shortcut is not implemented on macOS");
Ok("".to_string())