Skip to content

Commit 39373e1

Browse files
committed
[DDW-1083] Remove some more redundant files from Darwin package
1 parent 6a0daf0 commit 39373e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nix/any-darwin.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ in rec {
177177
echo 'Deleting all redundant ‘*.node’ files under to-be-distributed ‘node_modules/’:'
178178
(
179179
cd $out/Applications/*/Contents/
180-
find Resources/app/node_modules -type f '(' -name '*.node' -o -name '*.o' ')' -exec rm -vf '{}' ';'
180+
find Resources/ -name '*.node' -exec rm -vf '{}' ';'
181+
find Resources/app/node_modules -type f '(' -name '*.o' -o -name '*.o.d' -o -name '*.target.mk' -o -name '*.Makefile' -o -name 'Makefile' -o -name 'config.gypi' ')' -exec rm -vf '{}' ';'
181182
sed -r 's#try: \[#\0 [process.env.DAEDALUS_INSTALL_DIRECTORY, "bindings"],#' -i Resources/app/node_modules/bindings/bindings.js
182183
)
183184

0 commit comments

Comments
 (0)