1
我似乎無法將我的圖標添加到可執行文件。我想也許我的256是太大了,所以我已經把它縮小到64,但這似乎不是問題。cx_freeze沒有應用我的圖標
也許我誤解了什麼圖標?我希望我的文件夾中的app.exe具有icon.ico圖片,而不是它具有以下內容: 。
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
executables = [
Executable('SectionAnalysisTool.py',
icon="icon64.ico",
base=base)
]
includefiles = ["icon.ico"]
setup(name='name',
version='0.0',
description='description',
author = "author",
options = {'build_exe': {'include_files':includefiles}},
executables=executables
)
我使用Windows 7,WinPython-64-3.4.4.5Qt5(我沒有建立,通過使用Qt應用程序),而且我在使用由WinPython提供的cx_Freeze。如果它很重要,我通過snagit
您是否有構建過程的任何輸出?您可以嘗試使用cx_Freeze.util.AddIcon(exeName,iconName)手動處理添加的圖標。 –