Skip to content

Commit 6abb3d7

Browse files
committed
[tools] upload nw headers without version information
1 parent 7aec659 commit 6abb3d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/aws_uploader.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import os
77
import sys
88
import time
9+
import re
910
import getnwisrelease
1011
import getnwversion
1112

@@ -85,18 +86,19 @@ def aws_upload(upload_path, file_list):
8586
sys.stdout.flush()
8687
bucket = conn.get_bucket(bucket_name)
8788
print 'Uploading to: ' + upload_path
89+
win_non_sdk = re.compile('nw\d+_win\d+')
8890
for f in file_list:
8991
print 'Uploading "' + f + '" ...'
9092
sys.stdout.flush()
9193
# use '/' for s3
9294
path_prefix = ''
9395
if (f in ['nw.lib', 'nw.exp', 'node.lib', 'node.exp'] ) :
94-
if not builder_name in ['nw24_win64', 'nw24_win32'] :
96+
if not win_non_sdk.match(builder_name) :
9597
continue
96-
if builder_name in ['nw24_win64'] :
98+
if 'win64' in builder_name :
9799
path_prefix = 'x64'
98100

99-
if (f.startswith('node-v') or f.startswith('nw-header') or f == 'SHASUMS256.txt') and not builder_name in ['nw24_sdk_mac64'] :
101+
if (f.startswith('node-v') or f.startswith('nw-header') or f == 'SHASUMS256.txt') and not ('_sdk_mac64' in builder_name) :
100102
continue
101103

102104
if f.startswith('chromedriver') and 'sdk' not in builder_name :

0 commit comments

Comments
 (0)