Skip to content

Commit

Permalink
Add icon and setup.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhv committed May 16, 2014
1 parent 6b6bfb5 commit 6ba1172
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Binary file added flappy.ico
Binary file not shown.
36 changes: 36 additions & 0 deletions setup.py
@@ -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,
)

0 comments on commit 6ba1172

Please sign in to comment.