mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +08:00
add patch for system-ocr
This commit is contained in:
parent
6fcfb5c5a6
commit
5c0b06973c
13
.yarn/patches/@napi-rs-system-ocr-npm-1.0.2-59e7a78e8b.patch
vendored
Normal file
13
.yarn/patches/@napi-rs-system-ocr-npm-1.0.2-59e7a78e8b.patch
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/index.js b/index.js
|
||||||
|
index dc071739e79876dff88e1be06a9168e294222d13..d30e895754cf0cd0ef79ae14cae02adf42eeac8a 100644
|
||||||
|
--- a/index.js
|
||||||
|
+++ b/index.js
|
||||||
|
@@ -381,7 +381,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!nativeBinding) {
|
||||||
|
- if (loadErrors.length > 0) {
|
||||||
|
+ if (process.platform !== 'linux' && loadErrors.length > 0) {
|
||||||
|
throw new Error(
|
||||||
|
`Cannot find native binding. ` +
|
||||||
|
`npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
|
||||||
@ -72,7 +72,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@libsql/client": "0.14.0",
|
"@libsql/client": "0.14.0",
|
||||||
"@libsql/win32-x64-msvc": "^0.4.7",
|
"@libsql/win32-x64-msvc": "^0.4.7",
|
||||||
"@napi-rs/system-ocr": "^1.0.2",
|
"@napi-rs/system-ocr": "patch:@napi-rs/system-ocr@npm%3A1.0.2#~/.yarn/patches/@napi-rs-system-ocr-npm-1.0.2-59e7a78e8b.patch",
|
||||||
"@strongtz/win32-arm64-msvc": "^0.4.7",
|
"@strongtz/win32-arm64-msvc": "^0.4.7",
|
||||||
"graceful-fs": "^4.2.11",
|
"graceful-fs": "^4.2.11",
|
||||||
"jsdom": "26.1.0",
|
"jsdom": "26.1.0",
|
||||||
|
|||||||
25
yarn.lock
25
yarn.lock
@ -4761,7 +4761,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@napi-rs/system-ocr@npm:^1.0.2":
|
"@napi-rs/system-ocr@npm:1.0.2":
|
||||||
version: 1.0.2
|
version: 1.0.2
|
||||||
resolution: "@napi-rs/system-ocr@npm:1.0.2"
|
resolution: "@napi-rs/system-ocr@npm:1.0.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -4782,6 +4782,27 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@napi-rs/system-ocr@patch:@napi-rs/system-ocr@npm%3A1.0.2#~/.yarn/patches/@napi-rs-system-ocr-npm-1.0.2-59e7a78e8b.patch":
|
||||||
|
version: 1.0.2
|
||||||
|
resolution: "@napi-rs/system-ocr@patch:@napi-rs/system-ocr@npm%3A1.0.2#~/.yarn/patches/@napi-rs-system-ocr-npm-1.0.2-59e7a78e8b.patch::version=1.0.2&hash=1454af"
|
||||||
|
dependencies:
|
||||||
|
"@napi-rs/system-ocr-darwin-arm64": "npm:1.0.2"
|
||||||
|
"@napi-rs/system-ocr-darwin-x64": "npm:1.0.2"
|
||||||
|
"@napi-rs/system-ocr-win32-arm64-msvc": "npm:1.0.2"
|
||||||
|
"@napi-rs/system-ocr-win32-x64-msvc": "npm:1.0.2"
|
||||||
|
dependenciesMeta:
|
||||||
|
"@napi-rs/system-ocr-darwin-arm64":
|
||||||
|
optional: true
|
||||||
|
"@napi-rs/system-ocr-darwin-x64":
|
||||||
|
optional: true
|
||||||
|
"@napi-rs/system-ocr-win32-arm64-msvc":
|
||||||
|
optional: true
|
||||||
|
"@napi-rs/system-ocr-win32-x64-msvc":
|
||||||
|
optional: true
|
||||||
|
checksum: 10c0/9ee9476893284a4f1ba11357697209232ef87823308a80cff60c7d2cb833c3125ba56bdc424ea591ef636aa1a64cc896ea592e4f48ac5dd1ad449b0eef360c36
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@napi-rs/wasm-runtime@npm:^0.2.4":
|
"@napi-rs/wasm-runtime@npm:^0.2.4":
|
||||||
version: 0.2.12
|
version: 0.2.12
|
||||||
resolution: "@napi-rs/wasm-runtime@npm:0.2.12"
|
resolution: "@napi-rs/wasm-runtime@npm:0.2.12"
|
||||||
@ -9406,7 +9427,7 @@ __metadata:
|
|||||||
"@mistralai/mistralai": "npm:^1.7.5"
|
"@mistralai/mistralai": "npm:^1.7.5"
|
||||||
"@modelcontextprotocol/sdk": "npm:^1.17.0"
|
"@modelcontextprotocol/sdk": "npm:^1.17.0"
|
||||||
"@mozilla/readability": "npm:^0.6.0"
|
"@mozilla/readability": "npm:^0.6.0"
|
||||||
"@napi-rs/system-ocr": "npm:^1.0.2"
|
"@napi-rs/system-ocr": "patch:@napi-rs/system-ocr@npm%3A1.0.2#~/.yarn/patches/@napi-rs-system-ocr-npm-1.0.2-59e7a78e8b.patch"
|
||||||
"@notionhq/client": "npm:^2.2.15"
|
"@notionhq/client": "npm:^2.2.15"
|
||||||
"@opentelemetry/api": "npm:^1.9.0"
|
"@opentelemetry/api": "npm:^1.9.0"
|
||||||
"@opentelemetry/core": "npm:2.0.0"
|
"@opentelemetry/core": "npm:2.0.0"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user