Merge pull request #4548 from atom/free-ffmpeg
Provide ffmpeg binaries without proprietary codecs
This commit is contained in:
commit
54a7eefa28
3 changed files with 28 additions and 5 deletions
|
@ -99,6 +99,7 @@ def main():
|
||||||
create_dist_zip()
|
create_dist_zip()
|
||||||
create_chrome_binary_zip('chromedriver', get_chromedriver_version())
|
create_chrome_binary_zip('chromedriver', get_chromedriver_version())
|
||||||
create_chrome_binary_zip('mksnapshot', ATOM_SHELL_VERSION)
|
create_chrome_binary_zip('mksnapshot', ATOM_SHELL_VERSION)
|
||||||
|
create_ffmpeg_zip()
|
||||||
create_symbols_zip()
|
create_symbols_zip()
|
||||||
|
|
||||||
|
|
||||||
|
@ -205,6 +206,24 @@ def create_chrome_binary_zip(binary, version):
|
||||||
make_zip(zip_file, files, [])
|
make_zip(zip_file, files, [])
|
||||||
|
|
||||||
|
|
||||||
|
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'], [])
|
||||||
|
|
||||||
|
|
||||||
def create_symbols_zip():
|
def create_symbols_zip():
|
||||||
dist_name = '{0}-{1}-{2}-{3}-symbols.zip'.format(PROJECT_NAME,
|
dist_name = '{0}-{1}-{2}-{3}-symbols.zip'.format(PROJECT_NAME,
|
||||||
ATOM_SHELL_VERSION,
|
ATOM_SHELL_VERSION,
|
||||||
|
|
|
@ -8,7 +8,7 @@ import sys
|
||||||
|
|
||||||
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
|
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
|
||||||
'https://s3.amazonaws.com/github-janky-artifacts/libchromiumcontent'
|
'https://s3.amazonaws.com/github-janky-artifacts/libchromiumcontent'
|
||||||
LIBCHROMIUMCONTENT_COMMIT = 'fc5174471ccccce7030d0960f5228e73ca7c2ac6'
|
LIBCHROMIUMCONTENT_COMMIT = '599c8941e1884e155218ec1013cba9fc5c7c7072'
|
||||||
|
|
||||||
PLATFORM = {
|
PLATFORM = {
|
||||||
'cygwin': 'win32',
|
'cygwin': 'win32',
|
||||||
|
|
|
@ -35,9 +35,6 @@ DSYM_NAME = '{0}-{1}-{2}-{3}-dsym.zip'.format(PROJECT_NAME,
|
||||||
ATOM_SHELL_VERSION,
|
ATOM_SHELL_VERSION,
|
||||||
get_platform_key(),
|
get_platform_key(),
|
||||||
get_target_arch())
|
get_target_arch())
|
||||||
MKSNAPSHOT_NAME = 'mksnapshot-{0}-{1}-{2}.zip'.format(ATOM_SHELL_VERSION,
|
|
||||||
get_platform_key(),
|
|
||||||
get_target_arch())
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -89,12 +86,19 @@ def main():
|
||||||
if PLATFORM == 'darwin':
|
if PLATFORM == 'darwin':
|
||||||
upload_atom_shell(github, release, os.path.join(DIST_DIR, DSYM_NAME))
|
upload_atom_shell(github, release, os.path.join(DIST_DIR, DSYM_NAME))
|
||||||
|
|
||||||
|
# Upload free version of ffmpeg.
|
||||||
|
ffmpeg = 'ffmpeg-{0}-{1}-{2}.zip'.format(
|
||||||
|
ATOM_SHELL_VERSION, get_platform_key(), get_target_arch())
|
||||||
|
upload_atom_shell(github, release, os.path.join(DIST_DIR, ffmpeg))
|
||||||
|
|
||||||
# Upload chromedriver and mksnapshot for minor version update.
|
# Upload chromedriver and mksnapshot for minor version update.
|
||||||
if parse_version(args.version)[2] == '0':
|
if parse_version(args.version)[2] == '0':
|
||||||
chromedriver = 'chromedriver-{0}-{1}-{2}.zip'.format(
|
chromedriver = 'chromedriver-{0}-{1}-{2}.zip'.format(
|
||||||
get_chromedriver_version(), get_platform_key(), get_target_arch())
|
get_chromedriver_version(), get_platform_key(), get_target_arch())
|
||||||
upload_atom_shell(github, release, os.path.join(DIST_DIR, chromedriver))
|
upload_atom_shell(github, release, os.path.join(DIST_DIR, chromedriver))
|
||||||
upload_atom_shell(github, release, os.path.join(DIST_DIR, MKSNAPSHOT_NAME))
|
mksnapshot = 'mksnapshot-{0}-{1}-{2}.zip'.format(
|
||||||
|
ATOM_SHELL_VERSION, get_platform_key(), get_target_arch())
|
||||||
|
upload_atom_shell(github, release, os.path.join(DIST_DIR, mksnapshot))
|
||||||
|
|
||||||
if PLATFORM == 'win32' and not tag_exists:
|
if PLATFORM == 'win32' and not tag_exists:
|
||||||
# Upload node headers.
|
# Upload node headers.
|
||||||
|
|
Loading…
Reference in a new issue