chore: 删除 main.js 中的无用监听

This commit is contained in:
AncTe committed 2025-09-02 12:55:25 +08:00
1 parent 712bb1b1bf
commit f0551d163f
3 files changed
+13 -316

No files matched your search

+3 -6
View File
@@ -507,12 +507,9 @@ async function buildGame() {
});
await Promise.all(
resources.map(v => {
return writeFile(
resolve(tempDir, 'resource', v.fileName),
v.buffer
);
})
resources.map(v =>
writeFile(resolve(tempDir, 'resource', v.fileName), v.buffer)
)
).catch(reason => {
logProgress(5, ProgressStatus.Fail);
process.stderr.write(String(reason));