The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
rename: compose/ → android/
XiaoYouChRc956d0d26876
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 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-scriptsrun: ./build_libtorrent_wheel.sh --abi=arm64-v8a- uses: actions/upload-artifact@v7with:name: libtorrent-arm64-v8a- path: compose/build-scripts/dist/libtorrent-*.whl+ path: android/build-scripts/dist/libtorrent-*.whlandroid-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-scriptsrun: ./patch_wreq_wheel.sh --abi=arm64-v8a- uses: actions/upload-artifact@v7with:name: wreq-arm64-v8a- path: compose/build-scripts/dist/wreq-*.whl+ path: android/build-scripts/dist/wreq-*.whlandroid-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-scriptsenv:GOED2K_SRC: ${{ github.workspace }}/Python-eD2krun: ./build_goed2kd.sh@@ -738,7 +738,7 @@ jobs:- uses: actions/upload-artifact@v7with:name: goed2kd-arm64-v8a- path: compose/app/src/main/jniLibs/arm64-v8a/libgoed2kd.so+ path: android/app/src/main/jniLibs/arm64-v8a/libgoed2kd.soandroid-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-scriptsrun: ./fetch_android_libs.sh- uses: actions/upload-artifact@v7with:name: native-libs-arm64-v8a- path: compose/app/src/main/jniLibs/arm64-v8a+ path: android/app/src/main/jniLibs/arm64-v8abuild-android:needs: [prepare, android-libtorrent, android-wreq, android-goed2kd, android-native-libs]@@ -777,22 +777,22 @@ jobs:- uses: actions/download-artifact@v8with:name: libtorrent-arm64-v8a- path: compose/build-scripts/dist+ path: android/build-scripts/dist- uses: actions/download-artifact@v8with:name: wreq-arm64-v8a- path: compose/build-scripts/dist+ path: android/build-scripts/dist- uses: actions/download-artifact@v8with:name: goed2kd-arm64-v8a- path: compose/app/src/main/jniLibs/arm64-v8a+ path: android/app/src/main/jniLibs/arm64-v8a- uses: actions/download-artifact@v8with: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@v6with:@@ -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 <<EOFstoreFile=$RUNNER_TEMP/release.jksstorePassword=$ANDROID_KEYSTORE_PASSWORDkeyAlias=$ANDROID_KEY_ALIAS@@ -833,7 +833,7 @@ jobs:- name: Rename APKrun: |- 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.ymlindex 43d76a90..ca5f228e 100644--- a/.github/workflows/crowdin.yml+++ b/.github/workflows/crowdin.yml@@ -79,7 +79,7 @@ jobs:- name: Prepare downloaded translationsif: 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/resrm -f .git/COMMIT_EDITMSGpython scripts/sync_i18n_res.py@@ -120,6 +120,6 @@ jobs:app/assets/i18n/*.tsapp/assets/i18n/*.qmapp/assets/resources.py- compose/app/src/main/res/+ android/app/src/main/res/README.mdREADME_zh.mddiff --git a/crowdin.yml b/crowdin.ymlindex b2db4401..f9bfbdc2 100644--- a/crowdin.yml+++ b/crowdin.yml@@ -16,11 +16,11 @@ files:pt-BR: pt_BRes-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: androidignore:- - /compose/app/src/main/res/values/strings_engine.xml+ - /android/app/src/main/res/values/strings_engine.xmllanguages_mapping:android_code:en-US: endiff --git a/tests/helpers.py b/tests/helpers.pyindex e7ba5473..ba8b12d6 100644--- a/tests/helpers.py+++ b/tests/helpers.py@@ -7,7 +7,7 @@ from types import ModuleTypefrom 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: