File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
sdk/python/packages/flet/src/flet/__pyinstaller Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 55
66import packaging .version as version
77import pefile
8+ import PyInstaller .utils .win32 .versioninfo as versioninfo
89from PyInstaller .building .icon import normalize_icon_type
910from PyInstaller .compat import win32api
1011from PyInstaller .utils .win32 .icon import IconFile , normalize_icon_type
1112
12- try :
13- # PyInstaller 5.7.0
14- from PyInstaller .utils .win32 .versioninfo import decode
15- except ImportError :
16- # PyInstaller 5.8.0
17- from PyInstaller .utils .misc import decode
18-
1913
2014def update_flet_view_icon (exe_path , icon_path ):
2115 print ("Updating Flet View icon" , exe_path , icon_path )
@@ -59,7 +53,10 @@ def update_flet_view_version_info(
5953 print ("Updating Flet View version info" , exe_path )
6054
6155 # load versioninfo from exe
62- vs = decode (exe_path )
56+ if versioninfo .read_version_info_from_executable :
57+ vs = versioninfo .read_version_info_from_executable (exe_path )
58+ else :
59+ vs = versioninfo .decode (exe_path )
6360
6461 # update file version
6562 if file_version :
You can’t perform that action at this time.
0 commit comments