-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (27 loc) · 799 Bytes
/
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
### Used to compile main.py ###
# Not needed to run floppy bird without compiling #
from distutils.core import setup
import py2exe
import os
# Copy the file structure of assets
files = []
for (folderpath, foldernames, filenames) in os.walk("assets"):
if filenames != []:
temp = (folderpath, [])
for file in filenames:
temp[1].append(folderpath + "\\" + file)
files.append(temp)
setup(
options = {'py2exe': {'bundle_files': 1}},
name="Floppy Bird",
version='1.0',
author='samh366',
console=['main.py'],
zipfile = None,
data_files = files,
windows = [{
"script": "main.py",
"icon_resources": [(1, "assets/icons/icon_256.ico")],
"dest_base":"Floppy Bird",
}],
)