atom_gyp -> electron_gyp

This commit is contained in:
Kevin Sawicki 2016-05-25 09:10:46 -07:00
parent 6c8cf16508
commit 9684f61e12
10 changed files with 27 additions and 27 deletions

View file

@ -6,7 +6,7 @@ import subprocess
import sys import sys
from lib.config import get_target_arch from lib.config import get_target_arch
from lib.util import atom_gyp, import_vs_env from lib.util import electron_gyp, import_vs_env
CONFIGURATIONS = ['Release', 'Debug'] CONFIGURATIONS = ['Release', 'Debug']
@ -40,7 +40,7 @@ def parse_args():
required=False) required=False)
parser.add_argument('-t', '--target', parser.add_argument('-t', '--target',
help='Build specified target', help='Build specified target',
default=atom_gyp()['project_name%'], default=electron_gyp()['project_name%'],
required=False) required=False)
return parser.parse_args() return parser.parse_args()

View file

@ -27,7 +27,7 @@ def main():
version = '.'.join(versions[:3]) version = '.'.join(versions[:3])
with scoped_cwd(SOURCE_ROOT): with scoped_cwd(SOURCE_ROOT):
update_atom_gyp(version) update_electron_gyp(version)
update_win_rc(version, versions) update_win_rc(version, versions)
update_version_h(versions) update_version_h(versions)
update_info_plist(version) update_info_plist(version)
@ -42,7 +42,7 @@ def increase_version(versions, index):
return versions return versions
def update_atom_gyp(version): def update_electron_gyp(version):
pattern = re.compile(" *'version%' *: *'[0-9.]+'") pattern = re.compile(" *'version%' *: *'[0-9.]+'")
with open('electron.gyp', 'r') as f: with open('electron.gyp', 'r') as f:
lines = f.readlines() lines = f.readlines()

View file

@ -12,7 +12,7 @@ from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL, PLATFORM, \
get_target_arch, get_chromedriver_version, \ get_target_arch, get_chromedriver_version, \
get_platform_key get_platform_key
from lib.util import scoped_cwd, rm_rf, get_electron_version, make_zip, \ from lib.util import scoped_cwd, rm_rf, get_electron_version, make_zip, \
execute, atom_gyp execute, electron_gyp
ELECTRON_VERSION = get_electron_version() ELECTRON_VERSION = get_electron_version()
@ -23,8 +23,8 @@ OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'R')
CHROMIUM_DIR = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor', CHROMIUM_DIR = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor',
'download', 'libchromiumcontent', 'static_library') 'download', 'libchromiumcontent', 'static_library')
PROJECT_NAME = atom_gyp()['project_name%'] PROJECT_NAME = electron_gyp()['project_name%']
PRODUCT_NAME = atom_gyp()['product_name%'] PRODUCT_NAME = electron_gyp()['product_name%']
TARGET_BINARIES = { TARGET_BINARIES = {
'darwin': [ 'darwin': [

View file

@ -4,7 +4,7 @@ import os
import sys import sys
from lib.config import PLATFORM from lib.config import PLATFORM
from lib.util import atom_gyp, execute, rm_rf from lib.util import electron_gyp, execute, rm_rf
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
@ -56,7 +56,7 @@ def register_required_dll():
def get_names_from_gyp(): def get_names_from_gyp():
variables = atom_gyp() variables = electron_gyp()
return (variables['project_name%'], variables['product_name%']) return (variables['project_name%'], variables['product_name%'])

View file

@ -179,7 +179,7 @@ def execute_stdout(argv, env=os.environ):
execute(argv, env) execute(argv, env)
def atom_gyp(): def electron_gyp():
SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..')) SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
gyp = os.path.join(SOURCE_ROOT, 'electron.gyp') gyp = os.path.join(SOURCE_ROOT, 'electron.gyp')
with open(gyp) as f: with open(gyp) as f:
@ -188,7 +188,7 @@ def atom_gyp():
def get_electron_version(): def get_electron_version():
return 'v' + atom_gyp()['version%'] return 'v' + electron_gyp()['version%']
def parse_version(version): def parse_version(version):

View file

@ -4,13 +4,13 @@ import os
import subprocess import subprocess
import sys import sys
from lib.util import atom_gyp from lib.util import electron_gyp
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
PROJECT_NAME = atom_gyp()['project_name%'] PROJECT_NAME = electron_gyp()['project_name%']
PRODUCT_NAME = atom_gyp()['product_name%'] PRODUCT_NAME = electron_gyp()['product_name%']
def main(): def main():

View file

@ -4,13 +4,13 @@ import os
import subprocess import subprocess
import sys import sys
from lib.util import atom_gyp, rm_rf from lib.util import electron_gyp, rm_rf
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
PROJECT_NAME = atom_gyp()['project_name%'] PROJECT_NAME = electron_gyp()['project_name%']
PRODUCT_NAME = atom_gyp()['product_name%'] PRODUCT_NAME = electron_gyp()['product_name%']
def main(): def main():

View file

@ -4,14 +4,14 @@ import os
import sys import sys
from lib.config import PLATFORM, s3_config from lib.config import PLATFORM, s3_config
from lib.util import atom_gyp, execute, s3put, scoped_cwd from lib.util import electron_gyp, execute, s3put, scoped_cwd
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'D') OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'D')
PROJECT_NAME = atom_gyp()['project_name%'] PROJECT_NAME = electron_gyp()['project_name%']
PRODUCT_NAME = atom_gyp()['product_name%'] PRODUCT_NAME = electron_gyp()['product_name%']
def main(): def main():

View file

@ -5,15 +5,15 @@ import glob
import sys import sys
from lib.config import s3_config from lib.config import s3_config
from lib.util import atom_gyp, execute, rm_rf, safe_mkdir, s3put from lib.util import electron_gyp, execute, rm_rf, safe_mkdir, s3put
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
SYMBOLS_DIR = 'dist\\symbols' SYMBOLS_DIR = 'dist\\symbols'
DOWNLOAD_DIR = 'vendor\\brightray\\vendor\\download\\libchromiumcontent' DOWNLOAD_DIR = 'vendor\\brightray\\vendor\\download\\libchromiumcontent'
PROJECT_NAME = atom_gyp()['project_name%'] PROJECT_NAME = electron_gyp()['project_name%']
PRODUCT_NAME = atom_gyp()['product_name%'] PRODUCT_NAME = electron_gyp()['product_name%']
PDB_LIST = [ PDB_LIST = [
'out\\R\\{0}.exe.pdb'.format(PROJECT_NAME), 'out\\R\\{0}.exe.pdb'.format(PROJECT_NAME),

View file

@ -9,7 +9,7 @@ import tempfile
from lib.config import PLATFORM, get_target_arch, get_chromedriver_version, \ from lib.config import PLATFORM, get_target_arch, get_chromedriver_version, \
get_platform_key, get_env_var get_platform_key, get_env_var
from lib.util import atom_gyp, execute, get_electron_version, parse_version, \ from lib.util import electron_gyp, execute, get_electron_version, parse_version, \
scoped_cwd scoped_cwd
from lib.github import GitHub from lib.github import GitHub
@ -17,8 +17,8 @@ from lib.github import GitHub
ELECTRON_REPO = 'electron/electron' ELECTRON_REPO = 'electron/electron'
ELECTRON_VERSION = get_electron_version() ELECTRON_VERSION = get_electron_version()
PROJECT_NAME = atom_gyp()['project_name%'] PROJECT_NAME = electron_gyp()['project_name%']
PRODUCT_NAME = atom_gyp()['product_name%'] PRODUCT_NAME = electron_gyp()['product_name%']
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'R') OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'R')
@ -80,7 +80,7 @@ def main():
# Do not upload other files when passed "-p". # Do not upload other files when passed "-p".
return return
# Upload atom-shell with GitHub Releases API. # Upload Electron with GitHub Releases API.
upload_electron(github, release, os.path.join(DIST_DIR, DIST_NAME)) upload_electron(github, release, os.path.join(DIST_DIR, DIST_NAME))
upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME)) upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME))
if PLATFORM == 'darwin': if PLATFORM == 'darwin':