-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
61 lines (51 loc) · 3.05 KB
/
setup.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import os
_author__ = 'Pablo'
import cx_Freeze
os.chdir("./too_many_cooks")
executables = [cx_Freeze.Executable("__init__.py", targetName='TooManyCooks.exe',
shortcutName='Too Many Cooks.lnk', shortcutDir='../')]
# NOTE: You may have to move the sprites in the newly created build folder
# From the root into a ./sprites/ folder. Sometimes it does this, sometimes it doesn't.
# You will also need to include freesansbold.ttf in the directory,
# or edit globals.py (line 102, myfont = ...) to a different font, and then include that
# cx_Freeze doesn't copy the pygame default fonts, for some reason
# At the time of writing, there is a bug in the python3.4 build of cx_Freeze from pip
# Use this instead:
# http://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_freeze
cx_Freeze.setup(
name="Too Many Cooks",
options={"build_exe": {"packages": ["pygame"],
"include_files": ["sprites/barrel.png",
"sprites/beef_patty.png",
"sprites/burger_bun.png",
"sprites/cheese.png",
"sprites/chicken.png",
"sprites/chopping_block.png",
"sprites/cook_down.png",
"sprites/cook_left.png",
"sprites/cook_right.png",
"sprites/cook_up.png",
"sprites/cooked_beef_patty.png",
"sprites/cooked_chicken.png",
"sprites/countertop.png",
"sprites/floor.png",
"sprites/freezer.png",
"sprites/fries.png",
"sprites/fryer.png",
"sprites/fridge.png",
"sprites/full_hands.png",
"sprites/grill.png",
"sprites/ingredient_list.png",
"sprites/no_ingredients.png",
"sprites/pantry.png",
"sprites/player_down.png",
"sprites/player_left.png",
"sprites/player_right.png",
"sprites/player_up.png",
"sprites/potato.png",
"sprites/stove.png",
"sprites/tomato.png",
"sprites/lettuce.png"
]}},
executables=executables
)