🔧 Improve china mirroring speed

This commit is contained in:
Tw93
2024-05-09 20:00:16 +08:00
parent bb3b1b3d59
commit 4df5a667d7
2 changed files with 3 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ export default abstract class BaseBuilder {
const isChina = await isChinaDomain('www.npmjs.com');
const spinner = getSpinner('Installing package...');
const rustProjectDir = path.join(tauriSrcPath, '.cargo');
const projectConf = path.join(rustProjectDir, 'config');
const projectConf = path.join(rustProjectDir, 'config.toml');
await fsExtra.ensureDir(rustProjectDir);
if (isChina) {
@@ -73,7 +73,7 @@ export default abstract class BaseBuilder {
async start(url: string) {
await mergeConfig(url, this.options, tauriConfig);
}
}
async buildAndCopy(url: string, target: string) {
const { name } = this.options;