-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (36 loc) · 1.01 KB
/
setup.py
File metadata and controls
44 lines (36 loc) · 1.01 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
from setuptools import setup
from main import ONGAKU_VER, VER_STR, year
APP = ["main.py"]
DATA_FILES = []
OPTIONS = {
"iconfile": "images/AppIcon.icns",
"plist": {
"CFBundleName": "Ongaku",
"CFBundleShortVersionString": ONGAKU_VER,
"CFBundleGetInfoString": VER_STR,
"LSUIElement": True,
"CFBundleIdentifier": "dev.mi460.ongaku",
"NSHumanReadableCopyright": "Copyright © 2021-%s Delta Inc.\nAll rights reserved."
% year,
},
"packages": ["rumps"],
}
import os
def loopThrough(directory):
files = []
for file in os.listdir(directory):
cur = os.path.join(directory, file)
if os.path.isfile(cur):
files.append(cur)
elif os.path.isdir(cur):
loopThrough(cur)
DATA_FILES.append((directory, files))
loopThrough("images")
print("\n".join(list(map(str, DATA_FILES))))
setup(
app=APP,
data_files=DATA_FILES,
options={"py2app": OPTIONS},
setup_requires=["py2app"],
name="Ongaku",
)