Skip to content

Commit

Permalink
linxu ffmpeg path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBarker committed Jan 23, 2025
1 parent 28e7b21 commit 215b4ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,11 @@ function getFfmpegPath() {

if (app.isPackaged) {
// Production path
ffmpegPath = process.platform === 'darwin'
? path.join(process.resourcesPath, exeName) // macOS specific path
: path.join(process.resourcesPath, 'resources', exeName);
if (process.platform === 'darwin' || process.platform === 'linux') {
ffmpegPath = path.join(process.resourcesPath, exeName);
} else if (process.platform === 'win32') {
ffmpegPath = path.join(process.resourcesPath, 'resources', exeName);
}
} else {
// development path
const rootFolder = path.basename(path.resolve(__dirname));
Expand Down

0 comments on commit 215b4ba

Please sign in to comment.