From a89d0064fa75b750da8edc2279a7d96e717cce1d Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Sun, 3 Sep 2023 16:55:43 -0400 Subject: [PATCH] chore: attempt to remove python3 from the binary --- scripts/binary/binary-cleanup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/binary/binary-cleanup.js b/scripts/binary/binary-cleanup.js index 3d3d60914837..84413f5265f5 100644 --- a/scripts/binary/binary-cleanup.js +++ b/scripts/binary/binary-cleanup.js @@ -225,6 +225,8 @@ const buildEntryPointAndCleanup = async (buildAppDir) => { path.join(buildAppDir, '**', 'fluent-ffmpeg', 'doc'), // Files used as part of prebuilding are not necessary path.join(buildAppDir, '**', 'node_gyp_bins'), + // python 3 references inside node_gyp_bins add 24MB per reference to the binary. It isn't need to remove it. + path.join(buildAppDir, '**', 'registry-js', 'build', 'node_gyp_bins', 'python3'), path.join(buildAppDir, '**', 'better-sqlite3', 'bin'), path.join(buildAppDir, '**', 'registry-js', 'prebuilds'), path.join(buildAppDir, '**', '*.cc'),