Use same major version of electron which mattermost-desktop uses itself; find electron binary via lib.getExe
This commit is contained in:
parent
d1c8a07d3f
commit
6cb1c2d5ac
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, electron_28
|
||||
, electron_27
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
|
@ -52,7 +52,7 @@ stdenv.mkDerivation {
|
|||
substituteInPlace $out/share/applications/Mattermost.desktop \
|
||||
--replace /share/mattermost-desktop/mattermost-desktop /bin/mattermost-desktop
|
||||
|
||||
makeWrapper ${electron_28}/bin/electron $out/bin/${pname} \
|
||||
makeWrapper '${lib.getExe electron_27}' $out/bin/${pname} \
|
||||
--add-flags $out/share/${pname}/app.asar
|
||||
|
||||
runHook postInstall
|
||||
|
|
Loading…
Reference in a new issue