[update] ci
This commit is contained in:
parent
e1b0275903
commit
afa2ed6b3b
@ -14,7 +14,7 @@ function main() {
|
||||
let gradle_cdn = 'https://alicdn.taoya.art/test/gradle-7.1.1-all.zip';
|
||||
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');
|
||||
let replaceFileContent = gradle_file.replace('https://services.gradle.org/distributions/gradle-${config.GRADLE_VERSION}-all.zip', `${gradle_cdn};`)
|
||||
let replaceFileContent = gradle_file.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}';`)
|
||||
fs.writeFileSync('./node_modules/cordova-android/lib/builders/ProjectBuilder.js', replaceFileContent)
|
||||
});
|
||||
revRun.stdout.on('data', function (data) {
|
||||
|
Loading…
Reference in New Issue
Block a user