42 lines
1001 B
Python
42 lines
1001 B
Python
import sys
|
|
import os
|
|
from cx_Freeze import setup, Executable
|
|
|
|
base = None
|
|
if sys.platform == "win32":
|
|
base = "Win32GUI" # 콘솔 창 OFF
|
|
|
|
packages = ["asyncio", "playwright"]
|
|
includes = []
|
|
include_files = [
|
|
("init_config.ini", "init_config.ini"),
|
|
(os.path.join("utils", "drivers"), os.path.join("utils", "drivers")) # 드라이버 폴더를 포함
|
|
]
|
|
|
|
# 빌드 옵션 정의
|
|
build_exe_options = {
|
|
"packages": packages,
|
|
"includes": includes,
|
|
"include_files": include_files,
|
|
"excludes": [],
|
|
}
|
|
|
|
# Executable 객체 정의
|
|
executables = [
|
|
Executable(
|
|
script="main.py", # 메인 스크립트
|
|
base=base,
|
|
target_name="ChangePercenty2.exe", # 생성될 실행 파일
|
|
icon="ChangePercenty2.ico", # 아이콘 파일 경로 추가
|
|
)
|
|
]
|
|
|
|
# setup 함수 호출
|
|
setup(
|
|
name="ChangePercenty2",
|
|
version="1.0",
|
|
description="Change Percenty's Market APIKEY",
|
|
options={"build_exe": build_exe_options},
|
|
executables=executables,
|
|
)
|