diff --git a/tools/make_distrib.py b/tools/make_distrib.py index db18a63c0..3ba16e2c4 100644 --- a/tools/make_distrib.py +++ b/tools/make_distrib.py @@ -454,7 +454,7 @@ if platform == 'windows': if mode == 'standard': # transfer Debug files build_dir = os.path.join(out_dir, 'Debug' + build_dir_suffix); - if not options.allowpartial or path_exists(os.path.join(build_dir, 'cefclient.exe')): + if not options.allowpartial or path_exists(os.path.join(build_dir, 'libcef.dll')): valid_build_dir = build_dir dst_dir = os.path.join(output_dir, 'Debug') make_dir(dst_dir, options.quiet) @@ -475,7 +475,7 @@ if platform == 'windows': # transfer Release files build_dir = os.path.join(out_dir, 'Release' + build_dir_suffix); - if not options.allowpartial or path_exists(os.path.join(build_dir, 'cefclient.exe')): + if not options.allowpartial or path_exists(os.path.join(build_dir, 'libcef.dll')): valid_build_dir = build_dir dst_dir = os.path.join(output_dir, 'Release') make_dir(dst_dir, options.quiet) @@ -624,12 +624,13 @@ elif platform == 'linux': if mode == 'standard': # transfer Debug files build_dir = os.path.join(out_dir, 'Debug'); - if not options.allowpartial or path_exists(os.path.join(build_dir, 'cefclient')): + libcef_path = os.path.join(build_dir, lib_dir_name, 'libcef.so') + if not options.allowpartial or path_exists(libcef_path): valid_build_dir = build_dir dst_dir = os.path.join(output_dir, 'Debug') make_dir(dst_dir, options.quiet) copy_file(os.path.join(build_dir, 'chrome_sandbox'), os.path.join(dst_dir, 'chrome-sandbox'), options.quiet) - copy_file(os.path.join(build_dir, lib_dir_name, 'libcef.so'), dst_dir, options.quiet) + copy_file(libcef_path, dst_dir, options.quiet) copy_file(os.path.join(build_dir, 'natives_blob.bin'), dst_dir, options.quiet) copy_file(os.path.join(build_dir, 'snapshot_blob.bin'), dst_dir, options.quiet) else: @@ -637,7 +638,8 @@ elif platform == 'linux': # transfer Release files build_dir = os.path.join(out_dir, 'Release'); - if not options.allowpartial or path_exists(os.path.join(build_dir, 'cefclient')): + libcef_path = os.path.join(build_dir, lib_dir_name, 'libcef.so') + if not options.allowpartial or path_exists(libcef_path): valid_build_dir = build_dir dst_dir = os.path.join(output_dir, 'Release') make_dir(dst_dir, options.quiet) @@ -645,10 +647,10 @@ elif platform == 'linux': if mode == 'client': lib_dst_dir = os.path.join(dst_dir, lib_dir_name) make_dir(lib_dst_dir, options.quiet) - copy_file(os.path.join(build_dir, lib_dir_name, 'libcef.so'), lib_dst_dir, options.quiet) + copy_file(libcef_path, lib_dst_dir, options.quiet) copy_file(os.path.join(build_dir, 'cefclient'), dst_dir, options.quiet) else: - copy_file(os.path.join(build_dir, lib_dir_name, 'libcef.so'), dst_dir, options.quiet) + copy_file(libcef_path, dst_dir, options.quiet) copy_file(os.path.join(build_dir, 'chrome_sandbox'), os.path.join(dst_dir, 'chrome-sandbox'), options.quiet) copy_file(os.path.join(build_dir, 'natives_blob.bin'), dst_dir, options.quiet) copy_file(os.path.join(build_dir, 'snapshot_blob.bin'), dst_dir, options.quiet)