CX_Freeze не устанавливать значок - PullRequest
0 голосов
/ 03 апреля 2020

Я не могу скомпилировать с Cx_freeze, когда я ставлю пункт "значок", ничего не происходит.

import sys
from cx_Freeze import setup, Executable

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

executables = [Executable(script ='RabbiGet.py',base=base, icon ='icone.ico')]
includefiles = ['icone.ico','Softplan.png','rabbit.png','saj.png','down.png']

setup(name='RabbiGet',
      version='1.0',
      description='RabbitMQ downs',
      author = "Patric Guisolffi",
      options = {'build_exe': {'include_files':includefiles,'packages': ["os","sys","ctypes","win32con"]}},
      executables=executables
      )'''

1 Ответ

0 голосов
/ 03 апреля 2020

Попробуй так:

include_files = ['Softplan.png','rabbit.png','saj.png','down.png']

options = {
    'build_exe': {
    'include_msvcr': True,
    'build_exe': 'name_exe',
    'include_files': include_files,
    }
}

setup(
    name="RabbiGet",
    version="1.0",
    author = "Patric Guisolffi",
    description='RabbitMQ downs',
    executables=executables,
    options=options,
)
...