This commit is contained in:
@@ -52,6 +52,27 @@ jobs:
|
||||
hash -r
|
||||
node --version
|
||||
|
||||
# ── 配置 Gradle / Maven 国内镜像(避免访问 gradle.org / google.com)────
|
||||
- name: Configure Gradle & Maven Mirrors
|
||||
run: |
|
||||
mkdir -p ~/.gradle/init.d
|
||||
cat > ~/.gradle/init.d/mirrors.gradle << 'EOF'
|
||||
allprojects {
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url "https://maven.aliyun.com/repository/google" }
|
||||
maven { url "https://maven.aliyun.com/repository/central" }
|
||||
maven { url "https://maven.aliyun.com/repository/gradle-plugins" }
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven { url "https://maven.aliyun.com/repository/google" }
|
||||
maven { url "https://maven.aliyun.com/repository/central" }
|
||||
maven { url "https://maven.aliyun.com/repository/gradle-plugins" }
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
# ── 构建中文版 APK ──────────────────────────────────────────────────────
|
||||
- name: Build zh APK
|
||||
run: |
|
||||
@@ -77,6 +98,8 @@ jobs:
|
||||
EOF
|
||||
npm install
|
||||
npx cap add android
|
||||
sed -i 's|services.gradle.org/distributions|mirrors.huaweicloud.com/gradle|g' \
|
||||
android/gradle/wrapper/gradle-wrapper.properties
|
||||
npx cap sync android
|
||||
python3 .github/patch_android.py --lang zh
|
||||
cd android
|
||||
@@ -111,6 +134,8 @@ jobs:
|
||||
EOF
|
||||
npm install
|
||||
npx cap add android
|
||||
sed -i 's|services.gradle.org/distributions|mirrors.huaweicloud.com/gradle|g' \
|
||||
android/gradle/wrapper/gradle-wrapper.properties
|
||||
npx cap sync android
|
||||
python3 .github/patch_android.py --lang en
|
||||
cd android
|
||||
|
||||
Reference in New Issue
Block a user