diff --git a/script/upload-checksums.py b/script/upload-checksums.py index 4c1cfe9e8..c71425126 100755 --- a/script/upload-checksums.py +++ b/script/upload-checksums.py @@ -39,8 +39,11 @@ def parse_args(): def get_files_list(version): return [ 'node-{0}.tar.gz'.format(version), + 'iojs-{0}.tar.gz'.format(version), 'node.lib', 'x64/node.lib', + 'win-x86/iojs.lib', + 'win-x64/iojs.lib', ] diff --git a/script/upload-node-headers.py b/script/upload-node-headers.py index 86335b2b6..628f3c2ea 100755 --- a/script/upload-node-headers.py +++ b/script/upload-node-headers.py @@ -38,10 +38,13 @@ def main(): safe_mkdir(DIST_DIR) args = parse_args() - dist_headers_dir = os.path.join(DIST_DIR, 'node-{0}'.format(args.version)) + node_headers_dir = os.path.join(DIST_DIR, 'node-{0}'.format(args.version)) + iojs_headers_dir = os.path.join(DIST_DIR, 'iojs-{0}'.format(args.version)) - copy_headers(dist_headers_dir) - create_header_tarball(dist_headers_dir) + copy_headers(node_headers_dir) + create_header_tarball(node_headers_dir) + copy_headers(iojs_headers_dir) + create_header_tarball(iojs_headers_dir) # Upload node's headers to S3. bucket, access_key, secret_key = s3_config() @@ -107,18 +110,26 @@ def upload_node(bucket, access_key, secret_key, version): if PLATFORM == 'win32': 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') else: node_lib = os.path.join(DIST_DIR, 'x64', 'node.lib') - safe_mkdir(os.path.dirname(node_lib)) + iojs_lib = os.path.join(DIST_DIR, 'win-x64', 'iojs.lib') + safe_mkdir(os.path.dirname(node_lib)) + safe_mkdir(os.path.dirname(iojs_lib)) - # Copy atom.lib to node.lib + # Copy atom.lib to node.lib and iojs.lib. atom_lib = os.path.join(OUT_DIR, 'node.dll.lib') shutil.copy2(atom_lib, node_lib) + shutil.copy2(atom_lib, iojs_lib) # Upload the node.lib. s3put(bucket, access_key, secret_key, DIST_DIR, 'atom-shell/dist/{0}'.format(version), [node_lib]) + # Upload the iojs.lib. + s3put(bucket, access_key, secret_key, DIST_DIR, + 'atom-shell/dist/{0}'.format(version), [iojs_lib]) + if __name__ == '__main__': sys.exit(main())