优化一些bug
This commit is contained in:
@@ -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 齐全')
|
||||
Reference in New Issue
Block a user