-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download precompiled version of yt-dlp on macOS #259
Conversation
I confirmed this works without python3 on my machine (macOS BigSur 11.4) by starting the application like this:
but I am not 100% sure if that actually verifies it. Would be nice also test this on another machine. On another machine running Sierra I instead get this error: I am assuming it fails on Sierra since it is so old and the pyinstaller dropped support for this, but I could not find any evidence for this. |
@mark-up any chance you would be willing to test this on your machine as well? Since you already have a javascript project on your profile I assume you can build this on your machine? The one that Github uploaded here seems to be missing the the app.asar.unpacked, so it doesn't work on my machine: https://github.com/StefanLobbenmeier/youtube-dl-gui/releases/tag/v2.4.0-youtube-dlp-macos-native |
Thanks a lot for looking into this. I don't possess a Mac anymore. Hence why this is broken, I wasn't able to test it properly. About you getting an EACCESS. This is probably because the downloaded file isn't marked as executable yet. I set it to executable with About the app.asar.unpacked missing, I have never had that happen before. So not sure what happened there. |
@StefanLobbenmeier I'm sorry, I have no idea how. Would be happy to take a stab at it if you have instructions somewhere I can follow. |
Oh I see - you can try building with the instructions here: https://github.com/StefanLobbenmeier/youtube-dl-gui/blob/patch-1/CONTRIBUTING.md But I also went ahead and updated the tag https://github.com/StefanLobbenmeier/youtube-dl-gui/releases/tag/v2.4.0-youtube-dlp-macos-native with the version I built locally so that should also work |
Thanks, I tried the one you built and received this error:
|
I see - thanks for testing. I guess that means we can put this pr on pause till this gets fixed in YouTube dlp :/ |
Thanks for trying. I appreciate your effort. Wish I could contribute, but this stuff is way beyond me. |
Found someone having the same issue as me on Sierra: So in principle we can make this work by building yt-dlp on an older Mac. I checked which version gitlab actions support, and unfortunately it only supports Catalina and up. Luckily someone else also has this exact issue: actions/runner-images#1256 (comment) So I will try to get yt-dlp action to lower their deployment target - that should help |
I implemented compiling with a lower macOS target, but I need some time to access a macOS machine with a lower version. In the meantime, maybe @mark-up might be willing to do a test?
On Monterey it works:
I might be able to access the Sierra machine tomorrow evening or next weekend, we will see. I will also check how easy it is to get those older macOS versions in qemu so I can test on my own :) |
2b8e87b
to
29f63a5
Compare
Will open a separate PR - now yt-dlp supports older macOS versions via macos_legacy |
Aims to fix #243
When doing manual testing of this I noticed 2 things:
npm run start
I had to restart after the file has been downloaded, otherwise the download fails "EACCESS" or is stuck at downloading metadata. Quite strange / but maybe you experienced that before? It does not happen in the finished build though, or on any future runs.npx electron-builder --mac
as the readme suggests the build .app did not containyoutube-dl-gui/dist/mac/Open Video Downloader.app/Contents/Resources/app.asar.unpacked
. Possibly they are only included if the application has run before vianpm run start
and populated the binaries folder that way, but I do not know for sure, since it seems to work in the CI.