Fix executing upload-node-headers.py in cygwin
This commit is contained in:
parent
241e410a07
commit
7df1957ac7
1 changed files with 11 additions and 11 deletions
|
@ -105,10 +105,9 @@ def copy_source_file(source, start, destination):
|
||||||
|
|
||||||
|
|
||||||
def upload_node(bucket, access_key, secret_key, version):
|
def upload_node(bucket, access_key, secret_key, version):
|
||||||
os.chdir(DIST_DIR)
|
with scoped_cwd(DIST_DIR):
|
||||||
|
s3put(bucket, access_key, secret_key, DIST_DIR,
|
||||||
s3put(bucket, access_key, secret_key, DIST_DIR,
|
'atom-shell/dist/{0}'.format(version), glob.glob('node-*.tar.gz'))
|
||||||
'atom-shell/dist/{0}'.format(version), glob.glob('node-*.tar.gz'))
|
|
||||||
|
|
||||||
if TARGET_PLATFORM == 'win32':
|
if TARGET_PLATFORM == 'win32':
|
||||||
# Generate the node.lib.
|
# Generate the node.lib.
|
||||||
|
@ -127,13 +126,14 @@ def upload_node(bucket, access_key, secret_key, version):
|
||||||
'atom-shell/dist/{0}'.format(version), [node_lib])
|
'atom-shell/dist/{0}'.format(version), [node_lib])
|
||||||
|
|
||||||
# Upload the index.json
|
# Upload the index.json
|
||||||
atom_shell = os.path.join(OUT_DIR, 'atom.exe')
|
with scoped_cwd(SOURCE_ROOT):
|
||||||
index_json = os.path.join(OUT_DIR, 'index.json')
|
atom_shell = os.path.join(OUT_DIR, 'atom.exe')
|
||||||
execute([atom_shell,
|
index_json = os.path.relpath(os.path.join(OUT_DIR, 'index.json'))
|
||||||
os.path.join(SOURCE_ROOT, 'script', 'dump-version-info.js'),
|
execute([atom_shell,
|
||||||
index_json])
|
os.path.join('script', 'dump-version-info.js'),
|
||||||
s3put(bucket, access_key, secret_key, OUT_DIR, 'atom-shell/dist',
|
index_json])
|
||||||
[index_json])
|
s3put(bucket, access_key, secret_key, OUT_DIR, 'atom-shell/dist',
|
||||||
|
[index_json])
|
||||||
|
|
||||||
|
|
||||||
def touch_x64_node_lib():
|
def touch_x64_node_lib():
|
||||||
|
|
Loading…
Reference in a new issue