Skip to content

Commit 0c55233

Browse files
authored
fix: macos use case errors and ci errors (#26)
1 parent 7466e15 commit 0c55233

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
//! let app_name = "the-app";
4848
//! let app_path = "/path/to/the-app.app";
4949
//! let args = &["--minimized"];
50-
//! let auto = AutoLaunch::new(app_name, app_path, false, args);
50+
//! let bundle_identifiers = &["com.github.auto-launch-test"];
51+
//! let auto = AutoLaunch::new(app_name, app_path, false, args, bundle_identifiers, "");
5152
//!
5253
//! // enable the auto launch
5354
//! auto.enable().is_ok();
@@ -170,7 +171,8 @@ mod windows;
170171
/// # let app_path = "/path/to/the-app";
171172
/// # let use_launch_agent = false;
172173
/// # let args = &["--minimized"];
173-
/// AutoLaunch::new(app_name, app_path, use_launch_agent, args);
174+
/// # let bundle_identifiers = &["com.github.auto-launch-test"];
175+
/// AutoLaunch::new(app_name, app_path, use_launch_agent, args, bundle_identifiers, "");
174176
/// # }
175177
/// ```
176178
///

tests/test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#[cfg(test)]
22
mod unit_test {
3+
#[cfg(not(target_os = "macos"))]
34
use auto_launch::{AutoLaunch, AutoLaunchBuilder};
5+
#[cfg(target_os = "macos")]
6+
use auto_launch::AutoLaunch;
47
use std::env::current_dir;
58

69
pub fn get_test_bin(name: &str) -> String {

0 commit comments

Comments
 (0)