CODE
Matheus Conceição
Posted on October 22, 2024
`import sys
from cx_Freeze import setup, Executable
Defina o base conforme o sistema operacional
base = None
if sys.platform == "win32":
base = "Win32GUI"
Lista de executáveis
executables = [
Executable("main.py", base=base, icon="icone.ico") # Verifique se o caminho para o ícone está correto
]
Opções de build
buildOptions = dict(
packages=[],
includes=[],
include_files=["imagem.png", "icone.ico"], # Incluindo a imagem e o ícone no build
excludes=[]
)
Setup para o cx_Freeze
setup(
name="Leitor CPFL",
version="0.30",
description="Leitor de Faturas CPFL",
options=dict(build_exe=buildOptions),
executables=executables
)
`
💖 💪 🙅 🚩
Matheus Conceição
Posted on October 22, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.