vesktop: use electron.dist

This commit is contained in:
TomaSajt 2024-05-21 19:16:38 +02:00
parent 6cfd1daffb
commit 1fad8f3463
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -87,7 +87,7 @@ stdenv.mkDerivation (finalAttrs: {
# electron builds must be writable on darwin
preBuild = lib.optionalString stdenv.isDarwin ''
cp -r ${electron}/Applications/Electron.app .
cp -r ${electron.dist}/Electron.app .
chmod -R u+w Electron.app
'';
@ -98,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
pnpm exec electron-builder \
--dir \
-c.asarUnpack="**/*.node" \
-c.electronDist=${if stdenv.isDarwin then "." else "${electron}/libexec/electron"} \
-c.electronDist=${if stdenv.isDarwin then "." else electron.dist} \
-c.electronVersion=${electron.version}
runHook postBuild