-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (31 loc) · 1.3 KB
/
Copy pathsetup.py
File metadata and controls
35 lines (31 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from cx_Freeze import setup, Executable
# Define executables
executables = [
Executable("migrate.py", target_name="migrate.exe", base="Console", shortcut_name="flyday migrate"),
Executable("info.py", target_name="info.exe", base="Console", shortcut_name="flyday info"),
Executable("repair.py", target_name="repair.exe", base="Console", shortcut_name="flyday repair"),
Executable("undo.py", target_name="undo.exe", base="Console", shortcut_name="flyday undo")
]
# Define package data to include
includefiles = [
('conf/projects.json','conf/projects.json'),
('conf/projects_tasks.json','conf/projects_tasks.json'),
('conf/config.json','conf/config.json'),
('csv/V20231114153243__DAY.csv','csv/V20231114153243__DAY.csv'),
('history/Schedule.csv','history/Schedule.csv'),
('project_module/ConfigManager.py', 'project_module/ConfigManager.py'),
('project_module/ProjectManager.py', 'project_module/ProjectManager.py')
]
setup(
name="flyday",
version="1.0",
description="Create tasks a day",
executables=executables,
options={
'build_exe': {
'include_files':includefiles,
# 'packages': ['ConfigManager'], # 包含 ConfigManager 模塊
'build_exe': 'dist/flyday/' # 指定构建输出的路径
}
}
)