feishin: use electron.dist

This commit is contained in:
TomaSajt
2024-08-27 21:37:15 +02:00
parent 939d0a5a6d
commit 7dc03bea93
+2 -2
View File
@@ -79,7 +79,7 @@ buildNpmPackage {
postBuild =
lib.optionalString stdenv.isDarwin ''
# electron-builder appears to build directly on top of Electron.app, by overwriting the files in the bundle.
cp -r ${electron}/Applications/Electron.app ./
cp -r ${electron.dist}/Electron.app ./
find ./Electron.app -name 'Info.plist' | xargs -d '\n' chmod +rw
# Disable code signing during build on macOS.
@@ -90,7 +90,7 @@ buildNpmPackage {
+ ''
npm exec 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} \
-c.npmRebuild=false
'';