Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
more fixes for node-gyp install with version > 3
Browse files Browse the repository at this point in the history
auditors @bbondy
  • Loading branch information
bridiver committed Jun 7, 2017
1 parent b1bccb6 commit 1e79785
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/upload-node-checksums.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def get_files_list(version):
'x64/node.lib',
'win-x86/iojs.lib',
'win-x64/iojs.lib',
'win-x86/node.lib',
'win-x64/node.lib',
]


Expand Down
6 changes: 6 additions & 0 deletions script/upload-node-headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,27 @@ def upload_node(bucket, access_key, secret_key, version):
if PLATFORM == 'win32':
if get_target_arch() != 'x64':
node_lib = os.path.join(dist_dir(), 'node.lib')
node2_lib = os.path.join(dist_dir(), 'win-x86', 'node.lib')
iojs_lib = os.path.join(dist_dir(), 'win-x86', 'iojs.lib')
else:
node_lib = os.path.join(dist_dir(), 'x64', 'node.lib')
node2_lib = os.path.join(dist_dir(), 'win-x64', '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(node2_lib))
safe_mkdir(os.path.dirname(iojs_lib))

# Copy atom.lib to node.lib and iojs.lib.
atom_lib = os.path.join(output_dir(), 'node_import.lib')
shutil.copy2(atom_lib, node_lib)
shutil.copy2(atom_lib, node2_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])
s3put(bucket, access_key, secret_key, dist_dir(),
'atom-shell/dist/{0}'.format(version), [node2_lib])

# Upload the iojs.lib.
s3put(bucket, access_key, secret_key, dist_dir(),
Expand Down

0 comments on commit 1e79785

Please sign in to comment.