From 90349bfa20b43e9e10d2db578b0b55f8bf15b18e Mon Sep 17 00:00:00 2001 From: Aether Date: Mon, 23 Feb 2026 19:36:57 +0000 Subject: [PATCH] Fix Windows build: add missing deps, fix hotkeys import, fix RGBA icons --- src-tauri/Cargo.toml | 2 ++ src-tauri/icons/128x128.png | Bin 73 -> 360 bytes src-tauri/icons/128x128@2x.png | Bin 73 -> 857 bytes src-tauri/icons/32x32.png | Bin 73 -> 104 bytes src-tauri/icons/icon.png | Bin 73 -> 857 bytes src-tauri/src/hotkeys.rs | 2 +- 6 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ccee72b..301069f 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -48,6 +48,8 @@ regex = "1.10" # Image processing for OCR image = "0.24" +imageproc = "0.23" +leptess = "0.14" # Clipboard arboard = "3.3" diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.png index 7099d059be67b9c86a21f262e44ca2f0cd168105..361fcbc3cc0e01adaf04371bbc65aa2d85358854 100644 GIT binary patch literal 360 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7xzrVAS_?aSW-L^Y)UVAcKOyfeqhJ z$^HvuFp`+1Slxc^*7HlI`6ax@=y85}Sb4q9e07Cp_)Bpeg literal 73 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WcsyMkLpWw8Cx8J^fQ5mPf%V^& QI3Sb3)78&qol`;+0POG&Y5)KL diff --git a/src-tauri/icons/128x128@2x.png b/src-tauri/icons/128x128@2x.png index 7099d059be67b9c86a21f262e44ca2f0cd168105..d3dfce960de46da27e4065a6b506a3f5f1e202d6 100644 GIT binary patch literal 857 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K5893O0R7}x|GzJD{1y2{pkcv5PuNVq4Cqn&HQB28A=DXfy;yUI@HlTsl?b#?$0IPk>p5!PC{x JWt~$(695*K2vGn4 literal 73 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WcsyMkLpWw8Cx8J^fQ5mPf%V^& QI3Sb3)78&qol`;+0POG&Y5)KL diff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.png index 7099d059be67b9c86a21f262e44ca2f0cd168105..2e98f27677d4d9a945e1e98f3ff143bd8c9cc1de 100644 GIT binary patch delta 84 zcmeawm>}uT#=yW(Tvhc2Na=gJIEGZrd3(-~mw|zU*qn&HQB28A=DXfy;yUI@HlTsl?b#?$0IPk>p5!PC{x JWt~$(695*K2vGn4 literal 73 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WcsyMkLpWw8Cx8J^fQ5mPf%V^& QI3Sb3)78&qol`;+0POG&Y5)KL diff --git a/src-tauri/src/hotkeys.rs b/src-tauri/src/hotkeys.rs index 14d58a1..f1b9309 100644 --- a/src-tauri/src/hotkeys.rs +++ b/src-tauri/src/hotkeys.rs @@ -149,7 +149,7 @@ fn parse_shortcut(shortcut: &str) -> Result Result { +fn parse_key(key: &str) -> Result { use global_hotkey::hotkey::Code; let code = match key {