-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·52 lines (48 loc) · 1.33 KB
/
setup.py
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
#!/usr/bin/env python3
import sys
from cx_Freeze import setup, Executable
title = "Droppy"
ver = "1.2"
title_ver = f"{title}_{ver}"
# Dependencies are automatically detected, but it might need fine tuning.
# "packages": ["os"] is used as example only
options = {
"build_exe": {
# "collections","encodings","importlib","pygame"だけ残す
"excludes": [
"apport","apt","backports","certifi","cffi","chardet","cryptography","ctypes","curses",
"distutils","email","html","http","httplib2","idna","json","jwt","keyring","launchpadlib","lazr","logging",
"numpy","oauthlib","OpenGL","pkg_resources","pydoc_data","psutil","pytz","requests","setuptools","simplejson",
"tkinter","unittest","urllib","urllib3","wadllib","xml","xmlrpc"
],
"include_files": ["music", "res"],
},
"bdist_mac": {
"bundle_name": title,
"plist_items": [("CFBundleIdentifier", "com.github.na-trium-144.droppy")],
"iconfile": "AppIcon.icns",
},
"bdist_dmg": {
"volume_label": title_ver,
"applications_shortcut": True,
},
}
# base="Win32GUI" should be used only for Windows GUI app
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name=title,
version=ver,
description=title,
options=options,
executables=[
Executable(
script="main.py",
base=base,
target_name=title,
copyright="na-trium-144",
icon="res/icon.ico"
)
],
)