fix(engine): 字幕引擎启动路径适配、音频重采样函数适配

This commit is contained in:
himeditator mac
2025-07-30 00:16:54 +08:00
parent 1b7ff33656
commit a7a60da260
5 changed files with 13 additions and 7 deletions

View File

@@ -54,7 +54,12 @@ export class CaptionEngine {
}
}
else {
this.appPath = path.join(process.resourcesPath, 'engine', 'main.exe')
if(process.platform === 'win32') {
this.appPath = path.join(process.resourcesPath, 'engine', 'main.exe')
}
else {
this.appPath = path.join(process.resourcesPath, 'engine', 'main')
}
}
this.command.push('-a', allConfig.controls.audio ? '1' : '0')