commit
dc35586be1
4 changed files with 12 additions and 28 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -7,9 +7,6 @@
|
||||||
[submodule "vendor/depot_tools"]
|
[submodule "vendor/depot_tools"]
|
||||||
path = vendor/depot_tools
|
path = vendor/depot_tools
|
||||||
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||||
[submodule "vendor/apm"]
|
|
||||||
path = vendor/apm
|
|
||||||
url = https://github.com/atom/apm.git
|
|
||||||
[submodule "vendor/breakpad"]
|
[submodule "vendor/breakpad"]
|
||||||
path = vendor/breakpad
|
path = vendor/breakpad
|
||||||
url = https://github.com/atom/chromium-breakpad.git
|
url = https://github.com/atom/chromium-breakpad.git
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"version": "0.11.10",
|
"version": "0.11.10",
|
||||||
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"atom-package-manager": "0.44.x",
|
||||||
"coffee-script": "~1.6.3",
|
"coffee-script": "~1.6.3",
|
||||||
"coffeelint": "~0.6.1",
|
"coffeelint": "~0.6.1",
|
||||||
"formidable": "~1.0.14",
|
"formidable": "~1.0.14",
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import subprocess
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL
|
from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL
|
||||||
|
@ -12,6 +11,7 @@ from lib.util import execute, 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__)))
|
||||||
VENDOR_DIR = os.path.join(SOURCE_ROOT, 'vendor')
|
VENDOR_DIR = os.path.join(SOURCE_ROOT, 'vendor')
|
||||||
PYTHON_26_URL = 'https://chromium.googlesource.com/chromium/deps/python_26'
|
PYTHON_26_URL = 'https://chromium.googlesource.com/chromium/deps/python_26'
|
||||||
|
NPM = 'npm.cmd' if sys.platform == 'win32' else 'npm'
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -19,8 +19,8 @@ def main():
|
||||||
|
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
update_submodules()
|
update_submodules()
|
||||||
update_apm()
|
update_node_modules('.')
|
||||||
update_node_modules()
|
update_atom_modules('atom/browser/default_app')
|
||||||
bootstrap_brightray(args.url)
|
bootstrap_brightray(args.url)
|
||||||
if sys.platform == 'cygwin':
|
if sys.platform == 'cygwin':
|
||||||
update_win32_python()
|
update_win32_python()
|
||||||
|
@ -51,30 +51,17 @@ def bootstrap_brightray(url):
|
||||||
url])
|
url])
|
||||||
|
|
||||||
|
|
||||||
def update_apm():
|
def update_node_modules(dirname):
|
||||||
npm = 'npm.cmd' if sys.platform == 'win32' else 'npm'
|
|
||||||
|
|
||||||
if os.environ.get('CI') == '1':
|
|
||||||
execute([npm, 'install', 'npm'])
|
|
||||||
npm = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'npm')
|
|
||||||
if sys.platform == 'win32':
|
|
||||||
npm += '.cmd'
|
|
||||||
|
|
||||||
with scoped_cwd(os.path.join('vendor', 'apm')):
|
|
||||||
execute([npm, 'install', '.'])
|
|
||||||
|
|
||||||
|
|
||||||
def update_node_modules():
|
|
||||||
for dirname in ['atom/browser/default_app', '.']:
|
|
||||||
update_node_modules_for_dir(dirname)
|
|
||||||
|
|
||||||
|
|
||||||
def update_node_modules_for_dir(dirname):
|
|
||||||
with scoped_cwd(dirname):
|
with scoped_cwd(dirname):
|
||||||
apm = os.path.join(SOURCE_ROOT, 'vendor', 'apm', 'bin', 'apm')
|
execute([NPM, 'install'])
|
||||||
|
|
||||||
|
|
||||||
|
def update_atom_modules(dirname):
|
||||||
|
with scoped_cwd(dirname):
|
||||||
|
apm = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'apm')
|
||||||
if sys.platform in ['win32', 'cygwin']:
|
if sys.platform in ['win32', 'cygwin']:
|
||||||
apm += '.cmd'
|
apm += '.cmd'
|
||||||
subprocess.check_call([apm, 'install'])
|
execute([apm, 'install'])
|
||||||
|
|
||||||
|
|
||||||
def update_win32_python():
|
def update_win32_python():
|
||||||
|
|
1
vendor/apm
vendored
1
vendor/apm
vendored
|
@ -1 +0,0 @@
|
||||||
Subproject commit 2ce1206e6720c133fd2acf53bebeb9b37de2b65a
|
|
Loading…
Reference in a new issue