Skip to content

The only downloader you need. 下载器的集大成者。

ci: Android 改为从私有仓库 checkout

XiaoYouChR28d2eaf42ce9
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8dfa3859..d061be01 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -676,6 +676,12 @@ jobs:
steps:
- uses: actions/checkout@v7
+ - uses: actions/checkout@v7
+ with:
+ repository: XiaoYouChR/Ghost-Downloader-Android
+ token: ${{ secrets.ANDROID_REPO_TOKEN }}
+ path: android
+
- uses: actions/setup-python@v7
with:
python-version: '3.14'
@@ -698,6 +704,12 @@ jobs:
steps:
- uses: actions/checkout@v7
+ - uses: actions/checkout@v7
+ with:
+ repository: XiaoYouChR/Ghost-Downloader-Android
+ token: ${{ secrets.ANDROID_REPO_TOKEN }}
+ path: android
+
- uses: actions/setup-python@v7
with:
python-version: '3.14'
@@ -720,6 +732,12 @@ jobs:
steps:
- uses: actions/checkout@v7
+ - uses: actions/checkout@v7
+ with:
+ repository: XiaoYouChR/Ghost-Downloader-Android
+ token: ${{ secrets.ANDROID_REPO_TOKEN }}
+ path: android
+
- uses: actions/checkout@v7
with:
repository: XiaoYouChR/Python-eD2k
@@ -746,6 +764,12 @@ jobs:
steps:
- uses: actions/checkout@v7
+ - uses: actions/checkout@v7
+ with:
+ repository: XiaoYouChR/Ghost-Downloader-Android
+ token: ${{ secrets.ANDROID_REPO_TOKEN }}
+ path: android
+
- name: Fetch pre-built binaries
working-directory: android/build-scripts
run: ./fetch_android_libs.sh
@@ -766,6 +790,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v7
+ - uses: actions/checkout@v7
+ with:
+ repository: XiaoYouChR/Ghost-Downloader-Android
+ token: ${{ secrets.ANDROID_REPO_TOKEN }}
+ path: android
+
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc \
diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml
index ca5f228e..327054e4 100644
--- a/.github/workflows/crowdin.yml
+++ b/.github/workflows/crowdin.yml
@@ -79,7 +79,7 @@ jobs:
- name: Prepare downloaded translations
if: github.event.inputs.operation == 'pull'
run: |
- sudo chown -R "$(id -u):$(id -g)" .git app/assets android/app/src/main/res
+ sudo chown -R "$(id -u):$(id -g)" .git app/assets
rm -f .git/COMMIT_EDITMSG
python scripts/sync_i18n_res.py
@@ -114,12 +114,10 @@ jobs:
This PR was created automatically by the Crowdin sync workflow.
It refreshes the Qt `.ts` files, compiled `.qm` files,
- `app/assets/resources.py`, Android string resources,
- and Crowdin contributors in both READMEs.
+ `app/assets/resources.py`, and Crowdin contributors in both READMEs.
add-paths: |
app/assets/i18n/*.ts
app/assets/i18n/*.qm
app/assets/resources.py
- android/app/src/main/res/
README.md
README_zh.md
diff --git a/.gitignore b/.gitignore
index fa834d6a..e85c820b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,3 +42,6 @@ browser_extension/firefox/
# Marketing screenshot portable profile (scripts/marketing_shots.py)
/GhostDownloader/
+
+# Android 是独立的私有仓库
+/android/
diff --git a/crowdin.yml b/crowdin.yml
index f9bfbdc2..edfb1c8e 100644
--- a/crowdin.yml
+++ b/crowdin.yml
@@ -16,17 +16,3 @@ files:
pt-BR: pt_BR
es-ES: es_ES
- - source: /android/app/src/main/res/values/strings*.xml
- translation: /android/app/src/main/res/values-%android_code%/%original_file_name%
- type: android
- ignore:
- - /android/app/src/main/res/values/strings_engine.xml
- languages_mapping:
- android_code:
- en-US: en
- ja: ja
- ru: ru
- zh-TW: zh-rTW
- zh-HK: zh-rHK
- pt-BR: pt-rBR
- es-ES: es