more clean
This commit is contained in:
parent
5797506569
commit
7148c29ed1
|
@ -231,7 +231,11 @@ if (existsSync("dist/renderer.js")) {
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
readdirSync("dist")
|
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)))
|
.map(file => rm(join("dist", file)))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue