mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
11 lines
354 B
JavaScript
11 lines
354 B
JavaScript
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;
|
|
}
|
|
};
|