pyinstaller常用參數
pyinstaller常用參數 -w 不顯示控制台 -D 單一目錄 -F 單一檔案。但啟動速度超級慢(約5秒)。有查到補上 --noupx會正常,實測後仍要5秒多才能正常啟動。目前似乎是無解…可惜啊>< –icon=圖標路徑 –version-file=file_version_info.txt。執行檔右鍵詳細資料的明細內容 組合以後指令如下 pyinstaller -w -D --icon=icon.ico --version-file=file_version_info.txt main.py 其中file_version_info.txt的內容格式 可以由pyinstaller提供的grab_version.py可以取得 所以使用之版本:Python 3.6.5,pyinstaller 3.3.1 為截至po文時的最新版本 # UTF-8 # # For more details about fixed file info 'ffi' see: # http://msdn.microsoft.com/en-us/library/ms646997.aspx VSVersionInfo( ffi=FixedFileInfo( # filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4) # Set not needed items to zero 0. filevers=(1, 1, 0, 0), prodvers=(1, 1, 0, 0), # Contains a bitmask that specifies the valid bits 'flags'r mask=0x0, # Contains a bitmask that specifies the Boolean attributes of the file. flags=0x0, # The operating system for which this file was designed. # 0x4 - NT and...