Incorporate icon zipfile making into dist script
This commit is contained in:
@@ -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)
|
||||
|
||||
5
setup.py
5
setup.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user