mirror of
https://github.com/jely2002/youtube-dl-gui.git
synced 2021-11-01 22:46:21 +03:00
Add chmod 755 for ffmpeg
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use strict'
|
||||
const youtubedl = require('youtube-dl')
|
||||
const {remote} = require('electron')
|
||||
const fs = require('fs')
|
||||
|
||||
let selectedURL
|
||||
let availableFormats = []
|
||||
@@ -13,10 +14,13 @@ let timings
|
||||
if(process.platform === "darwin") {
|
||||
let appPath = remote.app.getAppPath().slice(0, -8)
|
||||
youtubedl.setYtdlBinary(appPath + "youtube-dl-darwin")
|
||||
ffmpegLoc = appPath + "ffmpeg-darwin"
|
||||
ffmpegLoc = appPath + "ffmpeg"
|
||||
fs.chmod(appPath + "youtube-dl-darwin", 0o755, function(err){
|
||||
if(err) console.log(err)
|
||||
})
|
||||
fs.chmod(appPath + "ffmpeg", 0o755, function(err){
|
||||
if(err) console.log(err)
|
||||
})
|
||||
} else {
|
||||
youtubedl.setYtdlBinary("resources/youtube-dl.exe")
|
||||
ffmpegLoc = "resources/ffmpeg.exe"
|
||||
|
||||
Reference in New Issue
Block a user