jitsi-meet-electron: set ELECTRON_IS_DEV instead of substituting

This commit is contained in:
TomaSajt
2024-05-03 19:59:43 +02:00
parent df2353cfdc
commit a784b9d9a8
@@ -43,11 +43,6 @@ buildNpmPackage rec {
env.ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
postPatch = ''
substituteInPlace main.js \
--replace "require('electron-is-dev')" "false"
'';
preBuild = ''
# remove some prebuilt binaries
find node_modules -type d -name prebuilds -exec rm -r {} +
@@ -72,6 +67,7 @@ buildNpmPackage rec {
makeWrapper ${lib.getExe electron} $out/bin/jitsi-meet-electron \
--add-flags $out/share/jitsi-meet-electron/resources/app.asar \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--set-default ELECTRON_IS_DEV 0 \
--inherit-argv0
install -Dm644 resources/icons/512x512.png $out/share/icons/hicolor/512x512/apps/jitsi-meet-electron.png