From 918bcf167629e274eb8b0c92d80113b32b1e1d27 Mon Sep 17 00:00:00 2001 From: taoya7 Date: Tue, 24 May 2022 14:58:21 +0800 Subject: [PATCH] [update] ci --- cmd/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/init.js b/cmd/init.js index 4a7b6a7..1f64cbf 100644 --- a/cmd/init.js +++ b/cmd/init.js @@ -15,7 +15,7 @@ function main() { console.log(process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL); let gradle_file = fs.readFileSync('./node_modules/cordova-android/lib/builders/ProjectBuilder.js').toString('utf-8'); console.log(gradle_file); - let replaceFileContent = oldFile.replace('const distributionUrl = process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL || `https://services.gradle.org/distributions/gradle-${config.GRADLE_VERSION}-all.zip`;', `const distributionUrl = ${gradle_cdn};`) + let replaceFileContent = oldFile.replace('https://services.gradle.org/distributions/gradle-${config.GRADLE_VERSION}-all.zip', `${gradle_cdn};`) fs.writeFileSync('./node_modules/cordova-android/lib/builders/ProjectBuilder.js', replaceFileContent) }); revRun.stdout.on('data', function (data) {