π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Improve desktop packaging
Manav Rathi1f5946b4eccd
diff --git a/desktop/changes/desktop-packaging-improvements.md b/desktop/changes/desktop-packaging-improvements.mdnew file mode 100644index 0000000000..6f1dfa6800--- /dev/null+++ b/desktop/changes/desktop-packaging-improvements.md@@ -0,0 +1,2 @@+- Reduce desktop app package size by excluding unused ONNX Runtime native binaries.+- Sign shipped Windows native modules and DLLs.diff --git a/desktop/electron-builder.yml b/desktop/electron-builder.ymlindex 0fb94370ae..bf47efbdfe 100644--- a/desktop/electron-builder.yml+++ b/desktop/electron-builder.yml@@ -11,6 +11,9 @@ protocols:- name: Enteschemes: ["ente"]win:+ files:+ - "!node_modules/onnxruntime-node/bin/napi-v6/**/*"+ - "node_modules/onnxruntime-node/bin/napi-v6/${platform}/${arch}/**/*"target:- target: nsisarch: [x64, arm64]@@ -19,9 +22,13 @@ win:endpoint: https://eus.codesigning.azure.net/certificateProfileName: EnteTrustCertProfilecodeSigningAccountName: EnteTechnologiesInc+ signExts: [".dll", ".node"]nsis:deleteAppDataOnUninstall: truelinux:+ files:+ - "!node_modules/onnxruntime-node/bin/napi-v6/**/*"+ - "node_modules/onnxruntime-node/bin/napi-v6/${platform}/${arch}/**/*"target:- target: AppImagearch: [x64, arm64]@@ -34,6 +41,10 @@ linux:category: Photographyicon: ./build/icon.icnsmac:+ 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/**/*"target:target: defaultarch: [universal]