Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use negation-only globs when pruning ONNX binaries

Manav Rathi829adb9397a9
diff --git a/desktop/changes/fix-ml-load.md b/desktop/changes/fix-ml-load.md
new file mode 100644
index 0000000000..b96e42959a
--- /dev/null
+++ b/desktop/changes/fix-ml-load.md
@@ -0,0 +1 @@
+- Fix machine learning features failing to load.
diff --git a/desktop/electron-builder.yml b/desktop/electron-builder.yml
index e304694e06..bf0b49b0cc 100644
--- a/desktop/electron-builder.yml
+++ b/desktop/electron-builder.yml
@@ -12,8 +12,8 @@ protocols:
schemes: ["ente"]
win:
files:
- - "!node_modules/onnxruntime-node/bin/napi-v6/**/*"
- - "node_modules/onnxruntime-node/bin/napi-v6/win32/${arch}/**/*"
+ - "!node_modules/onnxruntime-node/bin/napi-v6/{darwin,linux}/**/*"
+ - "!node_modules/onnxruntime-node/bin/napi-v6/win32/!(${arch})/**/*"
target:
- target: nsis
arch: [x64, arm64]
@@ -27,8 +27,8 @@ nsis:
deleteAppDataOnUninstall: true
linux:
files:
- - "!node_modules/onnxruntime-node/bin/napi-v6/**/*"
- - "node_modules/onnxruntime-node/bin/napi-v6/linux/${arch}/**/*"
+ - "!node_modules/onnxruntime-node/bin/napi-v6/{darwin,win32}/**/*"
+ - "!node_modules/onnxruntime-node/bin/napi-v6/linux/!(${arch})/**/*"
target:
- target: AppImage
arch: [x64, arm64]
@@ -42,9 +42,7 @@ linux:
icon: ./build/icon.icns
mac:
files:
- - "!node_modules/onnxruntime-node/bin/napi-v6/**/*"
- - "node_modules/onnxruntime-node/bin/napi-v6/darwin/arm64/**/*"
- - "node_modules/onnxruntime-node/bin/napi-v6/darwin/x64/**/*"
+ - "!node_modules/onnxruntime-node/bin/napi-v6/{linux,win32}/**/*"
target:
target: default
arch: [universal]