优化一些bug

This commit is contained in:
24kycj
2026-05-27 00:17:13 +08:00
parent 79174e7e03
commit 22b17aed35
48 changed files with 1529 additions and 388 deletions
+21
View File
@@ -0,0 +1,21 @@
const fs = require('fs')
const path = require('path')
const nativeDir = path.join(__dirname, '..', 'resources', 'native')
const required = [
'workDll.dll',
'FCSDK.dll',
'SeaorySDK.dll',
'dcrf32.dll',
'Entry.dll',
'libpng16.dll',
'zint.dll'
]
const missing = required.filter((name) => !fs.existsSync(path.join(nativeDir, name)))
if (missing.length) {
console.error(`resources/native 缺少: ${missing.join(', ')}`)
console.error('请从 docs/API/lib 复制 7 个 dll(不含 .lib')
process.exit(1)
}
console.log('resources/native: 7 dll 齐全')