blockbench: use electron.dist

This commit is contained in:
TomaSajt 2024-05-21 21:11:27 +02:00
parent 87d85025f8
commit 4de880ad6d
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -10,9 +10,6 @@
electron,
}:
let
electronDist = "${electron}/${if stdenv.isDarwin then "Applications" else "libexec/electron"}";
in
buildNpmPackage rec {
pname = "blockbench";
version = "4.10.4";
@ -45,7 +42,7 @@ buildNpmPackage rec {
postBuild = ''
# electronDist needs to be modifiable on Darwin
cp -r ${electronDist} electron-dist
cp -r ${electron.dist} electron-dist
chmod -R u+w electron-dist
npm exec electron-builder -- \