caprine: use electron.dist

This commit is contained in:
TomaSajt 2024-08-27 21:34:05 +02:00
parent cade99381b
commit 3ea2d8d170
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -8,9 +8,6 @@
electron,
}:
let
electronDist = electron + (if stdenv.isDarwin then "/Applications" else "/libexec/electron");
in
buildNpmPackage rec {
pname = "caprine";
version = "2.60.1";
@ -29,7 +26,7 @@ buildNpmPackage rec {
nativeBuildInputs = [ copyDesktopItems ];
postBuild = ''
cp -r ${electronDist} electron-dist
cp -r ${electron.dist} electron-dist
chmod -R u+w electron-dist
npm exec electron-builder -- \