File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 6
6
import os
7
7
import sys
8
8
import time
9
+ import re
9
10
import getnwisrelease
10
11
import getnwversion
11
12
@@ -85,18 +86,19 @@ def aws_upload(upload_path, file_list):
85
86
sys .stdout .flush ()
86
87
bucket = conn .get_bucket (bucket_name )
87
88
print 'Uploading to: ' + upload_path
89
+ win_non_sdk = re .compile ('nw\d+_win\d+' )
88
90
for f in file_list :
89
91
print 'Uploading "' + f + '" ...'
90
92
sys .stdout .flush ()
91
93
# use '/' for s3
92
94
path_prefix = ''
93
95
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 ) :
95
97
continue
96
- if builder_name in [ 'nw24_win64' ] :
98
+ if 'win64' in builder_name :
97
99
path_prefix = 'x64'
98
100
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 ) :
100
102
continue
101
103
102
104
if f .startswith ('chromedriver' ) and 'sdk' not in builder_name :
You can’t perform that action at this time.
0 commit comments