From 7148c29ed1235070c3558e4a6e7fa7783dc84f5f Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 18 Jul 2024 21:52:31 +0200 Subject: [PATCH] more clean --- scripts/build/build.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs index 121645537..1637bc6cb 100755 --- a/scripts/build/build.mjs +++ b/scripts/build/build.mjs @@ -231,7 +231,11 @@ if (existsSync("dist/renderer.js")) { await Promise.all( readdirSync("dist") - .filter(f => ["patcher", "preload", "renderer", "main"].some(name => f.toLowerCase().includes(name))) + .filter(f => + f.endsWith(".map") || + f.endsWith(".LEGAL.txt") || + ["patcher", "preload", "renderer"].some(name => f.startsWith(name)) + ) .map(file => rm(join("dist", file))) );