-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (31 loc) · 1014 Bytes
/
setup.py
File metadata and controls
38 lines (31 loc) · 1014 Bytes
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
"""py2app build configuration for Codex Switcher.
Build:
python3 setup.py py2app
The resulting .app will be in dist/Codex Switcher.app
"""
from setuptools import setup
from codex_switcher import __version__
APP = ["main.py"]
OPTIONS = {
"argv_emulation": False,
"iconfile": "resources/icon.icns",
"plist": {
"CFBundleName": "Codex Switcher",
"CFBundleDisplayName": "Codex Switcher",
"CFBundleIdentifier": "com.gitbiao.codex-switcher",
"CFBundleVersion": __version__,
"CFBundleShortVersionString": __version__,
"LSUIElement": True,
"NSHighResolutionCapable": True,
"NSHumanReadableCopyright": "Copyright © 2025 GitBiao. All rights reserved.",
},
"packages": ["codex_switcher"],
"includes": ["rumps", "tomlkit", "webview", "bottle", "proxy_tools"],
"resources": ["codex_switcher/switcher_config.json"],
}
setup(
name="Codex Switcher",
version=__version__,
app=APP,
options={"py2app": OPTIONS},
)