youtube-music: use electron.dist

This commit is contained in:
TomaSajt 2024-05-21 19:12:38 +02:00
parent 59e6851f58
commit e97d8f7ed8
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -33,13 +33,13 @@ stdenv.mkDerivation (finalAttrs: {
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
postBuild = lib.optionalString stdenv.isDarwin ''
cp -R ${electron}/Applications/Electron.app Electron.app
cp -R ${electron.dist}/Electron.app Electron.app
chmod -R u+w Electron.app
'' + ''
pnpm build
./node_modules/.bin/electron-builder \
--dir \
-c.electronDist=${if stdenv.isDarwin then "." else "${electron}/libexec/electron"} \
-c.electronDist=${if stdenv.isDarwin then "." else electron.dist} \
-c.electronVersion=${electron.version}
'';