Skip to content

A feature-rich command-line audio/video downloader

[pyinst] Show Python version in EXE metadata (#384)

Nil Admirari56ce9eb83299
diff --git a/pyinst.py b/pyinst.py
index 8f24fdaf67..0d8ff73c3d 100644
--- a/pyinst.py
+++ b/pyinst.py
@@ -58,7 +58,9 @@ VERSION_FILE = VSVersionInfo(
),
StringStruct('OriginalFilename', 'yt-dlp%s.exe' % _x86),
StringStruct('ProductName', 'yt-dlp%s' % _x86),
- StringStruct('ProductVersion', '%s%s' % (VERSION, _x86)),
+ StringStruct(
+ 'ProductVersion',
+ '%s%s on Python %s' % (VERSION, _x86, platform.python_version())),
])]),
VarFileInfo([VarStruct('Translation', [0, 1200])])
]