forked from iotaledger-archive/trinity-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfull-setup.js
More file actions
22 lines (21 loc) · 766 Bytes
/
full-setup.js
File metadata and controls
22 lines (21 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* eslint-disable no-console */
const cmd = require('node-cmd');
const os = require('os');
if (os.type() === 'Linux') {
cmd.get('cd src/desktop && yarn && cd ../shared && yarn && cd ../mobile && yarn', (err, data) => {
console.log(data);
});
} else if (os.type() === 'Darwin') {
cmd.get(
'cd src/desktop && yarn && cd ../shared && yarn && cd ../mobile && yarn && cd ios && pod install',
(err, data) => {
console.log(data);
},
);
} else if (os.type() === 'Windows' || os.type() === 'Windows_NT') {
cmd.get('cd src/desktop && yarn && cd ../shared && yarn && cd ../mobile && yarn', (err, data) => {
console.log(data);
});
} else {
throw new Error('Unsupported OS found: ' + os.type());
}