-
-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathupdate-deps.js
More file actions
27 lines (23 loc) · 617 Bytes
/
update-deps.js
File metadata and controls
27 lines (23 loc) · 617 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Copyright (c) Jonathan Cardoso Machado. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (process.platform !== 'win32') {
process.exit(0)
}
const { exec } = require('child_process')
const { resolve } = require('path')
const config = { cwd: resolve(__dirname, '..') }
exec(
'git submodule update --init --recursive && python deps/curl-for-windows/configure.py',
function (err) {
if (err) {
console.log(err.toString())
process.exit(1)
}
process.exit(0)
},
config,
)