574cb353e8
- RestJobEx 对齐 task_id,path_file 提交目录路径 - 运行页进度仅跟接口轮询,失败态停留 page3 UI - 完成态卡位续做,USB/任务轮询生命周期优化 - 拆分 DLL 加载、任务 staging 与提交前校验 - 移除 mock 与冗余样式,补充 native 依赖 Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
642 B
JavaScript
24 lines
642 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',
|
||
'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 齐全`)
|