Browse Source

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

Authored by: nihil-admirari
Nil Admirari 3 years ago
parent
commit
56ce9eb832
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pyinst.py

+ 3 - 1
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])])
     ]