diff --git a/packages/main/src/controllers/download.ts b/packages/main/src/controllers/download.ts index 4d1c2aabbc..377e1a6b92 100644 --- a/packages/main/src/controllers/download.ts +++ b/packages/main/src/controllers/download.ts @@ -28,7 +28,9 @@ class DownloadIpcCtrl { @inject(Window) private window: Window, @inject(Platform) private platform: Platform ) { - process.env.FFMPEG_BIN = path.join(path.dirname(app.getAppPath()), '../resources/bin/ffmpeg'); + const ffmpegFilename = platform.isWindows() ? 'ffmpeg.exe' : 'ffmpeg'; + + process.env.FFMPEG_BIN = path.join(path.dirname(app.getAppPath()), '../resources/bin/', ffmpegFilename); } removeInvalidCharacters(filename: string): string {