linux: Fix create-dist.

This commit is contained in:
Cheng Zhao 2014-02-24 13:29:06 +08:00
parent 90cc1a7062
commit 7a8e43c65e

View file

@ -39,6 +39,11 @@ TARGET_BINARIES = {
'icudt.dll', 'icudt.dll',
'libGLESv2.dll', 'libGLESv2.dll',
], ],
'linux': [
'atom',
'libchromiumcontent.so',
'libffmpegsumo.so',
],
} }
TARGET_DIRECTORIES = { TARGET_DIRECTORIES = {
'darwin': [ 'darwin': [
@ -47,6 +52,9 @@ TARGET_DIRECTORIES = {
'win32': [ 'win32': [
'resources', 'resources',
], ],
'linux': [
'resources',
],
} }
HEADERS_SUFFIX = [ HEADERS_SUFFIX = [
@ -74,6 +82,7 @@ def main():
args = parse_args() args = parse_args()
force_build() force_build()
if sys.platform != 'linux2':
download_libchromiumcontent_symbols(args.url) download_libchromiumcontent_symbols(args.url)
create_symbols() create_symbols()
copy_binaries() copy_binaries()
@ -151,7 +160,7 @@ def create_version():
def download_libchromiumcontent_symbols(url): def download_libchromiumcontent_symbols(url):
if sys.platform == 'darwin': if sys.platform == 'darwin':
symbols_name = 'libchromiumcontent.dylib.dSYM' symbols_name = 'libchromiumcontent.dylib.dSYM'
else: elif sys.platform == 'win32':
symbols_name = 'chromiumcontent.dll.pdb' symbols_name = 'chromiumcontent.dll.pdb'
brightray_dir = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor') brightray_dir = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor')
@ -196,6 +205,8 @@ def create_symbols_zip():
with scoped_cwd(DIST_DIR): with scoped_cwd(DIST_DIR):
files = ['LICENSE', 'version'] files = ['LICENSE', 'version']
dirs = ['Atom-Shell.breakpad.syms'] dirs = ['Atom-Shell.breakpad.syms']
if sys.platform == 'linux2':
dirs = []
make_zip(zip_file, files, dirs) make_zip(zip_file, files, dirs)