cherry-studio/src/main/utils
beyondkmp 5ce7261678
refactor: Improve linux build for system-ocr (#9775)
* refactor(ocr): streamline OCR service registration and improve image preprocessing

- Simplified the registration of the system OCR service by removing the conditional check for Linux.
- Updated SystemOcrService to directly import necessary modules, enhancing clarity.
- Refactored image preprocessing to use a static import of the 'sharp' library for better performance.

* add patch for system-ocr

* add patch

* add patch again

* add patch

* delete setting

* delete i18n

* lint error

* add isLinux

* Revert "delete i18n"

This reverts commit 173e65bbd0.

* Revert "delete setting"

This reverts commit de39c76f83.

* fix: add system check for error message

---------

Co-authored-by: icarus <eurfelux@gmail.com>
2025-09-02 12:59:14 +08:00
..
__tests__ fix: change jschardet to chardet (#8577) 2025-07-29 17:27:36 +08:00
aes.ts feat: add aihubmix oauth 2025-02-07 22:27:28 +08:00
file.ts Fix/newNode (#9727) 2025-08-31 21:53:53 +08:00
index.ts feat: add code tools (#9043) 2025-08-12 11:54:38 +08:00
init.ts refactor: move initAppDataDir function to a new utils module (#8337) 2025-07-21 15:46:14 +08:00
ipService.ts refactor: replace axios and node fetch with electron's net module (#9212) 2025-08-15 22:48:22 +08:00
locales.ts chore(i18n): forced nested structure to support i18n ally (#8457) 2025-07-25 17:36:04 +08:00
mcp.ts refactor: improve sanitization and formatting in buildFunctionCallToo… (#6152) 2025-05-19 11:20:38 +08:00
ocr.ts refactor: Improve linux build for system-ocr (#9775) 2025-09-02 12:59:14 +08:00
process.ts refactor: Unified Logger / 统一日志管理 (#8207) 2025-07-18 09:40:56 +08:00
systemInfo.ts feat(AppUpdater): integrate User-Agent generation for autoUpdater req… (#7751) 2025-07-02 16:18:44 +08:00
windowUtil.ts fix: font-family changed in Windows with new Electron (#6079) 2025-05-17 21:27:29 +08:00
zip.ts refactor[Logger]: strict type check for Logger (#8363) 2025-07-23 13:24:03 +08:00
zoom.ts style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00