зеркало из https://github.com/electron/electron.git
chore: ensure boto is initialized so that s3put works
This commit is contained in:
Родитель
c1705f2789
Коммит
85464c5b46
27
DEPS
27
DEPS
|
@ -65,6 +65,33 @@ hooks = [
|
||||||
'pattern': 'src/electron/package.json',
|
'pattern': 'src/electron/package.json',
|
||||||
'name': 'electron_npm_deps'
|
'name': 'electron_npm_deps'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'action': [
|
||||||
|
'python',
|
||||||
|
'-c',
|
||||||
|
'import os; os.chdir("src"); os.chdir("electron"); os.system("git submodule update --init --recursive");',
|
||||||
|
],
|
||||||
|
'pattern': 'src/electron',
|
||||||
|
'name': 'electron_submodules'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'action': [
|
||||||
|
'python',
|
||||||
|
'-c',
|
||||||
|
'import os; os.chdir("src"); os.chdir("electron"); os.chdir("vendor"); os.chdir("boto"); os.system("python setup.py build");',
|
||||||
|
],
|
||||||
|
'pattern': 'src/electron',
|
||||||
|
'name': 'setup_boto',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'action': [
|
||||||
|
'python',
|
||||||
|
'-c',
|
||||||
|
'import os; os.chdir("src"); os.chdir("electron"); os.chdir("vendor"); os.chdir("requests"); os.system("python setup.py build");',
|
||||||
|
],
|
||||||
|
'pattern': 'src/electron',
|
||||||
|
'name': 'setup_requests',
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
recursedeps = [
|
recursedeps = [
|
||||||
|
|
|
@ -14,6 +14,14 @@ from lib.util import safe_mkdir, scoped_cwd, s3put, get_out_dir, get_dist_dir
|
||||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
DIST_DIR = get_dist_dir()
|
DIST_DIR = get_dist_dir()
|
||||||
OUT_DIR = get_out_dir()
|
OUT_DIR = get_out_dir()
|
||||||
|
GEN_DIR = os.path.join(OUT_DIR, 'gen')
|
||||||
|
|
||||||
|
HEADER_TAR_NAMES = [
|
||||||
|
'node-{0}.tar.gz',
|
||||||
|
'node-{0}-headers.tar.gz',
|
||||||
|
'iojs-{0}.tar.gz',
|
||||||
|
'iojs-{0}-headers.tar.gz'
|
||||||
|
]
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
|
@ -31,11 +39,15 @@ def parse_args():
|
||||||
|
|
||||||
|
|
||||||
def upload_node(bucket, access_key, secret_key, version):
|
def upload_node(bucket, access_key, secret_key, version):
|
||||||
safe_mkdir(DIST_DIR)
|
with scoped_cwd(GEN_DIR):
|
||||||
with scoped_cwd(DIST_DIR):
|
generated_tar = os.path.join(GEN_DIR, 'node_headers.tar.gz')
|
||||||
s3put(bucket, access_key, secret_key, DIST_DIR,
|
for header_tar in HEADER_TAR_NAMES:
|
||||||
|
versioned_header_tar = header_tar.format(version)
|
||||||
|
shutil.copy2(generated_tar, os.path.join(GEN_DIR, versioned_header_tar))
|
||||||
|
|
||||||
|
s3put(bucket, access_key, secret_key, GEN_DIR,
|
||||||
'atom-shell/dist/{0}'.format(version), glob.glob('node-*.tar.gz'))
|
'atom-shell/dist/{0}'.format(version), glob.glob('node-*.tar.gz'))
|
||||||
s3put(bucket, access_key, secret_key, DIST_DIR,
|
s3put(bucket, access_key, secret_key, GEN_DIR,
|
||||||
'atom-shell/dist/{0}'.format(version), glob.glob('iojs-*.tar.gz'))
|
'atom-shell/dist/{0}'.format(version), glob.glob('iojs-*.tar.gz'))
|
||||||
|
|
||||||
if PLATFORM == 'win32':
|
if PLATFORM == 'win32':
|
||||||
|
|
Загрузка…
Ссылка в новой задаче