27 lines
580 B
Python
27 lines
580 B
Python
from cx_Freeze import setup, Executable
|
|
|
|
# Additional build options
|
|
build_exe_options = {
|
|
"packages": [],
|
|
"excludes": [],
|
|
"include_files": ["delv.ico", "delv.xlsx"],
|
|
"optimize": 0
|
|
}
|
|
|
|
# Target executable
|
|
target = Executable(
|
|
script="delv.py",
|
|
base="Win32GUI", # Use "Win32GUI" for a GUI application on Windows
|
|
target_name="Deliver_Calc",
|
|
icon="delv.ico"
|
|
)
|
|
|
|
# Setup configuration
|
|
setup(
|
|
name="Deliver_Calc",
|
|
version="1.4",
|
|
description="Delivery Calculation Tool",
|
|
options={"build_exe": build_exe_options},
|
|
executables=[target]
|
|
)
|