-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (34 loc) · 1.2 KB
/
setup.py
File metadata and controls
36 lines (34 loc) · 1.2 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
from setuptools import setup
APP = ['run.py']
DATA_FILES = [
('web/templates', ['web/templates/dashboard.html']),
('web/static', ['web/static/style.css', 'web/static/app.js']),
('.', ['categories.json']),
]
OPTIONS = {
'argv_emulation': False,
'plist': {
'CFBundleName': 'TimeTracker',
'CFBundleDisplayName': 'TimeTracker',
'CFBundleIdentifier': 'com.fournine.timetracker',
'CFBundleVersion': '1.0.0',
'CFBundleShortVersionString': '1.0.0',
'LSUIElement': True, # No dock icon
'NSAppleEventsUsageDescription': 'TimeTracker needs Apple Events access to read browser URLs for activity tracking.',
'NSScreenCaptureUsageDescription': 'TimeTracker captures window screenshots for activity review (blurred for privacy).',
},
'packages': ['tracker', 'web', 'flask', 'werkzeug', 'jinja2', 'markupsafe', 'click', 'blinker', 'itsdangerous'],
'includes': [
'AppKit', 'Foundation', 'Quartz', 'ApplicationServices',
'objc', 'sqlite3',
],
'frameworks': [],
'iconfile': None,
}
setup(
name='TimeTracker',
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)