22 lines
571 B
JavaScript
22 lines
571 B
JavaScript
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 齐全')
|