-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
74 lines (63 loc) · 2.08 KB
/
Copy pathsetup.py
File metadata and controls
74 lines (63 loc) · 2.08 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from cx_Freeze import setup, Executable
import sys
name = "ITL Bookmark"
version = "1.1.0"
description = "The app that it's efficient work for the url user manage"
author = "Ruri Shibata and Ren Murayama"
url = "https://github.com/shibainu1986/Bookmark"
# UUIDは一度決めたら変更しない
upgrade_code = "{7A37B0C0-64E1-479D-A64C-6CCFCB2E1149}"
# ----------------------------------------------------------------
# セットアップ
# ----------------------------------------------------------------
shortcut_table = [
('DesktopShortcut', # Shortcut
'DesktopFolder', # Directory_
"ITL Bookmark", # Name
'TARGETDIR', # Component_
'[TARGETDIR]ITL Bookmark.exe', # Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR', # WkDir
)
]
# Table dictionary
msi_data = {'Shortcut': shortcut_table}
# 追加モジュールで必要なものを packages に入れる
build_exe_options = {'packages': ["asyncio"],
'excludes': [
],
'includes': [],
'include_files': [".venv/", "icons/", "backend/", "frontend/"]
}
bdist_msi_options = {'upgrade_code': upgrade_code,
'add_to_path': False,
'data': msi_data
}
options = {
'build_exe': build_exe_options,
'bdist_msi': bdist_msi_options
}
# CUI : None
# base = None
base = 'Win32GUI' if sys.platform == 'win32' else None
icon = "icons/icon.ico"
# exe にしたい python ファイルを指定
exe = Executable(script="main.py",
targetName="ITL Bookmark.exe",
base=base,
icon=icon
)
# セットアップ
setup(name=name,
version=version,
author=author,
url=url,
description=description,
options=options,
executables=[exe]
)