def create_chrome_binary_zip(binary, version):
    file_suffix = ''
    create_native_mksnapshot = False
    if binary == 'mksnapshot':
        arch = get_target_arch()
        if arch.startswith('arm'):
            # if the arch is arm/arm64 the mksnapshot executable is an x64 binary,
            # so name it as such.
            file_suffix = 'x64'
            create_native_mksnapshot = True
    dist_name = get_zip_name(binary, version, file_suffix)
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

    files = ['LICENSE', 'LICENSES.chromium.html']
    if PLATFORM == 'win32':
        files += [binary + '.exe']
    else:
        files += [binary]

    with scoped_cwd(DIST_DIR):
        make_zip(zip_file, files, [])

    if create_native_mksnapshot == True:
        # Create a zip with the native version of the mksnapshot binary.
        src = os.path.join(NATIVE_MKSNAPSHOT_DIR, binary)
        dest = os.path.join(DIST_DIR, binary)
        # Copy file and keep the executable bit.
        shutil.copyfile(src, dest)
        os.chmod(dest, os.stat(dest).st_mode | stat.S_IEXEC)

        dist_name = get_zip_name(binary, version)
        zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)
        with scoped_cwd(DIST_DIR):
            make_zip(zip_file, files, [])
Beispiel #2
0
def create_chrome_binary_zip(binary, version):
  file_suffix = ''
  create_native_mksnapshot = False
  if binary == 'mksnapshot':
    arch = get_target_arch()
    if arch.startswith('arm'):
      # if the arch is arm/arm64 the mksnapshot executable is an x64 binary,
      # so name it as such.
      file_suffix = 'x64'
      create_native_mksnapshot = True
  dist_name = get_zip_name(binary, version, file_suffix)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  files = ['LICENSE', 'LICENSES.chromium.html']
  if PLATFORM == 'win32':
    files += [binary + '.exe']
  else:
    files += [binary]

  with scoped_cwd(DIST_DIR):
    make_zip(zip_file, files, [])

  if create_native_mksnapshot == True:
    # Create a zip with the native version of the mksnapshot binary.
    src = os.path.join(NATIVE_MKSNAPSHOT_DIR, binary)
    dest = os.path.join(DIST_DIR, binary)
    # Copy file and keep the executable bit.
    shutil.copyfile(src, dest)
    os.chmod(dest, os.stat(dest).st_mode | stat.S_IEXEC)

    dist_name = get_zip_name(binary, version)
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)
    with scoped_cwd(DIST_DIR):
      make_zip(zip_file, files, [])
def main():
    parser = optparse.OptionParser()

    parser.add_option('--inputs',
                      help='GN format list of files to archive.')
    parser.add_option('--dir-inputs',
                      help='GN format list of files to archive.')
    parser.add_option('--output', help='Path to output archive.')
    parser.add_option('--base-dir',
                      help='If provided, the paths in the archive will be '
                      'relative to this directory', default='.')

    options, _ = parser.parse_args()

    inputs = []
    if (options.inputs):
        parser = gn_helpers.GNValueParser(options.inputs)
        inputs = parser.ParseList()

    dir_inputs = []
    if options.dir_inputs:
        parser = gn_helpers.GNValueParser(options.dir_inputs)
        dir_inputs = parser.ParseList()

    output = options.output
    base_dir = options.base_dir

    with scoped_cwd(base_dir):
        make_zip(output, inputs, dir_inputs)
Beispiel #4
0
def create_symbols_zip():
    dist_name = "atom-shell-{0}-{1}-{2}-symbols.zip".format(ATOM_SHELL_VERSION, TARGET_PLATFORM, DIST_ARCH)
    zip_file = os.path.join(SOURCE_ROOT, "dist", dist_name)

    with scoped_cwd(DIST_DIR):
        files = ["LICENSE", "version"]
        dirs = ["Atom-Shell.breakpad.syms"]
        make_zip(zip_file, files, dirs)
Beispiel #5
0
def create_dist_zip():
    dist_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION)
    zip_file = os.path.join(SOURCE_ROOT, "dist", dist_name)

    with scoped_cwd(DIST_DIR):
        files = TARGET_BINARIES[PLATFORM] + ["LICENSE", "LICENSES.chromium.html", "version"]
        dirs = TARGET_DIRECTORIES[PLATFORM]
        make_zip(zip_file, files, dirs)
Beispiel #6
0
def create_dist_zip():
    dist_name = "{0}-{1}-{2}-{3}.zip".format(PROJECT_NAME, ATOM_SHELL_VERSION, get_platform_key(), get_target_arch())
    zip_file = os.path.join(SOURCE_ROOT, "dist", dist_name)

    with scoped_cwd(DIST_DIR):
        files = TARGET_BINARIES[PLATFORM] + ["LICENSE", "LICENSES.chromium.html", "version"]
        dirs = TARGET_DIRECTORIES[PLATFORM]
        make_zip(zip_file, files, dirs)
def create_dist_zip():
    dist_name = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VERSION,
                                                TARGET_PLATFORM)
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

    with scoped_cwd(DIST_DIR):
        files = TARGET_BINARIES[TARGET_PLATFORM] + ['LICENSE', 'version']
        dirs = TARGET_DIRECTORIES[TARGET_PLATFORM]
        make_zip(zip_file, files, dirs)
Beispiel #8
0
def create_dist_zip():
  dist_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = TARGET_BINARIES[PLATFORM] +  ['LICENSE', 'LICENSES.chromium.html',
                                          'version']
    dirs = TARGET_DIRECTORIES[PLATFORM]
    make_zip(zip_file, files, dirs)
Beispiel #9
0
def create_dist_zip():
  dist_name = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VRESION,
                                              TARGET_PLATFORM)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = TARGET_BINARIES[TARGET_PLATFORM] +  ['LICENSE', 'version']
    dirs = TARGET_DIRECTORIES[TARGET_PLATFORM]
    make_zip(zip_file, files, dirs)
Beispiel #10
0
def create_symbols_zip():
  dist_name = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VERSION,
                                                      TARGET_PLATFORM)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = ['LICENSE', 'version']
    dirs = ['Atom-Shell.breakpad.syms']
    make_zip(zip_file, files, dirs)
Beispiel #11
0
def create_symbols_zip():
    dist_name = 'atom-shell-{0}-{1}-{2}-symbols.zip'.format(
        ATOM_SHELL_VERSION, PLATFORM, get_target_arch())
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

    with scoped_cwd(DIST_DIR):
        files = ['LICENSE', 'version']
        dirs = ['Atom-Shell.breakpad.syms']
        make_zip(zip_file, files, dirs)
Beispiel #12
0
def create_dist_zip():
    dist_name = "atom-shell-{0}-{1}-{2}.zip".format(ATOM_SHELL_VERSION, TARGET_PLATFORM, DIST_ARCH)
    zip_file = os.path.join(SOURCE_ROOT, "dist", dist_name)

    with scoped_cwd(DIST_DIR):
        files = TARGET_BINARIES[TARGET_PLATFORM] + ["LICENSE", "version"]
        if TARGET_PLATFORM == "linux":
            files += SYSTEM_LIBRARIES
        dirs = TARGET_DIRECTORIES[TARGET_PLATFORM]
        make_zip(zip_file, files, dirs)
Beispiel #13
0
def create_dist_zip():
  dist_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = TARGET_BINARIES[PLATFORM] + TARGET_BINARIES_EXT + ['LICENSE',
            'LICENSES.chromium.html', 'version']
    if PLATFORM != 'darwin' and PDF_VIEWER_ENABLED:
      files += ['pdf_viewer_resources.pak']
    dirs = TARGET_DIRECTORIES[PLATFORM]
    make_zip(zip_file, files, dirs)
def create_symbols_zip():
    dist_name = '{0}-{1}-{2}-{3}-symbols.zip'.format(PROJECT_NAME,
                                                     ATOM_SHELL_VERSION,
                                                     get_platform_key(),
                                                     get_target_arch())
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

    with scoped_cwd(DIST_DIR):
        files = ['LICENSE', 'version']
        dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
        make_zip(zip_file, files, dirs)
Beispiel #15
0
def create_dist_zip():
  dist_name = '{0}-{1}-{2}-{3}.zip'.format(PROJECT_NAME, ELECTRON_VERSION,
                                           get_platform_key(),
                                           get_target_arch())
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = TARGET_BINARIES[PLATFORM] +  ['LICENSE', 'LICENSES.chromium.html',
                                          'version']
    dirs = TARGET_DIRECTORIES[PLATFORM]
    make_zip(zip_file, files, dirs)
Beispiel #16
0
def create_chrome_binary_zip(binary, version):
    dist_name = "{0}-{1}-{2}-{3}.zip".format(binary, version, get_platform_key(), get_target_arch())
    zip_file = os.path.join(SOURCE_ROOT, "dist", dist_name)

    with scoped_cwd(DIST_DIR):
        files = ["LICENSE", "LICENSES.chromium.html"]
        if PLATFORM == "win32":
            files += [binary + ".exe"]
        else:
            files += [binary]
        make_zip(zip_file, files, [])
Beispiel #17
0
def create_dist_zip():
  dist_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = TARGET_BINARIES[PLATFORM] + TARGET_BINARIES_EXT + ['LICENSE',
            'LICENSES.chromium.html', 'version']
    if PLATFORM != 'darwin' and PDF_VIEWER_ENABLED:
      files += ['pdf_viewer_resources.pak']
    dirs = TARGET_DIRECTORIES[PLATFORM]
    make_zip(zip_file, files, dirs)
Beispiel #18
0
def create_chrome_binary_zip(binary, version):
    dist_name = get_zip_name(binary, version)
    zip_file = os.path.join(SOURCE_ROOT, "dist", dist_name)

    with scoped_cwd(DIST_DIR):
        files = ["LICENSE", "LICENSES.chromium.html"]
        if PLATFORM == "win32":
            files += [binary + ".exe"]
        else:
            files += [binary]
        make_zip(zip_file, files, [])
def create_symbols_zip():
  dist_name = '{0}-{1}-{2}-{3}-symbols.zip'.format(PROJECT_NAME,
                                                   ATOM_SHELL_VERSION,
                                                   PLATFORM,
                                                   get_target_arch())
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = ['LICENSE', 'version']
    dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
    make_zip(zip_file, files, dirs)
Beispiel #20
0
def create_chrome_binary_zip(binary, version):
    dist_name = get_zip_name(binary, version)
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

    with scoped_cwd(DIST_DIR):
        files = ['LICENSE', 'LICENSES.chromium.html']
        if PLATFORM == 'win32':
            files += [binary + '.exe']
        else:
            files += [binary]
        make_zip(zip_file, files, [])
Beispiel #21
0
def create_chrome_binary_zip(binary, version):
  dist_name = get_zip_name(binary, version)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = ['LICENSE', 'LICENSES.chromium.html']
    if PLATFORM == 'win32':
      files += [binary + '.exe']
    else:
      files += [binary]
    make_zip(zip_file, files, [])
Beispiel #22
0
def create_dist_zip():
  dist_name = 'mongoscope-{0}-{1}-{2}.zip'.format(ATOM_SHELL_VERSION,
                                                  TARGET_PLATFORM, DIST_ARCH)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = TARGET_BINARIES[TARGET_PLATFORM] +  ['LICENSE', 'version']
    if TARGET_PLATFORM == 'linux':
      files += SYSTEM_LIBRARIES
    dirs = TARGET_DIRECTORIES[TARGET_PLATFORM]
    make_zip(zip_file, files, dirs)
Beispiel #23
0
def create_dist_zip():
    dist_name = 'atom-shell-{0}-{1}-{2}.zip'.format(ATOM_SHELL_VERSION,
                                                    TARGET_PLATFORM, DIST_ARCH)
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

    with scoped_cwd(DIST_DIR):
        files = TARGET_BINARIES[TARGET_PLATFORM] + ['LICENSE', 'version']
        if TARGET_PLATFORM == 'linux':
            files += [lib for lib in SYSTEM_LIBRARIES if os.path.exists(lib)]
        dirs = TARGET_DIRECTORIES[TARGET_PLATFORM]
        make_zip(zip_file, files, dirs)
Beispiel #24
0
def create_dist_zip():
    dist_name = '{0}-{1}-{2}-{3}.zip'.format(PROJECT_NAME, ATOM_SHELL_VERSION,
                                             PLATFORM, get_target_arch())
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

    with scoped_cwd(DIST_DIR):
        files = TARGET_BINARIES[PLATFORM] + ['LICENSE', 'version']
        if PLATFORM == 'linux':
            files += [lib for lib in SYSTEM_LIBRARIES if os.path.exists(lib)]
        dirs = TARGET_DIRECTORIES[PLATFORM]
        make_zip(zip_file, files, dirs)
def create_dist_zip():
  dist_name = '{0}-{1}-{2}-{3}.zip'.format(PROJECT_NAME, ATOM_SHELL_VERSION,
                                           PLATFORM, get_target_arch())
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = TARGET_BINARIES[PLATFORM] +  ['LICENSE', 'version']
    if PLATFORM == 'linux':
      files += [lib for lib in SYSTEM_LIBRARIES if os.path.exists(lib)]
    dirs = TARGET_DIRECTORIES[PLATFORM]
    make_zip(zip_file, files, dirs)
Beispiel #26
0
def create_dist_zip():
  dist_name = '{0}-{1}-{2}-{3}.zip'.format(PROJECT_NAME, ELECTRON_VERSION,
                                           get_platform_key(),
                                           get_target_arch())
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = TARGET_BINARIES[PLATFORM] +  ['LICENSE', 'LICENSES.chromium.html',
                                          'version']
    dirs = TARGET_DIRECTORIES[PLATFORM]
    make_zip(zip_file, files, dirs)
Beispiel #27
0
def create_chrome_binary_zip(binary, version):
  dist_name = '{0}-{1}-{2}-{3}.zip'.format(binary, version, get_platform_key(),
                                           get_target_arch())
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = ['LICENSE', 'LICENSES.chromium.html']
    if PLATFORM == 'win32':
      files += [binary + '.exe']
    else:
      files += [binary]
    make_zip(zip_file, files, [])
def create_chromedriver_zip():
  dist_name = 'chromedriver-{0}-{1}-{2}.zip'.format(ATOM_SHELL_VERSION,
                                                    TARGET_PLATFORM, DIST_ARCH)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = ['LICENSE']
    if TARGET_PLATFORM == 'win32':
      files += ['chromedriver.exe']
    else:
      files += ['chromedriver']
    make_zip(zip_file, files, [])
Beispiel #29
0
def create_chromedriver_zip():
    dist_name = 'chromedriver-{0}-{1}-{2}.zip'.format(
        get_chromedriver_version(), PLATFORM, get_target_arch())
    zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

    with scoped_cwd(DIST_DIR):
        files = ['LICENSE']
        if PLATFORM == 'win32':
            files += ['chromedriver.exe']
        else:
            files += ['chromedriver']
        make_zip(zip_file, files, [])
Beispiel #30
0
def create_chromedriver_zip():
  dist_name = 'chromedriver-{0}-{1}-{2}.zip'.format(get_chromedriver_version(),
                                                    TARGET_PLATFORM, DIST_ARCH)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  with scoped_cwd(DIST_DIR):
    files = ['LICENSE']
    if TARGET_PLATFORM == 'win32':
      files += ['chromedriver.exe']
    else:
      files += ['chromedriver']
    make_zip(zip_file, files, [])
Beispiel #31
0
def create_ffmpeg_zip():
  dist_name = 'ffmpeg-{0}-{1}-{2}.zip'.format(
      ATOM_SHELL_VERSION, get_platform_key(), get_target_arch())
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  if PLATFORM == 'darwin':
    ffmpeg_name = 'libffmpeg.dylib'
  elif PLATFORM == 'linux':
    ffmpeg_name = 'libffmpeg.so'
  elif PLATFORM == 'win32':
    ffmpeg_name = 'ffmpeg.dll'

  shutil.copy2(os.path.join(CHROMIUM_DIR, '..', 'ffmpeg', ffmpeg_name),
               DIST_DIR)
  with scoped_cwd(DIST_DIR):
    make_zip(zip_file, [ffmpeg_name, 'LICENSE', 'LICENSES.chromium.html'], [])
Beispiel #32
0
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('--output', help='Path to output archive.')
    parser.add_argument('--input', help='Path to input archive.')
    parser.add_argument('--target_dir',
                        help='If provided, the paths in the archive will be '
                        'relative to this directory',
                        default='.')
    args = parser.parse_args()

    temp_dir = tempdir('brave_archive')
    lzma_exec = GetLZMAExec()
    cmd = [lzma_exec, 'x', args.input, '-y', '-o' + temp_dir]
    subprocess.check_call(cmd, stdout=subprocess.PIPE, shell=False)
    with scoped_cwd(os.path.join(temp_dir, args.target_dir)):
        make_zip(args.output, [], ['.'])
Beispiel #33
0
def main():
    print('Zipping Symbols')
    if get_target_arch() == 'mips64el':
        return

    args = parse_args()
    dist_name = 'symbols.zip'
    zip_file = os.path.join(args.build_dir, dist_name)
    licenses = ['LICENSE', 'LICENSES.chromium.html', 'version']

    with scoped_cwd(args.build_dir):
        dirs = ['breakpad_symbols']
        print('Making symbol zip: ' + zip_file)
        make_zip(zip_file, licenses, dirs)

    if PLATFORM == 'darwin':
        dsym_name = 'dsym.zip'
        with scoped_cwd(args.build_dir):
            dsyms = glob.glob('*.dSYM')
            snapshot_dsyms = ['v8_context_snapshot_generator.dSYM']
            for dsym in snapshot_dsyms:
                if (dsym in dsyms):
                    dsyms.remove(dsym)
            dsym_zip_file = os.path.join(args.build_dir, dsym_name)
            print('Making dsym zip: ' + dsym_zip_file)
            make_zip(dsym_zip_file, licenses, dsyms)
            dsym_snapshot_name = 'dsym-snapshot.zip'
            dsym_snapshot_zip_file = os.path.join(args.build_dir,
                                                  dsym_snapshot_name)
            print('Making dsym snapshot zip: ' + dsym_snapshot_zip_file)
            make_zip(dsym_snapshot_zip_file, licenses, snapshot_dsyms)
            if len(dsyms) > 0 and 'DELETE_DSYMS_AFTER_ZIP' in os.environ:
                execute(['rm', '-rf'] + dsyms)
    elif PLATFORM == 'win32':
        pdb_name = 'pdb.zip'
        with scoped_cwd(args.build_dir):
            pdbs = glob.glob('*.pdb')
            pdb_zip_file = os.path.join(args.build_dir, pdb_name)
            print('Making pdb zip: ' + pdb_zip_file)
            make_zip(pdb_zip_file, pdbs + licenses, [])
    elif PLATFORM == 'linux':
        debug_name = 'debug.zip'
        with scoped_cwd(args.build_dir):
            dirs = ['debug']
            debug_zip_file = os.path.join(args.build_dir, debug_name)
            print('Making debug zip: ' + debug_zip_file)
            make_zip(debug_zip_file, licenses, dirs)
Beispiel #34
0
def create_ffmpeg_zip():
    dist_name = "ffmpeg-{0}-{1}-{2}.zip".format(ATOM_SHELL_VERSION, get_platform_key(), get_target_arch())
    zip_file = os.path.join(SOURCE_ROOT, "dist", dist_name)

    if PLATFORM == "darwin":
        ffmpeg_name = "libffmpeg.dylib"
    elif PLATFORM == "linux":
        ffmpeg_name = "libffmpeg.so"
    elif PLATFORM == "win32":
        ffmpeg_name = "ffmpeg.dll"

    shutil.copy2(os.path.join(CHROMIUM_DIR, "..", "ffmpeg", ffmpeg_name), DIST_DIR)

    if PLATFORM == "linux":
        strip_binary(os.path.join(DIST_DIR, ffmpeg_name))

    with scoped_cwd(DIST_DIR):
        make_zip(zip_file, [ffmpeg_name, "LICENSE", "LICENSES.chromium.html"], [])
Beispiel #35
0
def create_ffmpeg_zip():
    dist_name = get_zip_name("ffmpeg", ELECTRON_VERSION)
    zip_file = os.path.join(SOURCE_ROOT, "dist", dist_name)

    if PLATFORM == "darwin":
        ffmpeg_name = "libffmpeg.dylib"
    elif PLATFORM == "linux":
        ffmpeg_name = "libffmpeg.so"
    elif PLATFORM == "win32":
        ffmpeg_name = "ffmpeg.dll"

    shutil.copy2(os.path.join(CHROMIUM_DIR, "..", "ffmpeg", ffmpeg_name), DIST_DIR)

    if PLATFORM == "linux":
        strip_binary(os.path.join(DIST_DIR, ffmpeg_name))

    with scoped_cwd(DIST_DIR):
        make_zip(zip_file, [ffmpeg_name, "LICENSE", "LICENSES.chromium.html"], [])
Beispiel #36
0
def create_symbols_zip():
    dist_name = "{0}-{1}-{2}-{3}-symbols.zip".format(
        PROJECT_NAME, ATOM_SHELL_VERSION, get_platform_key(), get_target_arch()
    )
    zip_file = os.path.join(DIST_DIR, dist_name)
    licenses = ["LICENSE", "LICENSES.chromium.html", "version"]

    with scoped_cwd(DIST_DIR):
        dirs = ["{0}.breakpad.syms".format(PROJECT_NAME)]
        make_zip(zip_file, licenses, dirs)

    if PLATFORM == "darwin":
        dsym_name = "{0}-{1}-{2}-{3}-dsym.zip".format(
            PROJECT_NAME, ATOM_SHELL_VERSION, get_platform_key(), get_target_arch()
        )
        with scoped_cwd(DIST_DIR):
            dsyms = glob.glob("*.dSYM")
            make_zip(os.path.join(DIST_DIR, dsym_name), licenses, dsyms)
Beispiel #37
0
def create_ffmpeg_zip():
  dist_name = get_zip_name('ffmpeg', ELECTRON_VERSION)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  if PLATFORM == 'darwin':
    ffmpeg_name = 'libffmpeg.dylib'
  elif PLATFORM == 'linux':
    ffmpeg_name = 'libffmpeg.so'
  elif PLATFORM == 'win32':
    ffmpeg_name = 'ffmpeg.dll'

  shutil.copy2(os.path.join(CHROMIUM_DIR, '..', 'ffmpeg', ffmpeg_name),
               DIST_DIR)

  if PLATFORM == 'linux':
    strip_binary(os.path.join(DIST_DIR, ffmpeg_name))

  with scoped_cwd(DIST_DIR):
    make_zip(zip_file, [ffmpeg_name, 'LICENSE', 'LICENSES.chromium.html'], [])
Beispiel #38
0
def create_ffmpeg_zip():
  dist_name = get_zip_name('ffmpeg', ELECTRON_VERSION)
  zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)

  if PLATFORM == 'darwin':
    ffmpeg_name = 'libffmpeg.dylib'
  elif PLATFORM == 'linux':
    ffmpeg_name = 'libffmpeg.so'
  elif PLATFORM == 'win32':
    ffmpeg_name = 'ffmpeg.dll'

  shutil.copy2(os.path.join(CHROMIUM_DIR, '..', 'ffmpeg', ffmpeg_name),
               DIST_DIR)

  if PLATFORM == 'linux':
    strip_binary(os.path.join(DIST_DIR, ffmpeg_name))

  with scoped_cwd(DIST_DIR):
    make_zip(zip_file, [ffmpeg_name, 'LICENSE', 'LICENSES.chromium.html'], [])
Beispiel #39
0
def create_symbols_zip():
    dist_name = '{0}-{1}-{2}-{3}-symbols.zip'.format(PROJECT_NAME,
                                                     ATOM_SHELL_VERSION,
                                                     get_platform_key(),
                                                     get_target_arch())
    zip_file = os.path.join(DIST_DIR, dist_name)
    licenses = ['LICENSE', 'LICENSES.chromium.html', 'version']

    with scoped_cwd(DIST_DIR):
        dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
        make_zip(zip_file, licenses, dirs)

    if PLATFORM == 'darwin':
        dsym_name = '{0}-{1}-{2}-{3}-dsym.zip'.format(PROJECT_NAME,
                                                      ATOM_SHELL_VERSION,
                                                      get_platform_key(),
                                                      get_target_arch())
        with scoped_cwd(DIST_DIR):
            dsyms = glob.glob('*.dSYM')
            make_zip(os.path.join(DIST_DIR, dsym_name), licenses, dsyms)
Beispiel #40
0
def create_symbols_zip():
  dist_name = '{0}-{1}-{2}-{3}-symbols.zip'.format(PROJECT_NAME,
                                                   ATOM_SHELL_VERSION,
                                                   get_platform_key(),
                                                   get_target_arch())
  zip_file = os.path.join(DIST_DIR, dist_name)
  licenses = ['LICENSE', 'LICENSES.chromium.html', 'version']

  with scoped_cwd(DIST_DIR):
    dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
    make_zip(zip_file, licenses, dirs)

  if PLATFORM == 'darwin':
    dsym_name = '{0}-{1}-{2}-{3}-dsym.zip'.format(PROJECT_NAME,
                                                  ATOM_SHELL_VERSION,
                                                  get_platform_key(),
                                                  get_target_arch())
    with scoped_cwd(DIST_DIR):
      dsyms = glob.glob('*.dSYM')
      make_zip(os.path.join(DIST_DIR, dsym_name), licenses, dsyms)
Beispiel #41
0
def main():
  print('Zipping Symbols')
  if get_target_arch() == 'mips64el':
    return

  args = parse_args()
  dist_name = 'symbols.zip'
  zip_file = os.path.join(args.build_dir, dist_name)
  licenses = ['LICENSE', 'LICENSES.chromium.html', 'version']

  with scoped_cwd(args.build_dir):
    dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
    print('Making symbol zip: ' + zip_file)
    make_zip(zip_file, licenses, dirs)

  if PLATFORM == 'darwin':
    dsym_name = 'dsym.zip'
    with scoped_cwd(args.build_dir):
      dsyms = glob.glob('*.dSYM')
      dsym_zip_file = os.path.join(args.build_dir, dsym_name)
      print('Making dsym zip: ' + dsym_zip_file)
      make_zip(dsym_zip_file, licenses, dsyms)
  elif PLATFORM == 'win32':
    pdb_name = 'pdb.zip'
    with scoped_cwd(args.build_dir):
      pdbs = glob.glob('*.pdb')
      pdb_zip_file = os.path.join(args.build_dir, pdb_name)
      print('Making pdb zip: ' + pdb_zip_file)
      make_zip(pdb_zip_file, pdbs + licenses, [])
def main():
    print('Zipping Symbols')
    if get_target_arch() == 'mips64el':
        return

    args = parse_args()
    dist_name = 'symbols.zip'
    zip_file = os.path.join(args.build_dir, dist_name)
    licenses = ['LICENSE', 'LICENSES.chromium.html', 'version']

    with scoped_cwd(args.build_dir):
        dirs = ['breakpad_symbols']
        print('Making symbol zip: ' + zip_file)
        make_zip(zip_file, licenses, dirs)

    if PLATFORM == 'darwin':
        dsym_name = 'dsym.zip'
        with scoped_cwd(args.build_dir):
            dsyms = glob.glob('*.dSYM')
            dsym_zip_file = os.path.join(args.build_dir, dsym_name)
            print('Making dsym zip: ' + dsym_zip_file)
            make_zip(dsym_zip_file, licenses, dsyms)
    elif PLATFORM == 'win32':
        pdb_name = 'pdb.zip'
        with scoped_cwd(args.build_dir):
            pdbs = glob.glob('*.pdb')
            pdb_zip_file = os.path.join(args.build_dir, pdb_name)
            print('Making pdb zip: ' + pdb_zip_file)
            make_zip(pdb_zip_file, pdbs + licenses, [])
Beispiel #43
0
def main():
    print('Zipping Symbols')
    if get_target_arch() == 'mips64el':
        return

    dist_name = 'symbols.zip'
    zip_file = os.path.join(OUT_DIR, dist_name)
    licenses = ['LICENSE', 'LICENSES.chromium.html', 'version']

    with scoped_cwd(OUT_DIR):
        dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
        print('Making symbol zip: ' + zip_file)
        make_zip(zip_file, licenses, dirs)

    if PLATFORM == 'darwin':
        dsym_name = 'dsym.zip'
        with scoped_cwd(OUT_DIR):
            dsyms = glob.glob('*.dSYM')
            dsym_zip_file = os.path.join(OUT_DIR, dsym_name)
            print('Making dsym zip: ' + dsym_zip_file)
            make_zip(dsym_zip_file, licenses, dsyms)
    elif PLATFORM == 'win32':
        pdb_name = 'pdb.zip'
        with scoped_cwd(OUT_DIR):
            pdbs = glob.glob('*.pdb')
            pdb_zip_file = os.path.join(OUT_DIR, pdb_name)
            print('Making pdb zip: ' + pdb_zip_file)
            make_zip(pdb_zip_file, pdbs + licenses, [])
Beispiel #44
0
def create_symbols_zip():
  dist_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, 'symbols')
  zip_file = os.path.join(DIST_DIR, dist_name)
  licenses = ['LICENSE', 'LICENSES.chromium.html', 'version']

  with scoped_cwd(DIST_DIR):
    dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
    make_zip(zip_file, licenses, dirs)

  if PLATFORM == 'darwin':
    dsym_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, 'dsym')
    with scoped_cwd(DIST_DIR):
      dsyms = glob.glob('*.dSYM')
      make_zip(os.path.join(DIST_DIR, dsym_name), licenses, dsyms)
  elif PLATFORM == 'win32':
    pdb_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, 'pdb')
    with scoped_cwd(DIST_DIR):
      pdbs = glob.glob('*.pdb')
      make_zip(os.path.join(DIST_DIR, pdb_name), pdbs + licenses, [])
Beispiel #45
0
def create_symbols_zip():
    dist_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, "symbols")
    zip_file = os.path.join(DIST_DIR, dist_name)
    licenses = ["LICENSE", "LICENSES.chromium.html", "version"]

    with scoped_cwd(DIST_DIR):
        dirs = ["{0}.breakpad.syms".format(PROJECT_NAME)]
        make_zip(zip_file, licenses, dirs)

    if PLATFORM == "darwin":
        dsym_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, "dsym")
        with scoped_cwd(DIST_DIR):
            dsyms = glob.glob("*.dSYM")
            make_zip(os.path.join(DIST_DIR, dsym_name), licenses, dsyms)
    elif PLATFORM == "win32":
        pdb_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, "pdb")
        with scoped_cwd(DIST_DIR):
            pdbs = glob.glob("*.pdb")
            make_zip(os.path.join(DIST_DIR, pdb_name), pdbs + licenses, [])
Beispiel #46
0
def create_symbols_zip():
    dist_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, 'symbols')
    zip_file = os.path.join(DIST_DIR, dist_name)
    licenses = ['LICENSE', 'LICENSES.chromium.html', 'version']

    with scoped_cwd(DIST_DIR):
        dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
        make_zip(zip_file, licenses, dirs)

    if PLATFORM == 'darwin':
        dsym_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, 'dsym')
        with scoped_cwd(DIST_DIR):
            dsyms = glob.glob('*.dSYM')
            make_zip(os.path.join(DIST_DIR, dsym_name), licenses, dsyms)
    elif PLATFORM == 'win32':
        pdb_name = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, 'pdb')
        with scoped_cwd(DIST_DIR):
            pdbs = glob.glob('*.pdb')
            make_zip(os.path.join(DIST_DIR, pdb_name), pdbs + licenses, [])