Example #1
0
def create_signed_installer(root_out_dir, brave_installer_exe, env=None):
    installer_file = os.path.join(root_out_dir, 'brave_installer.exe')
    shutil.copyfile(os.path.join(root_out_dir, 'mini_installer.exe'),
                    installer_file)
    sign_binary(installer_file)
    # Copy signed installer to version appended name
    installer_file_with_version = os.path.join(root_out_dir,
                                               brave_installer_exe)
    shutil.copyfile(installer_file, installer_file_with_version)
def create_signed_installer(root_out_dir, adrbrowsiel_installer_exe, skip_signing, env=None):
    installer_file = os.path.join(root_out_dir, 'adrbrowsiel_installer.exe')
    shutil.copyfile(os.path.join(root_out_dir, 'mini_installer.exe'),
                    installer_file)
    if not skip_signing:
        sign_binary(installer_file)
    # Copy signed installer to version appended name
    installer_file_with_version = os.path.join(root_out_dir,
                                               adrbrowsiel_installer_exe)
    shutil.copyfile(installer_file, installer_file_with_version)
def create_signed_installer(root_out_dir, brave_installer_exe, skip_signing, env=None):
    installer_file = os.path.join(root_out_dir, 'brave_installer.exe')
    shutil.copyfile(os.path.join(root_out_dir, 'mini_installer.exe'),
                    installer_file)
    if not skip_signing:
        sign_binary(installer_file)
    # Copy signed installer to version appended name
    installer_file_with_version = os.path.join(root_out_dir,
                                               brave_installer_exe)
    shutil.copyfile(installer_file, installer_file_with_version)
def SignAndCopyPreSignedBinaries(skip_signing, output_dir, staging_dir,
                                 current_version):
    if not skip_signing:
        from sign_binaries import sign_binaries, sign_binary
        sign_binaries(staging_dir)
        sign_binary(os.path.join(output_dir, 'setup.exe'))
        """Copies already signed three binaries - brave.exe and chrome.dll
        These files are signed during the build phase to create widevine sig files.
        """
        src_dir = os.path.join(output_dir, 'signed_binaries')
        chrome_dir = os.path.join(staging_dir, CHROME_DIR)
        version_dir = os.path.join(chrome_dir, current_version)
        shutil.copy(os.path.join(src_dir, 'brave.exe'), chrome_dir)
        shutil.copy(os.path.join(src_dir, 'chrome.dll'), version_dir)
def create_signed_installer(root_out_dir, env=None):
    installer_file = os.path.join(root_out_dir, 'brave_installer.exe')
    shutil.copyfile(os.path.join(root_out_dir, 'mini_installer.exe'),
                    installer_file)
    sign_binary(installer_file)