Files
SoonMachine/app/scripts/check-native-dlls.js
T
24kycj 574cb353e8 完善分发与收集任务全流程
- RestJobEx 对齐 task_id,path_file 提交目录路径
- 运行页进度仅跟接口轮询,失败态停留 page3 UI
- 完成态卡位续做,USB/任务轮询生命周期优化
- 拆分 DLL 加载、任务 staging 与提交前校验
- 移除 mock 与冗余样式,补充 native 依赖

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 09:43:24 +08:00

24 lines
642 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',
'freetype.dll',
'opencv_world490d.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 复制完整 native 依赖(不含 .lib')
process.exit(1)
}
console.log(`resources/native: ${required.length} dll 齐全`)