1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-10-26 18:18:46 +03:00

refactor(scripts): exclude current Node.js bridge archive from new archive

This commit is contained in:
louistiti 2023-05-01 00:49:35 +08:00
parent bb00677568
commit 0e4ec4fb97
No known key found for this signature in database
GPG Key ID: 92CD6A2E497E1669

View File

@ -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()