This commit is contained in:
@@ -52,6 +52,27 @@ jobs:
|
|||||||
hash -r
|
hash -r
|
||||||
node --version
|
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 ──────────────────────────────────────────────────────
|
# ── 构建中文版 APK ──────────────────────────────────────────────────────
|
||||||
- name: Build zh APK
|
- name: Build zh APK
|
||||||
run: |
|
run: |
|
||||||
@@ -77,6 +98,8 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
npm install
|
npm install
|
||||||
npx cap add android
|
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
|
npx cap sync android
|
||||||
python3 .github/patch_android.py --lang zh
|
python3 .github/patch_android.py --lang zh
|
||||||
cd android
|
cd android
|
||||||
@@ -111,6 +134,8 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
npm install
|
npm install
|
||||||
npx cap add android
|
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
|
npx cap sync android
|
||||||
python3 .github/patch_android.py --lang en
|
python3 .github/patch_android.py --lang en
|
||||||
cd android
|
cd android
|
||||||
|
|||||||
Reference in New Issue
Block a user