Add icon and setup.py file

This commit is contained in:
Sourabh Verma 2014-05-16 21:42:27 +05:30
parent 6b6bfb520e
commit 6ba1172b20
2 changed files with 36 additions and 0 deletions

BIN
flappy.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

36
setup.py Normal file
View File

@ -0,0 +1,36 @@
import os
import sys
from distutils.core import setup
import py2exe
origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
dlls = ("libfreetype-6.dll", "libogg-0.dll", "sdl_ttf.dll")
if os.path.basename(pathname).lower() in dlls:
return 0
return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL
sys.argv.append('py2exe')
setup(
name = 'Flappy Bird',
version = '1.0',
author = 'Sourabh Verma',
options = {
'py2exe': {
'bundle_files': 1, # doesn't work on win64
'compressed': True,
}
},
windows = [{
'script': "flappy.py",
'icon_resources': [
(1, 'flappy.ico')
]
}],
zipfile=None,
)