fix mac and windows

pull/1730/head
Mikael Finstad 2023-09-24 13:06:33 +08:00
rodzic 9b1ea4b66e
commit 373fdaf93e
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -26,7 +26,14 @@ function getFfPath(cmd) {
const exeName = isWindows ? `${cmd}.exe` : cmd;
if (customFfPath) return join(customFfPath, exeName);
if (isDev) return join('ffmpeg', `${platform}-${arch}/lib`, exeName);
if (isDev) {
const components = ['ffmpeg'];
if (isWindows || isLinux) components.push('lib');
components.push(exeName);
return join(...components);
}
return join(process.resourcesPath, exeName);
}