From 0e4ec4fb970dd38101823ec0b1375c49e66ebd2a Mon Sep 17 00:00:00 2001 From: louistiti Date: Mon, 1 May 2023 00:49:35 +0800 Subject: [PATCH] refactor(scripts): exclude current Node.js bridge archive from new archive --- scripts/build-binaries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-binaries.js b/scripts/build-binaries.js index b6cf93de5..54d102536 100644 --- a/scripts/build-binaries.js +++ b/scripts/build-binaries.js @@ -188,7 +188,7 @@ BUILD_TARGETS.set('tcp-server', { if (needsPythonEnv) { archive.directory(buildPath, BINARIES_FOLDER_NAME) } else { - archive.glob('**/*', { cwd: distPath }) + archive.glob(`**/!(${archiveName})`, { cwd: distPath }) } await archive.finalize()