fix linux builds

This commit is contained in:
kaj
2023-07-23 13:35:37 -08:00
parent 0065f05d3b
commit 3317206d3e
3 changed files with 12 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ checksum = "3b13c32d80ecc7ab747b80c3784bce54ee8a7a0cc4fbda9bf4cda2cf6fe90854"
name = "app"
version = "0.1.0"
dependencies = [
"fork",
"http",
"once_cell",
"portpicker",
@@ -787,6 +788,15 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
[[package]]
name = "fork"
version = "0.1.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf2ca97a59201425e7ee4d197c9c4fea282fe87a97d666a580bda889b95b8e88"
dependencies = [
"libc",
]
[[package]]
name = "form_urlencoded"
version = "1.2.0"

View File

@@ -26,6 +26,7 @@ tiny_http = "0.12.0"
portpicker = "0.1.1"
http = "0.2.9"
once_cell = "1.18.0"
fork = "0.1.22"
[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.

View File

@@ -2,7 +2,7 @@
use fork::{daemon, Fork};
use std::process::Command;
#[cfg(target_os = "linux")]
use std::{fs::metadata, path::PathBuf}; // dep: fork = "0.1"
use std::{fs::metadata, path::PathBuf};
#[tauri::command]
pub fn show_in_folder(path: String) {