parent
7dc7cd1d89
commit
131b19403f
2 changed files with 12 additions and 2 deletions
|
@ -52,12 +52,15 @@ def parse_args():
|
||||||
def get_files_list(version):
|
def get_files_list(version):
|
||||||
return [
|
return [
|
||||||
{ "filename": 'node-{0}.tar.gz'.format(version), "required": True },
|
{ "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}.tar.gz'.format(version), "required": True },
|
||||||
{ "filename": 'iojs-{0}-headers.tar.gz'.format(version), "required": True },
|
{ "filename": 'iojs-{0}-headers.tar.gz'.format(version), "required": True },
|
||||||
{ "filename": 'node.lib', "required": False },
|
{ "filename": 'node.lib', "required": False },
|
||||||
{ "filename": 'x64/node.lib', "required": False },
|
{ "filename": 'x64/node.lib', "required": False },
|
||||||
{ "filename": 'win-x86/iojs.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':
|
if get_target_arch() == 'ia32':
|
||||||
node_lib = os.path.join(DIST_DIR, 'node.lib')
|
node_lib = os.path.join(DIST_DIR, 'node.lib')
|
||||||
iojs_lib = os.path.join(DIST_DIR, 'win-x86', 'iojs.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:
|
else:
|
||||||
node_lib = os.path.join(DIST_DIR, 'x64', 'node.lib')
|
node_lib = os.path.join(DIST_DIR, 'x64', 'node.lib')
|
||||||
iojs_lib = os.path.join(DIST_DIR, 'win-x64', 'iojs.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(node_lib))
|
||||||
safe_mkdir(os.path.dirname(iojs_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')
|
atom_lib = os.path.join(OUT_DIR, 'node.dll.lib')
|
||||||
shutil.copy2(atom_lib, node_lib)
|
shutil.copy2(atom_lib, node_lib)
|
||||||
shutil.copy2(atom_lib, iojs_lib)
|
shutil.copy2(atom_lib, iojs_lib)
|
||||||
|
shutil.copy2(atom_lib, v4_node_lib)
|
||||||
|
|
||||||
# Upload the node.lib.
|
# Upload the node.lib.
|
||||||
s3put(bucket, access_key, secret_key, DIST_DIR,
|
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,
|
s3put(bucket, access_key, secret_key, DIST_DIR,
|
||||||
'atom-shell/dist/{0}'.format(version), [iojs_lib])
|
'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__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
Loading…
Reference in a new issue