add py2exe setup and update readme with latest build
This commit is contained in:
parent
79296d911a
commit
8fa1bba1e4
@ -25,3 +25,6 @@ Features added since the last commit of [Headshot's AO2XP](https://github.com/he
|
|||||||
- MIDI music support (needs a soundfount file named `gm.sf2` in the root AO2XP directory)
|
- MIDI music support (needs a soundfount file named `gm.sf2` in the root AO2XP directory)
|
||||||
- Module music support (MOD, XM, IT, S3M)
|
- Module music support (MOD, XM, IT, S3M)
|
||||||
- Unicode support everywhere
|
- Unicode support everywhere
|
||||||
|
|
||||||
|
## Download pre-built
|
||||||
|
You may find the most recent pre-compiled build of AO2XP for Windows [on my site](https://cidoku.net/files/software/AO2XP-Windows.zip).
|
54
setup.py
Normal file
54
setup.py
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
from distutils.core import setup
|
||||||
|
import py2exe
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
import glob
|
||||||
|
import certifi
|
||||||
|
|
||||||
|
sys.argv.append('py2exe')
|
||||||
|
|
||||||
|
data_files = [
|
||||||
|
( '', ['bass.dll', 'bassflac.dll', 'bassmidi.dll', 'bassopus.dll', "mod_call.wav", "word_call.wav", "placeholder.png", "AO2XP.ico", "AO2XP_console.ico"]),
|
||||||
|
('certifi', [certifi.where()]),
|
||||||
|
('imageformats',[
|
||||||
|
'C:\\Python27/Lib/site-packages/PyQt4/plugins/imageformats/qgif4.dll',
|
||||||
|
'C:\\Python27/Lib/site-packages/PyQt4/plugins/imageformats/qico4.dll'
|
||||||
|
])
|
||||||
|
]
|
||||||
|
|
||||||
|
includes = [
|
||||||
|
'sip',
|
||||||
|
'PyQt4.QtCore', 'PyQt4.QtGui',
|
||||||
|
'requests', 'urllib3',
|
||||||
|
'chardet', 'idna', 'certifi',
|
||||||
|
'email', 'email.errors', 'email.message', 'email.utils',
|
||||||
|
]
|
||||||
|
|
||||||
|
packages = []
|
||||||
|
excludes = ['Tkinter', 'doctest', 'unittest', 'pdb', 'bz2']
|
||||||
|
|
||||||
|
setup(
|
||||||
|
windows=[{
|
||||||
|
'script': "AO2XP.py",
|
||||||
|
'icon_resources': [(1, "AO2XP.ico")],
|
||||||
|
'target_name': "AO2XP.exe"
|
||||||
|
}],
|
||||||
|
# console=[{
|
||||||
|
# 'script': "AO2XP.py",
|
||||||
|
# 'icon_resources': [(1, "AO2XP_console.ico")],
|
||||||
|
# 'target_name': "AO2XP_console.exe"
|
||||||
|
# }],
|
||||||
|
options={
|
||||||
|
'py2exe': {
|
||||||
|
'includes': includes,
|
||||||
|
'excludes': excludes,
|
||||||
|
'packages': packages,
|
||||||
|
'compressed': True,
|
||||||
|
'optimize': 2,
|
||||||
|
'bundle_files': 3,
|
||||||
|
'dll_excludes': ['MSVCP90.dll'],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data_files=data_files,
|
||||||
|
zipfile=None,
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user