News for hackers. Stuff that matters.
Re:Show HN: YouTube-DL GUI Powered by Electron by mayeaux on Tuesday July 02, 2019 @02:39AM (#20332710)
I tried to install it but I couldn't install WxPython3 via SourceForge so I couldn't get the deps to work. Plus the maintainer of that app doesn't care much for supporting OS X and Linux (basically tells people to just go use Windows) so I wanted to use Electron where I can package an app for all platforms.
Re:Show HN: YouTube-DL GUI Powered by Electron by geokon on Tuesday July 02, 2019 @09:04AM (#20334575)
I'm a bit ignorant of the details b/c I haven't touched web stuff before. But on a high level, how does a Javascript/Electron app wrap-around/bundle-with youtube-dl - which (looking at github) is a python app?

Or does youtube-dl need to be already be pre-installed on the system?

Re:Show HN: YouTube-DL GUI Powered by Electron by mayeaux on Tuesday July 02, 2019 @01:18PM (#20337225)
Electron is a small Chromium browser that can interact with Node.JS, youtube-dl is packaged with this app as a node package manager dependency. The youtube-dl binary is downloaded and then called via a child process, let me know if that clears things up for you.
Re:Show HN: YouTube-DL GUI Powered by Electron by geokon on Wednesday July 03, 2019 @03:57AM (#20342468)
So you need to have the python runtime installed for this to work? Or is that downloaded as well?

I was just thinking I could for instance make a similar JavaFX crossplatform GUI on the JVM, but I'd have no idea how to call the youtube-dl python code. So I'm just curious how Electron solves that problem :)

Re:Show HN: YouTube-DL GUI Powered by Electron by mayeaux on Wednesday July 03, 2019 @01:08PM (#20346281)
No you just need the prereqs to run node, the binary comes compiled already
Re:Show HN: YouTube-DL GUI Powered by Electron by geokon on Saturday July 06, 2019 @09:51AM (#20369657)
Oh okay with precompuled binaries then that's not so crossplatform. Thanks for clarifying :)