diff --git a/desktop/electron-builder.yml b/desktop/electron-builder.yml index 8af4cff..de55da0 100644 --- a/desktop/electron-builder.yml +++ b/desktop/electron-builder.yml @@ -56,6 +56,15 @@ extraResources: - "!7zip-bin/**" - "!@electron/**" - "!@develar/**" + # node-gyp only COMPILES native modules; nothing loads it at runtime (node-pty + # resolves its prebuilt .node directly). It also ships a vendored Python tree, + # and `npmRebuild` leaves __pycache__/*.pyc behind in it — codesign then tries + # to sign those and fails with "A timestamp was expected but was not found", + # taking the whole build down. Excluding the package removes both the dead + # weight and the failure surface. + - "!node-gyp/**" + # Belt and braces: no Python bytecode anywhere in the shipped tree. + - "!**/__pycache__/**" # Rebuild native deps (node-pty) against the Electron ABI before packaging + copy. npmRebuild: true mac: