improve build

This commit is contained in:
ruki
2022-12-24 00:26:14 +08:00
Unverified
parent 7fe5a044a6
commit 3f95b9879f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import { Version } from './interfaces';
async function install(sourceDir: string, binDir: string): Promise<void> {
if (fs.existsSync(path.join(sourceDir, 'configure'))) {
await exec('sh', ['./configure'], { cwd: sourceDir });
await exec('make', ["-j6"], { cwd: sourceDir });
await exec('make', ['-j6'], { cwd: sourceDir });
await exec('make', ['install', `PREFIX=${binDir}`], { cwd: sourceDir });
} else {
await exec('make', ['-j6'], { cwd: sourceDir });