mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-11-13 23:36:47 +01:00
Update README.md
This commit is contained in:
1 parent
1546e4e0fb
commit
e95c10598c
1 file changed
+2
@@ -38,6 +38,8 @@ First you need to register the core plugin with Tauri:
|
||||
`src-tauri/src/main.rs`
|
||||
|
||||
```rust
|
||||
use tauri_plugin_autostart::MacosLauncher;
|
||||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, Some(vec!["--flag1", "--flag2"]) /* arbitrary number of args to pass to your app */))
|
||||
|
||||
Reference in new issue
Block a user