mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-25 19:52:44 +01:00
fix mac and windows
This commit is contained in:
parent
9b1ea4b66e
commit
373fdaf93e
@ -26,7 +26,14 @@ function getFfPath(cmd) {
|
|||||||
const exeName = isWindows ? `${cmd}.exe` : cmd;
|
const exeName = isWindows ? `${cmd}.exe` : cmd;
|
||||||
|
|
||||||
if (customFfPath) return join(customFfPath, exeName);
|
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);
|
return join(process.resourcesPath, exeName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user