Files
SoonMachine/app/scripts/check-native-dlls.js
T
2026-05-27 00:17:13 +08:00

22 lines
571 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 齐全')