We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 766347f commit 5fe9f28Copy full SHA for 5fe9f28
script/build.py
@@ -20,7 +20,7 @@ def main():
20
args = parse_args()
21
for config in args.configuration:
22
build_path = os.path.join('out', config)
23
- subprocess.call([ninja, '-C', build_path])
+ subprocess.call([ninja, '-C', build_path, args.target])
24
25
26
def parse_args():
@@ -30,6 +30,10 @@ def parse_args():
30
nargs='+',
31
default=CONFIGURATIONS,
32
required=False)
33
+ parser.add_argument('-t', '--target',
34
+ help='Build specified target',
35
+ default='atom',
36
+ required=False)
37
return parser.parse_args()
38
39
script/upload.py
@@ -64,12 +64,17 @@ def dist_newer_than_head():
64
def upload(bucket, access_key, secret_key, version=ATOM_SHELL_VRESION):
65
os.chdir(DIST_DIR)
66
67
- # s3put(bucket, access_key, secret_key, DIST_DIR,
68
- # 'atom-shell/{0}'.format(version), [DIST_NAME])
+ s3put(bucket, access_key, secret_key, DIST_DIR,
+ 'atom-shell/{0}'.format(version), [DIST_NAME])
69
s3put(bucket, access_key, secret_key, DIST_DIR,
70
'atom-shell/dist/{0}'.format(NODE_VERSION), glob.glob('node-*.tar.gz'))
71
72
if TARGET_PLATFORM == 'win32':
73
+ # Generate the node.lib.
74
+ build = os.path.join(SOURCE_ROOT, 'script', 'build.py')
75
+ subprocess.check_call([sys.executable, build, '-c', 'Release',
76
+ '-t', 'generate_node_lib'])
77
+
78
out_dir = os.path.join(SOURCE_ROOT, 'out', 'Release')
79
node_lib = os.path.join(out_dir, 'node.lib')
80
s3put(bucket, access_key, secret_key, out_dir,
0 commit comments