@@ -864,24 +864,28 @@ jobs:
864864 VERSION=$(grep CMAKE_PROJECT_VERSION:STATIC deploy/build/CMakeCache.txt | cut -d= -f2)
865865
866866 (cd deploy/build/client/android-build && mv AmneziaVPN.apk AmneziaVPN_${VERSION}_android9+_universal.apk)
867- (cd deploy/build/client/android-build/build/outputs/bundle/release && mv android-build-release.aab AmneziaVPN_${VERSION}.aab)
868867
869868 for abi in arm64-v8a armeabi-v7a x86 x86_64; do
870869 deploy/build.sh -t android --sign --abi ${abi} --build ./deploy/build/${abi}
871870 (cd deploy/build/${abi}/client/android-build && mv AmneziaVPN.apk AmneziaVPN_${VERSION}_android9+_${abi}.apk)
872871 done
873872
873+ BASE_VERSION_CODE=$(grep -oP '(?<=set\(APP_ANDROID_VERSION_CODE )\d+' CMakeLists.txt)
874+ APP_ANDROID_MIN_SDK=30 APP_ANDROID_MAX_SDK=36 APP_ANDROID_VERSION_CODE=$((BASE_VERSION_CODE + 2)) deploy/build.sh -t android --sign --aab --build ./deploy/build/aab
875+
876+ (cd deploy/build/aab/client/android-build/build/outputs/bundle/release && mv android-build-release.aab AmneziaVPN_${VERSION}_android11-16.aab)
877+
874878 - name : ' Upload universal APK'
875879 uses : actions/upload-artifact@v7
876880 with :
877881 path : deploy/build/client/android-build/*.apk
878882 archive : false
879883 retention-days : 7
880884
881- - name : ' Upload AAB'
885+ - name : ' Upload android11-16 AAB'
882886 uses : actions/upload-artifact@v7
883887 with :
884- path : deploy/build/client/android-build/build/outputs/bundle/release/*.aab
888+ path : deploy/build/aab/ client/android-build/build/outputs/bundle/release/*.aab
885889 archive : false
886890 retention-days : 7
887891
@@ -1009,15 +1013,22 @@ jobs:
10091013 QT_ANDROID_KEYSTORE_PATH : ${{ github.workspace }}/android.keystore
10101014 QT_ANDROID_KEYSTORE_ALIAS : ${{ secrets.ANDROID_RELEASE_KEYSTORE_KEY_ALIAS }}
10111015 QT_ANDROID_KEYSTORE_STORE_PASS : ${{ secrets.ANDROID_RELEASE_KEYSTORE_KEY_PASS }}
1016+ APP_ANDROID_MIN_SDK : 28
1017+ APP_ANDROID_MAX_SDK : 29
10121018 shell : bash
10131019 run : |
10141020 for abi in arm64-v8a armeabi-v7a; do
10151021 deploy/build.sh -t android --sign --abi ${abi} --build ./deploy/build/${abi}
10161022
10171023 VERSION=$(grep CMAKE_PROJECT_VERSION:STATIC deploy/build/${abi}/CMakeCache.txt | cut -d= -f2)
1018- (cd deploy/build/${abi}/client/android-build && mv AmneziaVPN.apk AmneziaVPN_${VERSION}_android9+_qt_6_10_ ${abi}.apk)
1024+ (cd deploy/build/${abi}/client/android-build && mv AmneziaVPN.apk AmneziaVPN_${VERSION}_android9-10_qt_6_10_ ${abi}.apk)
10191025 done
10201026
1027+ BASE_VERSION_CODE=$(grep -oP '(?<=set\(APP_ANDROID_VERSION_CODE )\d+' CMakeLists.txt)
1028+ APP_ANDROID_VERSION_CODE=$((BASE_VERSION_CODE + 1)) deploy/build.sh -t android --sign --aab --build ./deploy/build/aab
1029+
1030+ (cd deploy/build/aab/client/android-build/build/outputs/bundle/release && mv android-build-release.aab AmneziaVPN_${VERSION}_android9-10.aab)
1031+
10211032 - name : ' Upload arm64-v8a APK'
10221033 uses : actions/upload-artifact@v7
10231034 with :
@@ -1032,6 +1043,13 @@ jobs:
10321043 archive : false
10331044 retention-days : 7
10341045
1046+ - name : ' Upload android9-10 AAB'
1047+ uses : actions/upload-artifact@v7
1048+ with :
1049+ path : deploy/build/aab/client/android-build/build/outputs/bundle/release/*.aab
1050+ archive : false
1051+ retention-days : 7
1052+
10351053# ------------------------------------------------------
10361054
10371055 Extra :
0 commit comments