mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
fix: add artifact apk
This commit is contained in:
@@ -875,6 +875,20 @@ jobs:
|
|||||||
|
|
||||||
(cd deploy/build/play/client/android-build/build/outputs/bundle/playRelease && mv android-build-play-release.aab AmneziaVPN_${VERSION}_play.aab)
|
(cd deploy/build/play/client/android-build/build/outputs/bundle/playRelease && mv android-build-play-release.aab AmneziaVPN_${VERSION}_play.aab)
|
||||||
|
|
||||||
|
- name: 'Build Play APK'
|
||||||
|
env:
|
||||||
|
QT_INSTALL_DIR: ${{ runner.temp }}
|
||||||
|
QT_ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/android.keystore
|
||||||
|
QT_ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_RELEASE_KEYSTORE_KEY_ALIAS }}
|
||||||
|
QT_ANDROID_KEYSTORE_STORE_PASS: ${{ secrets.ANDROID_RELEASE_KEYSTORE_KEY_PASS }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
VERSION=$(grep CMAKE_PROJECT_VERSION:STATIC deploy/build/CMakeCache.txt | cut -d= -f2)
|
||||||
|
|
||||||
|
deploy/build.sh -t android --sign --apk --play --build ./deploy/build/play-apk
|
||||||
|
|
||||||
|
(cd deploy/build/play-apk/client/android-build && mv AmneziaVPN.apk AmneziaVPN_${VERSION}_play.apk)
|
||||||
|
|
||||||
- name: 'Upload universal APK'
|
- name: 'Upload universal APK'
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
@@ -896,6 +910,13 @@ jobs:
|
|||||||
archive: false
|
archive: false
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
|
- name: 'Upload Play APK'
|
||||||
|
uses: actions/upload-artifact@v7
|
||||||
|
with:
|
||||||
|
path: deploy/build/play-apk/client/android-build/*.apk
|
||||||
|
archive: false
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
- name: 'Upload arm64-v8a APK'
|
- name: 'Upload arm64-v8a APK'
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
|
|||||||
+7
-1
@@ -33,6 +33,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
--abi) abis+=("$2"); shift 2 ;;
|
--abi) abis+=("$2"); shift 2 ;;
|
||||||
--sign) : ${SIGN:=true}; shift ;;
|
--sign) : ${SIGN:=true}; shift ;;
|
||||||
--aab) : ${BUILD_AAB=true}; shift ;;
|
--aab) : ${BUILD_AAB=true}; shift ;;
|
||||||
|
--apk) : ${BUILD_APK=true}; shift ;;
|
||||||
--play) : ${BUILD_PLAY=true}; shift ;;
|
--play) : ${BUILD_PLAY=true}; shift ;;
|
||||||
--help|-h|?)
|
--help|-h|?)
|
||||||
echo "Usage: $0 [options]"
|
echo "Usage: $0 [options]"
|
||||||
@@ -46,7 +47,8 @@ while [[ $# -gt 0 ]]; do
|
|||||||
echo " --abi - specify Android ABIs for target to build for. all by default"
|
echo " --abi - specify Android ABIs for target to build for. all by default"
|
||||||
echo " --sign - whether to sign the resulting files. only appicable to Android"
|
echo " --sign - whether to sign the resulting files. only appicable to Android"
|
||||||
echo " --aab - whether to build AAB. only applicable to Android"
|
echo " --aab - whether to build AAB. only applicable to Android"
|
||||||
echo " --play - build Play flavor (Google Play Billing). use with --aab. only applicable to Android"
|
echo " --apk - whether to build APK. use with --play. only applicable to Android"
|
||||||
|
echo " --play - build Play flavor (Google Play Billing). use with --aab or --apk. only applicable to Android"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*) echo "Unknown arg \"$1\". Use $0 -h to get help"; exit 1 ;;
|
*) echo "Unknown arg \"$1\". Use $0 -h to get help"; exit 1 ;;
|
||||||
@@ -220,6 +222,10 @@ if [[ -n "$BUILD_AAB" ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$BUILD_APK" ]] && [[ -n "$BUILD_PLAY" ]]; then
|
||||||
|
run_traced cmake --build "$BUILD_PATH" --config "$CMAKE_BUILD_TYPE" -t "android_play_apk"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$no_installers" ]; then
|
if [ -z "$no_installers" ]; then
|
||||||
for installer in $INSTALLERS; do
|
for installer in $INSTALLERS; do
|
||||||
args=()
|
args=()
|
||||||
|
|||||||
Reference in New Issue
Block a user