From e5813e53f089e018606435926ae0e109c4838394 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 14 Feb 2021 22:40:54 +0530 Subject: Improve build/updater * Fix `get_executable_path` in UNIX * Update `x86.exe` correctly * Exit immediately in windows once the update process starts so that the file handle is released correctly * Show `exe`/`zip`/`source` and 32/64bit in verbose message * Look for both `yt-dlp` and `youtube-dlc` in releases. This ensures that the updater will keep working when the binary name is changed to yt-dlp * Disable pycryptodome in win_x86 since it causes `distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 10.0 is required` --- pyinst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyinst.py') diff --git a/pyinst.py b/pyinst.py index c73a770db..218b43120 100644 --- a/pyinst.py +++ b/pyinst.py @@ -72,7 +72,7 @@ PyInstaller.__main__.run([ '--exclude-module=test', '--exclude-module=ytdlp_plugins', '--hidden-import=mutagen', - '--hidden-import=pycryptodome', + '--hidden-import=%s' % ('Crypto' if _x86 else 'pycryptodome'), 'youtube_dlc/__main__.py', ]) SetVersion('dist/youtube-dlc%s.exe' % _x86, VERSION_FILE) -- cgit v1.2.3