Merge pull request #308870 from TomaSajt/jitsi-meet-electron

jitsi-meet-electron: set ELECTRON_IS_DEV instead of substituting
This commit is contained in:
Artturin 2024-05-04 05:27:54 +03:00 committed by GitHub
commit f7f09d3442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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