The swiss army knife of lossless video/audio editing
fix mac and windows
Mikael Finstad373fdaf93e52
diff --git a/public/ffmpeg.js b/public/ffmpeg.jsindex eca2fa1d..073b6065 100644--- a/public/ffmpeg.js+++ b/public/ffmpeg.js@@ -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);}