Incorporate icon zipfile making into dist script

This commit is contained in:
blitzmann
2015-09-24 12:27:29 -04:00
parent e9d02ce4c8
commit b1ebf8562a
2 changed files with 14 additions and 2 deletions

View File

@@ -184,11 +184,20 @@ if __name__ == "__main__":
zipdir(dir, library)
library.write('pyfa.py', 'pyfa__main__.py')
library.write('config.py')
os.chdir(oldcwd)
for dir in setup.include_files:
copyanything(dir, os.path.join(base, dir))
os.chdir(oldcwd)
# @todo: this is in win-wx3 for now, but it will have to be migrated to OS X release when wx3 is merged into master. This must be tested
imagesFile = os.path.join(base, "imgs.zip")
with zipfile.ZipFile(imagesFile, 'w') as images:
oldcwd = os.getcwd()
os.chdir(source)
for dir in setup.icon_dirs:
zipdir(dir, images)
os.chdir(oldcwd)
if options.zip:
archive = zipfile.ZipFile(tmpFile, 'w', compression=zipfile.ZIP_DEFLATED)

View File

@@ -6,7 +6,10 @@ Windows executable + installer: python setup.py bdist_msi
"""
packages = ['eos', 'gui', 'service', 'utils']
include_files = ['icons', 'staticdata', 'gpl.txt']
include_files = ['staticdata', 'gpl.txt']
# this is read by dist.py to package the icons
icon_dirs = ['gui', 'icons', 'renders']
includes = []
# collection.abc due to bug:
# https://bitbucket.org/anthony_tuininga/cx_freeze/issues/127/collectionssys-error