Skip to content

Commit 131b194

Browse files
MarshallOfSoundJohn Kleinschmidt
authored andcommitted
chore: upload node.lib for v4 (electron#14829)
Closes electron#14828
1 parent 7dc7cd1 commit 131b194

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

script/upload-node-checksums.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,15 @@ def parse_args():
5252
def get_files_list(version):
5353
return [
5454
{ "filename": 'node-{0}.tar.gz'.format(version), "required": True },
55+
{ "filename": 'node-{0}-headers.tar.gz'.format(version), "required": True },
5556
{ "filename": 'iojs-{0}.tar.gz'.format(version), "required": True },
5657
{ "filename": 'iojs-{0}-headers.tar.gz'.format(version), "required": True },
5758
{ "filename": 'node.lib', "required": False },
5859
{ "filename": 'x64/node.lib', "required": False },
5960
{ "filename": 'win-x86/iojs.lib', "required": False },
60-
{ "filename": 'win-x64/iojs.lib', "required": False }
61+
{ "filename": 'win-x64/iojs.lib', "required": False },
62+
{ "filename": 'win-x86/node.lib', "required": False },
63+
{ "filename": 'win-x64/node.lib', "required": False }
6164
]
6265

6366

script/upload-node-headers.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,19 @@ def upload_node(bucket, access_key, secret_key, version):
4040
if get_target_arch() == 'ia32':
4141
node_lib = os.path.join(DIST_DIR, 'node.lib')
4242
iojs_lib = os.path.join(DIST_DIR, 'win-x86', 'iojs.lib')
43+
v4_node_lib = os.path.join(DIST_DIR, 'win-x86', 'node.lib')
4344
else:
4445
node_lib = os.path.join(DIST_DIR, 'x64', 'node.lib')
4546
iojs_lib = os.path.join(DIST_DIR, 'win-x64', 'iojs.lib')
47+
v4_node_lib = os.path.join(DIST_DIR, 'win-x64', 'node.lib')
4648
safe_mkdir(os.path.dirname(node_lib))
4749
safe_mkdir(os.path.dirname(iojs_lib))
4850

49-
# Copy atom.lib to node.lib and iojs.lib.
51+
# Copy atom.lib to node.lib, iojs.lib and v4 node.lib
5052
atom_lib = os.path.join(OUT_DIR, 'node.dll.lib')
5153
shutil.copy2(atom_lib, node_lib)
5254
shutil.copy2(atom_lib, iojs_lib)
55+
shutil.copy2(atom_lib, v4_node_lib)
5356

5457
# Upload the node.lib.
5558
s3put(bucket, access_key, secret_key, DIST_DIR,
@@ -59,6 +62,10 @@ def upload_node(bucket, access_key, secret_key, version):
5962
s3put(bucket, access_key, secret_key, DIST_DIR,
6063
'atom-shell/dist/{0}'.format(version), [iojs_lib])
6164

65+
# Upload the v4 node.lib.
66+
s3put(bucket, access_key, secret_key, DIST_DIR,
67+
'atom-shell/dist/{0}'.format(version), [v4_node_lib])
68+
6269

6370
if __name__ == '__main__':
6471
sys.exit(main())

0 commit comments

Comments
 (0)