-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild_darwin.py
32 lines (28 loc) · 958 Bytes
/
build_darwin.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
from distutils.core import setup
import py2app, sys
try:
import wx
except ImportError:
print "wxPython is required to build AirBearsSupplicant."
sys.exit(-1)
if wx.VERSION[0:2] < (2, 9):
print "wxPython 2.9 or above is required."
sys.exit(-1)
# Needs a Cocoa check here
setup(
app = ['main.py'],
data_files = ['assets/tag.png'],
options = {
"py2app": {
"iconfile": "assets/tag.icns",
"plist": { # This really should be specified as a Info.plist... even an inline file as the Windows manifest would be fine...
"CFBundleShortVersionString": "0.0.1",
"CFBundleIdentifier": "org.warosu.AirBearsSupplicant",
"CFBundleDevelopmentRegion": "English",
"CFBundleExecutable": "AirBears Supplicant",
"CFBundleDisplayName": "AirBears Supplicant",
"LSUIElement": "1",
}
}
}
)