mirror of
https://github.com/sourabhv/FlapPyBird.git
synced 2024-11-25 16:35:52 +08:00
Add icon and setup.py file
This commit is contained in:
parent
6b6bfb520e
commit
6ba1172b20
BIN
flappy.ico
Normal file
BIN
flappy.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
36
setup.py
Normal file
36
setup.py
Normal 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,
|
||||
)
|
Loading…
Reference in New Issue
Block a user