Skip to content

Commit

Permalink
fix ffmpeg path
Browse files Browse the repository at this point in the history
  • Loading branch information
myazarc committed May 3, 2020
1 parent f8be0e1 commit 37fe365
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
"linux": {
"icon": "build/icons",
"target": [
"deb",
"AppImage"
"deb"
]
}
},
Expand Down
8 changes: 6 additions & 2 deletions src/renderer/components/MainPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ export default {
});
self.list[itemIndex].progressShow = true;
let proc = new ffmpeg({ source: output });
proc.setFfmpegPath(ffmpegPath);
console.log(
ffmpegPath.toString().replace("app.asar", "app.asar.unpacked")
);
proc.setFfmpegPath(
ffmpegPath.toString().replace("app.asar", "app.asar.unpacked")
);
/*
if(process.env.NODE_ENV === 'production'){
const ffPath=__dirname.replace('app.asar/dist/electron','app.asar.unpacked/node_modules/ffmpeg-binaries/bin/ffmpeg')
Expand Down

0 comments on commit 37fe365

Please sign in to comment.