fix: 修正 electron-builder 打包 ASR 模型资源的相对路径

extraResources 中 ASR 模型的 from 路径沿用了旧项目两层嵌套目录结构,
在当前扁平的 elec_rag_ui 项目中指向不存在的路径,导致打包产物缺失
语音识别模型文件。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
ssurui 2026-08-15 20:07:03 +08:00
parent 71dce3b37b
commit 16a19a12f5

View File

@ -40,7 +40,7 @@ const config: Configuration = {
? [{ from: process.env.LOCAL_MODEL_PATH, to: 'models/bge-small-zh-v1.5' }]
: []),
{
from: '../../models/asr/sherpa-onnx-streaming-paraformer-bilingual-zh-en',
from: 'models/asr/sherpa-onnx-streaming-paraformer-bilingual-zh-en',
to: 'models/asr/sherpa-onnx-streaming-paraformer-bilingual-zh-en'
},
// 内嵌离线 TTS 引擎(espeak-ng + 数据 + 依赖库),避免目标系统无 speech-dispatcher/espeak