Skip to content

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

rename: compose/ → android/

XiaoYouChRc956d0d26876
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ec3e0dd5..294ed849 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -684,13 +684,13 @@ jobs:
run: pip install wheel
- name: Build libtorrent wheel
- working-directory: compose/build-scripts
+ working-directory: android/build-scripts
run: ./build_libtorrent_wheel.sh --abi=arm64-v8a
- uses: actions/upload-artifact@v7
with:
name: libtorrent-arm64-v8a
- path: compose/build-scripts/dist/libtorrent-*.whl
+ path: android/build-scripts/dist/libtorrent-*.whl
android-wreq:
if: ${{ github.event.inputs.build_target == 'android' || github.event.inputs.build_target == 'all' }}
@@ -706,13 +706,13 @@ jobs:
run: pip install lief wheel
- name: Patch wreq wheel
- working-directory: compose/build-scripts
+ working-directory: android/build-scripts
run: ./patch_wreq_wheel.sh --abi=arm64-v8a
- uses: actions/upload-artifact@v7
with:
name: wreq-arm64-v8a
- path: compose/build-scripts/dist/wreq-*.whl
+ path: android/build-scripts/dist/wreq-*.whl
android-goed2kd:
if: ${{ github.event.inputs.build_target == 'android' || github.event.inputs.build_target == 'all' }}
@@ -730,7 +730,7 @@ jobs:
go-version-file: Python-eD2k/go.mod
- name: Build goed2kd
- working-directory: compose/build-scripts
+ working-directory: android/build-scripts
env:
GOED2K_SRC: ${{ github.workspace }}/Python-eD2k
run: ./build_goed2kd.sh
@@ -738,7 +738,7 @@ jobs:
- uses: actions/upload-artifact@v7
with:
name: goed2kd-arm64-v8a
- path: compose/app/src/main/jniLibs/arm64-v8a/libgoed2kd.so
+ path: android/app/src/main/jniLibs/arm64-v8a/libgoed2kd.so
android-native-libs:
if: ${{ github.event.inputs.build_target == 'android' || github.event.inputs.build_target == 'all' }}
@@ -747,13 +747,13 @@ jobs:
- uses: actions/checkout@v7
- name: Fetch pre-built binaries
- working-directory: compose/build-scripts
+ working-directory: android/build-scripts
run: ./fetch_android_libs.sh
- uses: actions/upload-artifact@v7
with:
name: native-libs-arm64-v8a
- path: compose/app/src/main/jniLibs/arm64-v8a
+ path: android/app/src/main/jniLibs/arm64-v8a
build-android:
needs: [prepare, android-libtorrent, android-wreq, android-goed2kd, android-native-libs]
@@ -777,22 +777,22 @@ jobs:
- uses: actions/download-artifact@v8
with:
name: libtorrent-arm64-v8a
- path: compose/build-scripts/dist
+ path: android/build-scripts/dist
- uses: actions/download-artifact@v8
with:
name: wreq-arm64-v8a
- path: compose/build-scripts/dist
+ path: android/build-scripts/dist
- uses: actions/download-artifact@v8
with:
name: goed2kd-arm64-v8a
- path: compose/app/src/main/jniLibs/arm64-v8a
+ path: android/app/src/main/jniLibs/arm64-v8a
- uses: actions/download-artifact@v8
with:
name: native-libs-arm64-v8a
- path: compose/app/src/main/jniLibs/arm64-v8a
+ path: android/app/src/main/jniLibs/arm64-v8a
- uses: actions/setup-java@v6
with:
@@ -813,7 +813,7 @@ jobs:
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
run: |
echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.jks"
- cat > compose/keystore.properties <<EOF
+ cat > android/keystore.properties <<EOF
storeFile=$RUNNER_TEMP/release.jks
storePassword=$ANDROID_KEYSTORE_PASSWORD
keyAlias=$ANDROID_KEY_ALIAS
@@ -833,7 +833,7 @@ jobs:
- name: Rename APK
run: |
- APK=$(ls compose/app/build/outputs/apk/"$APK_VARIANT"/*.apk)
+ APK=$(ls android/app/build/outputs/apk/"$APK_VARIANT"/*.apk)
DEST="Ghost-Downloader-v${{ needs.prepare.outputs.version }}-Android-arm64-v8a.apk"
mv "$APK" "$DEST"
echo "APK_FILE=$DEST" >> "$GITHUB_ENV"
diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml
index 43d76a90..ca5f228e 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 compose/app/src/main/res
+ sudo chown -R "$(id -u):$(id -g)" .git app/assets android/app/src/main/res
rm -f .git/COMMIT_EDITMSG
python scripts/sync_i18n_res.py
@@ -120,6 +120,6 @@ jobs:
app/assets/i18n/*.ts
app/assets/i18n/*.qm
app/assets/resources.py
- compose/app/src/main/res/
+ android/app/src/main/res/
README.md
README_zh.md
diff --git a/crowdin.yml b/crowdin.yml
index b2db4401..f9bfbdc2 100644
--- a/crowdin.yml
+++ b/crowdin.yml
@@ -16,11 +16,11 @@ files:
pt-BR: pt_BR
es-ES: es_ES
- - source: /compose/app/src/main/res/values/strings*.xml
- translation: /compose/app/src/main/res/values-%android_code%/%original_file_name%
+ - source: /android/app/src/main/res/values/strings*.xml
+ translation: /android/app/src/main/res/values-%android_code%/%original_file_name%
type: android
ignore:
- - /compose/app/src/main/res/values/strings_engine.xml
+ - /android/app/src/main/res/values/strings_engine.xml
languages_mapping:
android_code:
en-US: en
diff --git a/tests/helpers.py b/tests/helpers.py
index e7ba5473..ba8b12d6 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -7,7 +7,7 @@ from types import ModuleType
from aiohttp import web
-ENGINE_PATH = Path(__file__).parents[1] / "compose/app/src/main/python/engine.py"
+ENGINE_PATH = Path(__file__).parents[1] / "android/app/src/main/python/engine.py"
class StubFlows: