forked from xfangfang/Macast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_py2app.py
37 lines (33 loc) · 929 Bytes
/
setup_py2app.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
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
import os
from setuptools import setup
APP = ['Macast.py']
DATA_FILES = ['i18n']
VERSION = "0.0.0"
with open('macast/.version', 'r') as f:
VERSION = f.read().strip()
OPTIONS = {
'argv_emulation': True,
'plist': {
'LSUIElement': True,
'NSHighResolutionCapable': True,
'LSMinimumSystemVersion': '10.15.0',
'CFBundleIdentifier': 'cn.xfangfang.Macast',
'NSHumanReadableCopyright': 'Copyright 2021 xfangfang and the Macast contributors.',
'CFBundleShortVersionString': str(VERSION),
'CFBundleVersion': str(VERSION),
},
'packages': ['rumps', 'macast', 'macast_renderer'],
'iconfile': os.path.abspath('macast/assets/icon.icns')
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
py_modules=[]
)