Closes #14828
This commit is contained in:
Samuel Attard 2018-09-27 22:38:41 +10:00 коммит произвёл John Kleinschmidt
Родитель 7dc7cd1d89
Коммит 131b19403f
2 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -52,12 +52,15 @@ def parse_args():
def get_files_list(version):
return [
{ "filename": 'node-{0}.tar.gz'.format(version), "required": True },
{ "filename": 'node-{0}-headers.tar.gz'.format(version), "required": True },
{ "filename": 'iojs-{0}.tar.gz'.format(version), "required": True },
{ "filename": 'iojs-{0}-headers.tar.gz'.format(version), "required": True },
{ "filename": 'node.lib', "required": False },
{ "filename": 'x64/node.lib', "required": False },
{ "filename": 'win-x86/iojs.lib', "required": False },
{ "filename": 'win-x64/iojs.lib', "required": False }
{ "filename": 'win-x64/iojs.lib', "required": False },
{ "filename": 'win-x86/node.lib', "required": False },
{ "filename": 'win-x64/node.lib', "required": False }
]

Просмотреть файл

@ -40,16 +40,19 @@ def upload_node(bucket, access_key, secret_key, version):
if get_target_arch() == 'ia32':
node_lib = os.path.join(DIST_DIR, 'node.lib')
iojs_lib = os.path.join(DIST_DIR, 'win-x86', 'iojs.lib')
v4_node_lib = os.path.join(DIST_DIR, 'win-x86', 'node.lib')
else:
node_lib = os.path.join(DIST_DIR, 'x64', 'node.lib')
iojs_lib = os.path.join(DIST_DIR, 'win-x64', 'iojs.lib')
v4_node_lib = os.path.join(DIST_DIR, 'win-x64', 'node.lib')
safe_mkdir(os.path.dirname(node_lib))
safe_mkdir(os.path.dirname(iojs_lib))
# Copy atom.lib to node.lib and iojs.lib.
# Copy atom.lib to node.lib, iojs.lib and v4 node.lib
atom_lib = os.path.join(OUT_DIR, 'node.dll.lib')
shutil.copy2(atom_lib, node_lib)
shutil.copy2(atom_lib, iojs_lib)
shutil.copy2(atom_lib, v4_node_lib)
# Upload the node.lib.
s3put(bucket, access_key, secret_key, DIST_DIR,
@ -59,6 +62,10 @@ def upload_node(bucket, access_key, secret_key, version):
s3put(bucket, access_key, secret_key, DIST_DIR,
'atom-shell/dist/{0}'.format(version), [iojs_lib])
# Upload the v4 node.lib.
s3put(bucket, access_key, secret_key, DIST_DIR,
'atom-shell/dist/{0}'.format(version), [v4_node_lib])
if __name__ == '__main__':
sys.exit(main())