kopia lustrzana https://github.com/mifi/lossless-cut
fix mac and windows
rodzic
9b1ea4b66e
commit
373fdaf93e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue