windows support for active app icon retrieval
This commit is contained in:
@@ -4,19 +4,15 @@ version = "0.1.0"
|
||||
description = "A Tauri App"
|
||||
authors = ["you"]
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[lib]
|
||||
# The `_lib` suffix may seem redundant but it is necessary
|
||||
# to make the lib name unique and wouldn't conflict with the bin name.
|
||||
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
||||
name = "friendolls_desktop_lib"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2", features = [] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "2", features = ["macos-private-api", "unstable", "tray-icon"] }
|
||||
tauri-plugin-opener = "2"
|
||||
@@ -44,16 +40,14 @@ flate2 = "1.0.28"
|
||||
rust_socketio = "0.6.0"
|
||||
tracing-appender = "0.2.4"
|
||||
tauri-plugin-dialog = "2.4.2"
|
||||
image = {version = "0.25.9", default-features = false, features = ["gif"] }
|
||||
image = {version = "0.25.9", default-features = false, features = ["gif", "png"] }
|
||||
gif = "0.14.1"
|
||||
raw-window-handle = "0.6"
|
||||
enigo = { version = "0.6.1", features = ["wayland"] }
|
||||
lazy_static = "1.5.0"
|
||||
|
||||
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
||||
tauri-plugin-global-shortcut = "2"
|
||||
tauri-plugin-positioner = "2"
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
objc2 = "0.6.3"
|
||||
objc2-app-kit = { version = "0.3.2", features = [
|
||||
@@ -63,7 +57,6 @@ objc2-app-kit = { version = "0.3.2", features = [
|
||||
"NSRunningApplication"
|
||||
] }
|
||||
objc2-foundation = { version = "0.3.2", features = ["NSNotification", "NSString", "NSURL"] }
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
windows = { version = "0.58", features = [
|
||||
"Win32_Foundation",
|
||||
@@ -71,9 +64,11 @@ windows = { version = "0.58", features = [
|
||||
"Win32_UI_WindowsAndMessaging",
|
||||
"Win32_System_Threading",
|
||||
"Win32_UI_Shell_PropertiesSystem",
|
||||
"Win32_UI_Shell",
|
||||
"Win32_System_Com",
|
||||
"Win32_UI_Accessibility",
|
||||
"Win32_Storage_FileSystem",
|
||||
"Win32_Globalization",
|
||||
"Win32_UI_Input_KeyboardAndMouse",
|
||||
"Win32_Graphics_Gdi",
|
||||
] }
|
||||
|
||||
Reference in New Issue
Block a user