-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (32 loc) · 780 Bytes
/
setup.py
File metadata and controls
34 lines (32 loc) · 780 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
from setuptools import setup
APP = ['main.py']
DATA_FILES = [
'background.png',
'spaceship.png',
'player.png',
'alien.png',
'sad_alien.png',
'bullet.png',
'background.wav',
'laser.wav',
'explosion.wav'
]
OPTIONS = {
'argv_emulation': True,
'packages': ['pygame'],
'iconfile': 'spaceship.png', # This will be your app icon
'plist': {
'CFBundleName': 'MathSpaceShip',
'CFBundleDisplayName': 'MathSpaceShip',
'CFBundleIdentifier': 'com.mathspaceship.game',
'CFBundleVersion': '1.0.0',
'CFBundleShortVersionString': '1.0.0',
'LSMinimumSystemVersion': '10.10',
}
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)