element-desktop: avoid duplicating element-web

https://github.com/NixOS/nixpkgs/pull/563892 added webapp.asar to
satisfy electron-builder. This unintentionally left it in the app bundle
(in addition to symlinked electron-web), bloating the package by ~140MB
for no good reason.
This commit is contained in:
Ihar Hrachyshka
2026-09-25 10:20:24 -04:00
parent e6340217c1
commit 8a66a0b8fb

View File

@@ -112,6 +112,9 @@ stdenv.mkDerivation (finalAttrs: {
asar pack tmp-app "$packed"
# element-web is linked into the output during installPhase.
find ./dist -name webapp.asar -delete
runHook postBuild
'';