Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
VirtualHotBar committed Apr 19, 2024
1 parent 376e84c commit af85c78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.6.1", features = [ "shell-open", "fs-all", "os-all", "shell-execute", "process-all", "system-tray", "window-all"] }
window-shadows = "0.2.2"
winreg = "0.10"

reqwest = { version = "0.11", features = ["json", "stream"] }
tokio = { version = "1", features = ["full"] }
Expand All @@ -34,6 +33,10 @@ sysinfo = "0.30.10"
once_cell = "1.19.0"

lazy_static = "1.4.0"

[target.'cfg(windows)'.dependencies]
winreg = "0.10.1"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/autostart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub fn is_autostart() -> io::Result<bool> {
}

use std::process::Command;
#[cfg(target_os = "windows")]
fn set_autostart_windows(enabled: bool) -> io::Result<()> {
let exe_path = env::current_exe()?;
let exe_path_str = exe_path.to_string_lossy().into_owned();
Expand Down Expand Up @@ -116,6 +117,7 @@ WantedBy=multi-user.target
}
}

#[cfg(target_os = "windows")]
fn is_startup_key_set(app_name: &str) -> io::Result<bool> {
let exe_path = env::current_exe()?;
let exe_path_str = exe_path.to_string_lossy().into_owned();
Expand Down

0 comments on commit af85c78

Please sign in to comment.