Skip to content

Commit

Permalink
Add .exe to the end of the ffmpeg binary on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Aug 6, 2024
1 parent 8d002fb commit 1337a1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/main/src/controllers/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1337a1c

Please sign in to comment.