Unverified Commit a784b9d9 authored by TomaSajt's avatar TomaSajt
Browse files

jitsi-meet-electron: set ELECTRON_IS_DEV instead of substituting

parent df2353cf
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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