mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
deploy-ng: Fix error when running bdist_apps
This commit is contained in:
parent
e827120e46
commit
6acbeb8176
@ -635,12 +635,14 @@ class bdist_apps(distutils.core.Command):
|
||||
build_dir = os.path.join(build_base, platform)
|
||||
base_dir = self.distribution.get_name()
|
||||
temp_dir = os.path.join(build_base, base_dir)
|
||||
archive_format = 'gztar' if platform.startswith('linux') else 'zip'
|
||||
archive_format = 'gztar' if 'linux' in platform else 'zip'
|
||||
basename = '{}_{}'.format(self.distribution.get_fullname(), platform)
|
||||
|
||||
if (os.path.exists(temp_dir)):
|
||||
shutil.rmtree(temp_dir)
|
||||
shutil.copy_tree(build_dir, temp_dir)
|
||||
shutil.copytree(build_dir, temp_dir)
|
||||
|
||||
self.announce('Building {} for platform: {}'.format(archive_format, platform), distutils.log.INFO)
|
||||
|
||||
distutils.archive_util.make_archive(basename, archive_format, root_dir=build_base, base_dir=base_dir)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user