cx_Freeze 추가
This commit is contained in:
parent
0c6d1ef64d
commit
dcda2a4b54
1
delv.py
1
delv.py
|
|
@ -1239,6 +1239,7 @@ if __name__ == '__main__':
|
|||
minimize_console()
|
||||
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
app.setStyle('Fusion')
|
||||
logger = setup_logger('default_logger', 'delivery_calc.log', level=logging.DEBUG)
|
||||
ex = DeliveryFeeCalculator(logger)
|
||||
ex.show()
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -0,0 +1,26 @@
|
|||
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="Console", # Use "Win32GUI" for a GUI application on Windows
|
||||
target_name="Deliver_Calc",
|
||||
icon="delv.ico"
|
||||
)
|
||||
|
||||
# Setup configuration
|
||||
setup(
|
||||
name="Deliver_Calc",
|
||||
version="1.3",
|
||||
description="Delivery Calculation Tool",
|
||||
options={"build_exe": build_exe_options},
|
||||
executables=[target]
|
||||
)
|
||||
Loading…
Reference in New Issue