-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.py
More file actions
37 lines (31 loc) · 1.63 KB
/
publish.py
File metadata and controls
37 lines (31 loc) · 1.63 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
37
from distutils.core import setup
import py2exe
import glob
opts = {
"py2exe": {
# if you import .py files from subfolders of your project, then those are
# submodules. You'll want to declare those in the "includes"
'includes': [],
}
}
setup(
# this is the file that is run when you start the game from the command line.
windows=['main.py'],
# options as defined above
options=opts,
# data files - these are the non-python files, like images and sounds
# the glob module comes in handy here.
data_files=[
(r"assets\fonts\Press_Start_2P", glob.glob(r"assets\fonts\Press_Start_2P\*")),
(r"assets\sprites\Oryx-SciFi", glob.glob(r"assets\sprites\Oryx-SciFi\*.png")),
(r"assets\sprites\Futuristic Cards\Futuristic Card Template - Alpha\Sliced\Regular Size", glob.glob(r"assets\sprites\Futuristic Cards\Futuristic Card Template - Alpha\Sliced\Regular Size\*")),
(r"assets\sprites\Futuristic Cards\Futuristic Card Template - Delta\Sliced\Regular Size", glob.glob(r"assets\sprites\Futuristic Cards\Futuristic Card Template - Delta\Sliced\Regular Size\*")),
(r"assets\sprites\Futuristic Cards\Futuristic Card Template - Epsilon\Sliced\Regular Size", glob.glob(r"assets\sprites\Futuristic Cards\Futuristic Card Template - Epsilon\Sliced\Regular Size\*")),
(r"data", glob.glob("data\cards.json")),
(r"maps", glob.glob(r"maps\*")),
],
# this will pack up a zipfile instead of having a glut of files sitting
# in a folder.
zipfile="lib/shared.zip"
)
# C:\Users\me\Projects\games\pygame\everything-is-broken\assets