It seems that shutil.make_archive doesn't support symbol links, invoke the zip command instead.
This commit is contained in:
Родитель
836f29add6
Коммит
de8d713630
|
@ -3,6 +3,7 @@
|
||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
|
@ -27,8 +28,11 @@ def create_zip():
|
||||||
print "Zipping distribution..."
|
print "Zipping distribution..."
|
||||||
zip_file = os.path.join(SOURCE_ROOT, 'atom-shell.zip')
|
zip_file = os.path.join(SOURCE_ROOT, 'atom-shell.zip')
|
||||||
safe_unlink(zip_file)
|
safe_unlink(zip_file)
|
||||||
shutil.make_archive(os.path.splitext(zip_file)[0], 'zip',
|
|
||||||
root_dir=DIST_DIR)
|
cwd = os.getcwd()
|
||||||
|
os.chdir(DIST_DIR)
|
||||||
|
subprocess.check_call(['zip', '-r', '-y', zip_file, 'Atom.app'])
|
||||||
|
os.chdir(cwd)
|
||||||
|
|
||||||
|
|
||||||
def rm_rf(path):
|
def rm_rf(path):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче