add basic tray icon for now
|
|
@ -18,7 +18,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
|
|||
tauri-build = { version = "2", features = [] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "2", features = [] }
|
||||
tauri = { version = "2", features = ["tray-icon"] }
|
||||
tauri-plugin-opener = "2"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 903 B |
|
Before Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
BIN
src-tauri/icons/tray_32x32.png
Normal file
|
After Width: | Height: | Size: 469 B |
BIN
src-tauri/icons/tray_64x64.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -4,9 +4,10 @@ use log::info;
|
|||
use managers::audio::AudioRecordingManager;
|
||||
use managers::transcription::TranscriptionManager;
|
||||
use rdev::{simulate, EventType, Key, SimulateError};
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::sync::Arc;
|
||||
use std::{thread, time};
|
||||
use tauri::{Emitter, Manager};
|
||||
use tauri::tray::TrayIconBuilder;
|
||||
use tauri::{AppHandle, Manager};
|
||||
use tauri_plugin_autostart::MacosLauncher;
|
||||
use tauri_plugin_clipboard_manager::ClipboardExt;
|
||||
|
||||
|
|
@ -66,6 +67,8 @@ pub fn run() {
|
|||
.plugin(tauri_plugin_macos_permissions::init())
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.setup(move |app| {
|
||||
let tray = TrayIconBuilder::new().build(app)?;
|
||||
|
||||
let vad_path = app.path().resolve(
|
||||
"resources/silero_vad_v4.onnx",
|
||||
tauri::path::BaseDirectory::Resource,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@
|
|||
],
|
||||
"security": {
|
||||
"csp": null
|
||||
},
|
||||
"trayIcon": {
|
||||
"iconPath": "icons/tray_64x64.png"
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
|
|
@ -30,7 +33,9 @@
|
|||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
"icons/icon.ico",
|
||||
"icons/tray_32x32.png",
|
||||
"icons/tray_64x64.png"
|
||||
],
|
||||
"macOS": {
|
||||
"files": {},
|
||||
|
|
|
|||