aboutsummaryrefslogtreecommitdiffstats
path: root/pyinst.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-14 22:40:54 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-15 15:41:40 +0530
commite5813e53f089e018606435926ae0e109c4838394 (patch)
treec00e8ba9d26dac6276cdef38e5eb3353d7cce17a /pyinst.py
parent273762c8d045ace16143a6614c8d258f02a8094b (diff)
downloadhypervideo-pre-e5813e53f089e018606435926ae0e109c4838394.tar.lz
hypervideo-pre-e5813e53f089e018606435926ae0e109c4838394.tar.xz
hypervideo-pre-e5813e53f089e018606435926ae0e109c4838394.zip
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`
Diffstat (limited to 'pyinst.py')
-rw-r--r--pyinst.py2
1 files changed, 1 insertions, 1 deletions
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)