mirror of
https://github.com/jely2002/youtube-dl-gui.git
synced 2021-11-01 22:46:21 +03:00
Chmod binaries so they can be executed
This commit is contained in:
@@ -14,6 +14,9 @@ if(process.platform === "darwin") {
|
|||||||
let appPath = remote.app.getAppPath().slice(0, -8)
|
let appPath = remote.app.getAppPath().slice(0, -8)
|
||||||
youtubedl.setYtdlBinary(appPath + "youtube-dl-darwin")
|
youtubedl.setYtdlBinary(appPath + "youtube-dl-darwin")
|
||||||
ffmpegLoc = appPath + "ffmpeg-darwin"
|
ffmpegLoc = appPath + "ffmpeg-darwin"
|
||||||
|
fs.chmod(appPath + "youtube-dl-darwin", 0o755, function(err){
|
||||||
|
if(err) console.log(err)
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
youtubedl.setYtdlBinary("resources/youtube-dl.exe")
|
youtubedl.setYtdlBinary("resources/youtube-dl.exe")
|
||||||
ffmpegLoc = "resources/ffmpeg.exe"
|
ffmpegLoc = "resources/ffmpeg.exe"
|
||||||
|
|||||||
@@ -60,6 +60,13 @@ function update() {
|
|||||||
}),
|
}),
|
||||||
'utf8'
|
'utf8'
|
||||||
)
|
)
|
||||||
|
if(process.platform === "darwin") {
|
||||||
|
console.log("Adding chmod permissions")
|
||||||
|
fs.chmod(filePath, 0o755, function(err){
|
||||||
|
if(err) console.log(err)
|
||||||
|
console.log("chmod 0755 added")
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user