You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
354 B
JavaScript
11 lines
354 B
JavaScript
5 years ago
|
const fs = require('fs');
|
||
|
const path = require('path');
|
||
|
const child = require('child_process');
|
||
|
|
||
|
exports.prebuild = async function prebuild() {
|
||
|
if (!fs.existsSync(path.resolve(__dirname, 'HydroJudger'))) {
|
||
|
const res = child.spawnSync('git clone https://github.com/hydro-dev/HydroJudger.git');
|
||
|
if (res.error) throw res.error;
|
||
|
}
|
||
|
};
|