From cc623e5010a01969f78bc27526442d0eedd0ae84 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 21 Mar 2024 10:43:33 +0530 Subject: [PATCH] Remove unnecessary steps I'm not sure how it is happening, but both ffmpeg-static and onnx get to their correct path without this configuration. the paths it gets to is also slightly different, so it seems that this snippet does not have any effect (at best): ente.app/Contents/Resources/app.asar.unpacked/node_modules --- desktop/electron-builder.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/desktop/electron-builder.yml b/desktop/electron-builder.yml index 8f29df2eef..b936f032e7 100644 --- a/desktop/electron-builder.yml +++ b/desktop/electron-builder.yml @@ -31,17 +31,6 @@ mac: hardenedRuntime: true x64ArchFiles: Contents/Resources/ggmlclip-mac afterSign: electron-builder-notarize -# When Electron packages our node_modules, they go into the ASAR archive. This -# is not what we want for the FFMPEG binaries though, and instead put them -# outside of the ASAR archive so that we can get at a direct path to these files -# when trying to run it. -# -# The filtering by `${os}` and `${arch}` is to include only the binaries for the -# os/arch combination that we're bundling. -asarUnpack: - - node_modules/ffmpeg-static/bin/${os}/${arch}/ffmpeg - - node_modules/ffmpeg-static/index.js - - node_modules/ffmpeg-static/package.json extraFiles: - from: build to: resources