update: devtools to v1.06.2412040

This commit is contained in:
msojocs 2025-01-16 09:29:03 +08:00
parent fbe81e32ba
commit 23b2b57500
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
# 1.06.2412040-1 / 2025-01-16
- update: devtools to v1.06.2412040
# 1.06.2409140-3 / 2024-11-16 # 1.06.2409140-3 / 2024-11-16
- fix: 多开实例会出现卡死的情况 - fix: 多开实例会出现卡死的情况

View File

@ -1 +1 @@
1.06.2409140,e953b10499fec8dac213092b0d809841 1.06.2412040,cc61b0fa1e6ecfac672c793cc2f6dc48

View File

@ -28,7 +28,10 @@ function writeInt32(number, start) {
writeSync(buf, start) writeSync(buf, start)
} }
let files = fs.readdirSync(dest) // 加入子文件夹的文件
const files = fs.readdirSync(dest, { recursive: true }).filter(e => fs.statSync(path.join(dest, e)).isFile())
// console.log(JSON.stringify(files, null, 4))
// 文件数 // 文件数
let totalCount = files.length let totalCount = files.length
@ -57,6 +60,7 @@ for (let file of files) {
writeInt32(dataOffset, start) writeInt32(dataOffset, start)
start += 4 start += 4
// write length // write length
// console.info('dest:', dest, 'file:', file)
let contentBuf = fs.readFileSync(path.join(dest, file)) let contentBuf = fs.readFileSync(path.join(dest, file))
writeInt32(contentBuf.length, start) writeInt32(contentBuf.length, start)
start += 4 start += 4