atom_shell -> electron
This commit is contained in:
parent
7e209dd982
commit
94c8b0e1b1
8 changed files with 60 additions and 60 deletions
|
@ -11,11 +11,11 @@ import stat
|
|||
from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL, PLATFORM, \
|
||||
get_target_arch, get_chromedriver_version, \
|
||||
get_platform_key
|
||||
from lib.util import scoped_cwd, rm_rf, get_atom_shell_version, make_zip, \
|
||||
from lib.util import scoped_cwd, rm_rf, get_electron_version, make_zip, \
|
||||
execute, atom_gyp
|
||||
|
||||
|
||||
ATOM_SHELL_VERSION = get_atom_shell_version()
|
||||
ELECTRON_VERSION = get_electron_version()
|
||||
|
||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
|
||||
|
@ -86,7 +86,7 @@ def main():
|
|||
create_version()
|
||||
create_dist_zip()
|
||||
create_chrome_binary_zip('chromedriver', get_chromedriver_version())
|
||||
create_chrome_binary_zip('mksnapshot', ATOM_SHELL_VERSION)
|
||||
create_chrome_binary_zip('mksnapshot', ELECTRON_VERSION)
|
||||
create_ffmpeg_zip()
|
||||
create_symbols_zip()
|
||||
|
||||
|
@ -140,7 +140,7 @@ def strip_binary(binary_path):
|
|||
def create_version():
|
||||
version_path = os.path.join(SOURCE_ROOT, 'dist', 'version')
|
||||
with open(version_path, 'w') as version_file:
|
||||
version_file.write(ATOM_SHELL_VERSION)
|
||||
version_file.write(ELECTRON_VERSION)
|
||||
|
||||
|
||||
def create_symbols():
|
||||
|
@ -155,7 +155,7 @@ def create_symbols():
|
|||
|
||||
|
||||
def create_dist_zip():
|
||||
dist_name = '{0}-{1}-{2}-{3}.zip'.format(PROJECT_NAME, ATOM_SHELL_VERSION,
|
||||
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)
|
||||
|
@ -183,7 +183,7 @@ def create_chrome_binary_zip(binary, version):
|
|||
|
||||
def create_ffmpeg_zip():
|
||||
dist_name = 'ffmpeg-{0}-{1}-{2}.zip'.format(
|
||||
ATOM_SHELL_VERSION, get_platform_key(), get_target_arch())
|
||||
ELECTRON_VERSION, get_platform_key(), get_target_arch())
|
||||
zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)
|
||||
|
||||
if PLATFORM == 'darwin':
|
||||
|
@ -205,7 +205,7 @@ def create_ffmpeg_zip():
|
|||
|
||||
def create_symbols_zip():
|
||||
dist_name = '{0}-{1}-{2}-{3}-symbols.zip'.format(PROJECT_NAME,
|
||||
ATOM_SHELL_VERSION,
|
||||
ELECTRON_VERSION,
|
||||
get_platform_key(),
|
||||
get_target_arch())
|
||||
zip_file = os.path.join(DIST_DIR, dist_name)
|
||||
|
@ -217,7 +217,7 @@ def create_symbols_zip():
|
|||
|
||||
if PLATFORM == 'darwin':
|
||||
dsym_name = '{0}-{1}-{2}-{3}-dsym.zip'.format(PROJECT_NAME,
|
||||
ATOM_SHELL_VERSION,
|
||||
ELECTRON_VERSION,
|
||||
get_platform_key(),
|
||||
get_target_arch())
|
||||
with scoped_cwd(DIST_DIR):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue