Provide an official exe for windows #101

Closed
opened 2026-02-20 22:25:30 -05:00 by deekerman · 6 comments
Owner

Originally created by @phihag on GitHub (Sep 13, 2011).

A standalone exe file for Windows would be nice. See if we can maybe create it with wine (?), or, failing that, somehow create it on Windows.

  • Make sure youtube-dl -U still works as intended
Originally created by @phihag on GitHub (Sep 13, 2011). A standalone exe file for Windows would be nice. See if we can maybe create it with wine (?), or, failing that, somehow create it on Windows. - Make sure youtube-dl -U still works as intended
Author
Owner

@phihag commented on GitHub (Sep 13, 2011):

yoshco says:

i previously used py2exe.org for this (messy)
also this effort (including source).

@phihag commented on GitHub (Sep 13, 2011): yoshco says: i previously used py2exe.org for this (messy) also [this effort (including source)](http://www.himili.com/blog/downloads/youtube-video-downloader/).
Author
Owner

@obeythepenguin commented on GitHub (Sep 14, 2011):

Try this one: http://youtube2mp3.sourceforge.net/runtime/youtube-dl.exe
I update it periodically as part of youtube2mp3, so that link should always point to a relatively recent version.

@obeythepenguin commented on GitHub (Sep 14, 2011): Try this one: http://youtube2mp3.sourceforge.net/runtime/youtube-dl.exe I update it periodically as part of [youtube2mp3](http://youtube2mp3.sourceforge.net/), so that link should always point to a relatively recent version.
Author
Owner

@obeythepenguin commented on GitHub (Sep 14, 2011):

By the way, youtube-dl -U wouldn't work for an exe file, for two reasons:

  • it assumes you're running the Python script itself, and downloads the latest version straight from Git
  • it assumes youtube-dl can overwrite itself while it's running.

Those are both fair assumptions on Unix, but not on Windows: with an exe, you aren't running the Python directly but in compiled form, and Windows won't allow a running process to overwrite its own executable.

@obeythepenguin commented on GitHub (Sep 14, 2011): By the way, youtube-dl -U wouldn't work for an exe file, for two reasons: - it assumes you're running the Python script itself, and downloads the latest version straight from Git - it assumes youtube-dl can overwrite itself while it's running. Those are both fair assumptions on Unix, but not on Windows: with an exe, you aren't running the Python directly but in compiled form, and Windows won't allow a running process to overwrite its own executable.
Author
Owner

@phihag commented on GitHub (Sep 15, 2011):

@obeythepenguin Great - would you be willing to commit the build script you're using under Public Domain?

Also, updating can work, that's precisely why I added the notice.

  • When updating from an exe, it would check for a new exe instead of the .py file
  • Overwriting itself of course requires write access to the exe file. And we'll have to find a workaround to overwrite our own file, for example executing a shell command to wait a second and write the file in the background and then terminating immediately.
@phihag commented on GitHub (Sep 15, 2011): @obeythepenguin Great - would you be willing to commit the build script you're using under Public Domain? Also, updating can work, that's precisely why I added the notice. - When updating from an exe, it would check for a new exe instead of the .py file - Overwriting itself of course requires write access to the exe file. And we'll have to find a workaround to overwrite our own file, for example executing a shell command to wait a second and write the file in the background and then terminating immediately.
Author
Owner

@obeythepenguin commented on GitHub (Oct 10, 2011):

@phihag Yes, I will gladly commit it under the Public Domain. My script is here:
http://youtube2mp3.hg.sourceforge.net/hgweb/youtube2mp3/youtube2mp3/raw-file/b1e4252e9f55/scripts/setup.py

Sorry for the (very) late reply; I'm mainly a Mercurial user, so I don't check Github often.

@obeythepenguin commented on GitHub (Oct 10, 2011): @phihag Yes, I will gladly commit it under the Public Domain. My script is here: http://youtube2mp3.hg.sourceforge.net/hgweb/youtube2mp3/youtube2mp3/raw-file/b1e4252e9f55/scripts/setup.py Sorry for the (very) late reply; I'm mainly a Mercurial user, so I don't check Github often.
Author
Owner

@FiloSottile commented on GitHub (Jul 31, 2012):

We have had a complete WINE exe creation system for some time now

@FiloSottile commented on GitHub (Jul 31, 2012): We have had a complete WINE exe creation system for some time now
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#101
No description provided.