Create and upload free version of ffmpeg
This commit is contained in:
parent
cd30308711
commit
daffb4881e
2 changed files with 27 additions and 4 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,
|
||||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue