mirror of
https://github.com/jely2002/youtube-dl-gui.git
synced 2021-11-01 22:46:21 +03:00
Fix getPath on MacOS
This commit is contained in:
@@ -15,9 +15,11 @@ if(process.platform === "darwin") {
|
||||
filePath = defaultBin + "youtube-dl-darwin"
|
||||
})
|
||||
} else if(process.platform === "linux") {
|
||||
defaultBin = await ipcRenderer.invoke('getPath', 'home') + "/.youtube-dl-gui/"
|
||||
defaultPath = defaultBin + 'details'
|
||||
filePath = defaultBin + "youtube-dl-darwin"
|
||||
defaultBin = ipcRenderer.invoke('getPath', 'home').then(() => {
|
||||
defaultBin += "/.youtube-dl-gui/"
|
||||
defaultPath = defaultBin + 'details'
|
||||
filePath = defaultBin + "youtube-dl-darwin"
|
||||
})
|
||||
} else {
|
||||
defaultPath = "resources/details"
|
||||
filePath = "resources/youtube-dl.exe"
|
||||
|
||||
Reference in New Issue
Block a user