def main(): if len(sys.argv) != 2 or sys.argv[1] == '-h': print 'Usage: bump-version.py [<version> | major | minor | patch]' return 1 option = sys.argv[1] increments = ['major', 'minor', 'patch', 'build'] if option in increments: version = get_atom_shell_version() versions = parse_version(version.split('-')[0]) versions = increase_version(versions, increments.index(option)) else: versions = parse_version(option) version = '.'.join(versions[:3]) with scoped_cwd(SOURCE_ROOT): update_atom_gyp(version) update_win_rc(version, versions) update_version_h(versions) update_info_plist(version) tag_version(version)
def main(): if len(sys.argv) != 2 or sys.argv[1] == "-h": print "Usage: bump-version.py [<version> | major | minor | patch]" return 1 option = sys.argv[1] increments = ["major", "minor", "patch", "build"] if option in increments: version = get_atom_shell_version() versions = parse_version(version.split("-")[0]) versions = increase_version(versions, increments.index(option)) else: versions = parse_version(option) version = ".".join(versions[:3]) with scoped_cwd(SOURCE_ROOT): update_atom_gyp(version) update_win_rc(version, versions) update_version_h(versions) update_info_plist(version) tag_version(version)
import argparse import errno import os import subprocess import sys import tempfile from lib.config import PLATFORM, get_target_arch from lib.util import atom_gyp, execute, get_atom_shell_version, parse_version, \ get_chromedriver_version, scoped_cwd from lib.github import GitHub ATOM_SHELL_REPO = 'atom/electron' ATOM_SHELL_VERSION = get_atom_shell_version() CHROMEDRIVER_VERSION = get_chromedriver_version() PROJECT_NAME = atom_gyp()['project_name%'] PRODUCT_NAME = atom_gyp()['product_name%'] SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'R') DIST_DIR = os.path.join(SOURCE_ROOT, 'dist') DIST_NAME = '{0}-{1}-{2}-{3}.zip'.format(PROJECT_NAME, ATOM_SHELL_VERSION, PLATFORM, get_target_arch()) SYMBOLS_NAME = '{0}-{1}-{2}-{3}-symbols.zip'.format(PROJECT_NAME, ATOM_SHELL_VERSION, PLATFORM,
def update_electron_modules(dirname, target_arch): env = os.environ.copy() env['npm_config_arch'] = target_arch env['npm_config_target'] = get_atom_shell_version() env['npm_config_disturl'] = 'https://atom.io/download/atom-shell' update_node_modules(dirname, env)
#!/usr/bin/env python import os import re import shutil import subprocess import sys import stat from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL, PLATFORM, \ get_target_arch from lib.util import scoped_cwd, rm_rf, get_atom_shell_version, make_zip, \ execute, get_chromedriver_version ATOM_SHELL_VERSION = get_atom_shell_version() SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) DIST_DIR = os.path.join(SOURCE_ROOT, 'dist') OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'R') CHROMIUM_DIR = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor', 'download', 'libchromiumcontent', 'static_library') TARGET_BINARIES = { 'darwin': [], 'win32': [ 'atom.exe', 'content_shell.pak', 'd3dcompiler_47.dll', 'ffmpegsumo.dll', 'icudtl.dat', 'libEGL.dll',