final clean code
This commit is contained in:
parent
484d33e922
commit
d0b85813c7
4 changed files with 294 additions and 293 deletions
580
.github/workflows/deploy.yml
vendored
580
.github/workflows/deploy.yml
vendored
|
|
@ -9,132 +9,132 @@ env:
|
||||||
QT_MIRROR: https://mirrors.ocf.berkeley.edu/qt/ # https://download.qt.io/static/mirrorlist/
|
QT_MIRROR: https://mirrors.ocf.berkeley.edu/qt/ # https://download.qt.io/static/mirrorlist/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Build-Linux-Ubuntu:
|
Build-Linux-Ubuntu:
|
||||||
# runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
# env:
|
env:
|
||||||
# QT_VERSION: 6.6.2
|
QT_VERSION: 6.6.2
|
||||||
# QIF_VERSION: 4.7
|
QIF_VERSION: 4.7
|
||||||
# PROD_AGW_PUBLIC_KEY: ${{ secrets.PROD_AGW_PUBLIC_KEY }}
|
PROD_AGW_PUBLIC_KEY: ${{ secrets.PROD_AGW_PUBLIC_KEY }}
|
||||||
# DEV_AGW_PUBLIC_KEY: ${{ secrets.DEV_AGW_PUBLIC_KEY }}
|
DEV_AGW_PUBLIC_KEY: ${{ secrets.DEV_AGW_PUBLIC_KEY }}
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: 'Install Qt'
|
- name: 'Install Qt'
|
||||||
# uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
# with:
|
with:
|
||||||
# version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'linux'
|
host: 'linux'
|
||||||
# target: 'desktop'
|
target: 'desktop'
|
||||||
# arch: 'gcc_64'
|
arch: 'gcc_64'
|
||||||
# modules: 'qtremoteobjects qt5compat qtshadertools'
|
modules: 'qtremoteobjects qt5compat qtshadertools'
|
||||||
# dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
# setup-python: 'true'
|
setup-python: 'true'
|
||||||
# tools: 'tools_ifw'
|
tools: 'tools_ifw'
|
||||||
# set-env: 'true'
|
set-env: 'true'
|
||||||
# extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
||||||
|
|
||||||
# - name: 'Get sources'
|
- name: 'Get sources'
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# submodules: 'true'
|
submodules: 'true'
|
||||||
# fetch-depth: 10
|
fetch-depth: 10
|
||||||
|
|
||||||
# - name: 'Setup ccache'
|
- name: 'Setup ccache'
|
||||||
# uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
# - name: 'Build project'
|
- name: 'Build project'
|
||||||
# run: |
|
run: |
|
||||||
# sudo apt-get install libxkbcommon-x11-0
|
sudo apt-get install libxkbcommon-x11-0
|
||||||
# export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin
|
export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin
|
||||||
# export QIF_BIN_DIR=${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin
|
export QIF_BIN_DIR=${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin
|
||||||
# bash deploy/build_linux.sh
|
bash deploy/build_linux.sh
|
||||||
|
|
||||||
# - name: 'Pack installer'
|
- name: 'Pack installer'
|
||||||
# run: cd deploy && tar -cf AmneziaVPN_Linux_Installer.tar AmneziaVPN_Linux_Installer.bin
|
run: cd deploy && tar -cf AmneziaVPN_Linux_Installer.tar AmneziaVPN_Linux_Installer.bin
|
||||||
|
|
||||||
# - name: 'Upload installer artifact'
|
- name: 'Upload installer artifact'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN_Linux_installer.tar
|
name: AmneziaVPN_Linux_installer.tar
|
||||||
# path: deploy/AmneziaVPN_Linux_Installer.tar
|
path: deploy/AmneziaVPN_Linux_Installer.tar
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# - name: 'Upload unpacked artifact'
|
- name: 'Upload unpacked artifact'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN_Linux_unpacked
|
name: AmneziaVPN_Linux_unpacked
|
||||||
# path: deploy/AppDir
|
path: deploy/AppDir
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# - name: 'Upload translations artifact'
|
- name: 'Upload translations artifact'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN_translations
|
name: AmneziaVPN_translations
|
||||||
# path: client/translations
|
path: client/translations
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
# Build-Windows:
|
Build-Windows:
|
||||||
# runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
# env:
|
env:
|
||||||
# QT_VERSION: 6.6.2
|
QT_VERSION: 6.6.2
|
||||||
# QIF_VERSION: 4.7
|
QIF_VERSION: 4.7
|
||||||
# BUILD_ARCH: 64
|
BUILD_ARCH: 64
|
||||||
# PROD_AGW_PUBLIC_KEY: ${{ secrets.PROD_AGW_PUBLIC_KEY }}
|
PROD_AGW_PUBLIC_KEY: ${{ secrets.PROD_AGW_PUBLIC_KEY }}
|
||||||
# DEV_AGW_PUBLIC_KEY: ${{ secrets.DEV_AGW_PUBLIC_KEY }}
|
DEV_AGW_PUBLIC_KEY: ${{ secrets.DEV_AGW_PUBLIC_KEY }}
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: 'Get sources'
|
- name: 'Get sources'
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# submodules: 'true'
|
submodules: 'true'
|
||||||
# fetch-depth: 10
|
fetch-depth: 10
|
||||||
|
|
||||||
# - name: 'Setup ccache'
|
- name: 'Setup ccache'
|
||||||
# uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
# - name: 'Install Qt'
|
- name: 'Install Qt'
|
||||||
# uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
# with:
|
with:
|
||||||
# version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'windows'
|
host: 'windows'
|
||||||
# target: 'desktop'
|
target: 'desktop'
|
||||||
# arch: 'win64_msvc2019_64'
|
arch: 'win64_msvc2019_64'
|
||||||
# modules: 'qtremoteobjects qt5compat qtshadertools'
|
modules: 'qtremoteobjects qt5compat qtshadertools'
|
||||||
# dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
# setup-python: 'true'
|
setup-python: 'true'
|
||||||
# tools: 'tools_ifw'
|
tools: 'tools_ifw'
|
||||||
# set-env: 'true'
|
set-env: 'true'
|
||||||
# extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
||||||
|
|
||||||
# - name: 'Setup mvsc'
|
- name: 'Setup mvsc'
|
||||||
# uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
# with:
|
with:
|
||||||
# arch: 'x64'
|
arch: 'x64'
|
||||||
|
|
||||||
# - name: 'Build project'
|
- name: 'Build project'
|
||||||
# shell: cmd
|
shell: cmd
|
||||||
# run: |
|
run: |
|
||||||
# set BUILD_ARCH=${{ env.BUILD_ARCH }}
|
set BUILD_ARCH=${{ env.BUILD_ARCH }}
|
||||||
# set QT_BIN_DIR="${{ runner.temp }}\\Qt\\${{ env.QT_VERSION }}\\msvc2019_64\\bin"
|
set QT_BIN_DIR="${{ runner.temp }}\\Qt\\${{ env.QT_VERSION }}\\msvc2019_64\\bin"
|
||||||
# set QIF_BIN_DIR="${{ runner.temp }}\\Qt\\Tools\\QtInstallerFramework\\${{ env.QIF_VERSION }}\\bin"
|
set QIF_BIN_DIR="${{ runner.temp }}\\Qt\\Tools\\QtInstallerFramework\\${{ env.QIF_VERSION }}\\bin"
|
||||||
# call deploy\\build_windows.bat
|
call deploy\\build_windows.bat
|
||||||
|
|
||||||
# - name: 'Upload installer artifact'
|
- name: 'Upload installer artifact'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN_Windows_installer
|
name: AmneziaVPN_Windows_installer
|
||||||
# path: AmneziaVPN_x${{ env.BUILD_ARCH }}.exe
|
path: AmneziaVPN_x${{ env.BUILD_ARCH }}.exe
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# - name: 'Upload unpacked artifact'
|
- name: 'Upload unpacked artifact'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN_Windows_unpacked
|
name: AmneziaVPN_Windows_unpacked
|
||||||
# path: deploy\\build_${{ env.BUILD_ARCH }}\\client\\Release
|
path: deploy\\build_${{ env.BUILD_ARCH }}\\client\\Release
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -230,69 +230,69 @@ jobs:
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
# Build-MacOS:
|
Build-MacOS:
|
||||||
# runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
# env:
|
env:
|
||||||
# # Keep compat with MacOS 10.15 aka Catalina by Qt 6.4
|
# Keep compat with MacOS 10.15 aka Catalina by Qt 6.4
|
||||||
# QT_VERSION: 6.4.3
|
QT_VERSION: 6.4.3
|
||||||
# QIF_VERSION: 4.6
|
QIF_VERSION: 4.6
|
||||||
# PROD_AGW_PUBLIC_KEY: ${{ secrets.PROD_AGW_PUBLIC_KEY }}
|
PROD_AGW_PUBLIC_KEY: ${{ secrets.PROD_AGW_PUBLIC_KEY }}
|
||||||
# DEV_AGW_PUBLIC_KEY: ${{ secrets.DEV_AGW_PUBLIC_KEY }}
|
DEV_AGW_PUBLIC_KEY: ${{ secrets.DEV_AGW_PUBLIC_KEY }}
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: 'Setup xcode'
|
- name: 'Setup xcode'
|
||||||
# uses: maxim-lobanov/setup-xcode@v1
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
# with:
|
with:
|
||||||
# xcode-version: '14.3.1'
|
xcode-version: '14.3.1'
|
||||||
|
|
||||||
# - name: 'Install Qt'
|
- name: 'Install Qt'
|
||||||
# uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
# with:
|
with:
|
||||||
# version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'mac'
|
host: 'mac'
|
||||||
# target: 'desktop'
|
target: 'desktop'
|
||||||
# arch: 'clang_64'
|
arch: 'clang_64'
|
||||||
# modules: 'qtremoteobjects qt5compat qtshadertools'
|
modules: 'qtremoteobjects qt5compat qtshadertools'
|
||||||
# dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
# setup-python: 'true'
|
setup-python: 'true'
|
||||||
# set-env: 'true'
|
set-env: 'true'
|
||||||
# extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
||||||
|
|
||||||
# - name: 'Install Qt Installer Framework ${{ env.QIF_VERSION }}'
|
- name: 'Install Qt Installer Framework ${{ env.QIF_VERSION }}'
|
||||||
# run: |
|
run: |
|
||||||
# mkdir -pv ${{ runner.temp }}/Qt/Tools/QtInstallerFramework
|
mkdir -pv ${{ runner.temp }}/Qt/Tools/QtInstallerFramework
|
||||||
# wget https://qt.amzsvc.com/tools/ifw/${{ env.QIF_VERSION }}.zip
|
wget https://qt.amzsvc.com/tools/ifw/${{ env.QIF_VERSION }}.zip
|
||||||
# unzip ${{ env.QIF_VERSION }}.zip -d ${{ runner.temp }}/Qt/Tools/QtInstallerFramework/
|
unzip ${{ env.QIF_VERSION }}.zip -d ${{ runner.temp }}/Qt/Tools/QtInstallerFramework/
|
||||||
|
|
||||||
# - name: 'Get sources'
|
- name: 'Get sources'
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# submodules: 'true'
|
submodules: 'true'
|
||||||
# fetch-depth: 10
|
fetch-depth: 10
|
||||||
|
|
||||||
# - name: 'Setup ccache'
|
- name: 'Setup ccache'
|
||||||
# uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
# - name: 'Build project'
|
- name: 'Build project'
|
||||||
# run: |
|
run: |
|
||||||
# export QT_BIN_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/macos/bin"
|
export QT_BIN_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/macos/bin"
|
||||||
# export QIF_BIN_DIR="${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin"
|
export QIF_BIN_DIR="${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin"
|
||||||
# bash deploy/build_macos.sh
|
bash deploy/build_macos.sh
|
||||||
|
|
||||||
# - name: 'Upload installer artifact'
|
- name: 'Upload installer artifact'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN_MacOS_installer
|
name: AmneziaVPN_MacOS_installer
|
||||||
# path: AmneziaVPN.dmg
|
path: AmneziaVPN.dmg
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# - name: 'Upload unpacked artifact'
|
- name: 'Upload unpacked artifact'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN_MacOS_unpacked
|
name: AmneziaVPN_MacOS_unpacked
|
||||||
# path: deploy/build/client/AmneziaVPN.app
|
path: deploy/build/client/AmneziaVPN.app
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
Build-MacOS-NE:
|
Build-MacOS-NE:
|
||||||
|
|
@ -360,154 +360,154 @@ jobs:
|
||||||
MAC_SIGNING_CERT_PASSWORD: ${{ secrets.IOS_SIGNING_CERT_PASSWORD }}
|
MAC_SIGNING_CERT_PASSWORD: ${{ secrets.IOS_SIGNING_CERT_PASSWORD }}
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
# Build-Android:
|
Build-Android:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# env:
|
env:
|
||||||
# ANDROID_BUILD_PLATFORM: android-34
|
ANDROID_BUILD_PLATFORM: android-34
|
||||||
# QT_VERSION: 6.7.2
|
QT_VERSION: 6.7.2
|
||||||
# QT_MODULES: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
QT_MODULES: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
||||||
# PROD_AGW_PUBLIC_KEY: ${{ secrets.PROD_AGW_PUBLIC_KEY }}
|
PROD_AGW_PUBLIC_KEY: ${{ secrets.PROD_AGW_PUBLIC_KEY }}
|
||||||
# DEV_AGW_PUBLIC_KEY: ${{ secrets.DEV_AGW_PUBLIC_KEY }}
|
DEV_AGW_PUBLIC_KEY: ${{ secrets.DEV_AGW_PUBLIC_KEY }}
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: 'Install desktop Qt'
|
- name: 'Install desktop Qt'
|
||||||
# uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
# with:
|
with:
|
||||||
# version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'linux'
|
host: 'linux'
|
||||||
# target: 'desktop'
|
target: 'desktop'
|
||||||
# arch: 'linux_gcc_64'
|
arch: 'linux_gcc_64'
|
||||||
# modules: ${{ env.QT_MODULES }}
|
modules: ${{ env.QT_MODULES }}
|
||||||
# dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
# extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
||||||
|
|
||||||
# - name: 'Install android_x86_64 Qt'
|
- name: 'Install android_x86_64 Qt'
|
||||||
# uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
# with:
|
with:
|
||||||
# version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'linux'
|
host: 'linux'
|
||||||
# target: 'android'
|
target: 'android'
|
||||||
# arch: 'android_x86_64'
|
arch: 'android_x86_64'
|
||||||
# modules: ${{ env.QT_MODULES }}
|
modules: ${{ env.QT_MODULES }}
|
||||||
# dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
# extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
||||||
|
|
||||||
# - name: 'Install android_x86 Qt'
|
- name: 'Install android_x86 Qt'
|
||||||
# uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
# with:
|
with:
|
||||||
# version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'linux'
|
host: 'linux'
|
||||||
# target: 'android'
|
target: 'android'
|
||||||
# arch: 'android_x86'
|
arch: 'android_x86'
|
||||||
# modules: ${{ env.QT_MODULES }}
|
modules: ${{ env.QT_MODULES }}
|
||||||
# dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
# extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
||||||
|
|
||||||
# - name: 'Install android_armv7 Qt'
|
- name: 'Install android_armv7 Qt'
|
||||||
# uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
# with:
|
with:
|
||||||
# version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'linux'
|
host: 'linux'
|
||||||
# target: 'android'
|
target: 'android'
|
||||||
# arch: 'android_armv7'
|
arch: 'android_armv7'
|
||||||
# modules: ${{ env.QT_MODULES }}
|
modules: ${{ env.QT_MODULES }}
|
||||||
# dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
# extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
||||||
|
|
||||||
# - name: 'Install android_arm64_v8a Qt'
|
- name: 'Install android_arm64_v8a Qt'
|
||||||
# uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
# with:
|
with:
|
||||||
# version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'linux'
|
host: 'linux'
|
||||||
# target: 'android'
|
target: 'android'
|
||||||
# arch: 'android_arm64_v8a'
|
arch: 'android_arm64_v8a'
|
||||||
# modules: ${{ env.QT_MODULES }}
|
modules: ${{ env.QT_MODULES }}
|
||||||
# dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
# extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
|
||||||
|
|
||||||
# - name: 'Grant execute permission for qt-cmake'
|
- name: 'Grant execute permission for qt-cmake'
|
||||||
# shell: bash
|
shell: bash
|
||||||
# run: |
|
run: |
|
||||||
# chmod +x ${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/android_x86_64/bin/qt-cmake
|
chmod +x ${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/android_x86_64/bin/qt-cmake
|
||||||
|
|
||||||
# - name: 'Get sources'
|
- name: 'Get sources'
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# submodules: 'true'
|
submodules: 'true'
|
||||||
|
|
||||||
# - name: 'Setup ccache'
|
- name: 'Setup ccache'
|
||||||
# uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
# - name: 'Setup Java'
|
- name: 'Setup Java'
|
||||||
# uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
# with:
|
with:
|
||||||
# distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
# java-version: '17'
|
java-version: '17'
|
||||||
# cache: 'gradle'
|
cache: 'gradle'
|
||||||
|
|
||||||
# - name: 'Setup Android NDK'
|
- name: 'Setup Android NDK'
|
||||||
# id: setup-ndk
|
id: setup-ndk
|
||||||
# uses: nttld/setup-ndk@v1
|
uses: nttld/setup-ndk@v1
|
||||||
# with:
|
with:
|
||||||
# ndk-version: 'r26b'
|
ndk-version: 'r26b'
|
||||||
|
|
||||||
# - name: 'Decode keystore secret to file'
|
- name: 'Decode keystore secret to file'
|
||||||
# env:
|
env:
|
||||||
# KEYSTORE_BASE64: ${{ secrets.ANDROID_RELEASE_KEYSTORE_BASE64 }}
|
KEYSTORE_BASE64: ${{ secrets.ANDROID_RELEASE_KEYSTORE_BASE64 }}
|
||||||
# shell: bash
|
shell: bash
|
||||||
# run: |
|
run: |
|
||||||
# echo $KEYSTORE_BASE64 | base64 --decode > android.keystore
|
echo $KEYSTORE_BASE64 | base64 --decode > android.keystore
|
||||||
|
|
||||||
# - name: 'Build project'
|
- name: 'Build project'
|
||||||
# env:
|
env:
|
||||||
# ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
|
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||||
# QT_HOST_PATH: ${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/gcc_64
|
QT_HOST_PATH: ${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/gcc_64
|
||||||
# ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/android.keystore
|
ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/android.keystore
|
||||||
# ANDROID_KEYSTORE_KEY_ALIAS: ${{ secrets.ANDROID_RELEASE_KEYSTORE_KEY_ALIAS }}
|
ANDROID_KEYSTORE_KEY_ALIAS: ${{ secrets.ANDROID_RELEASE_KEYSTORE_KEY_ALIAS }}
|
||||||
# ANDROID_KEYSTORE_KEY_PASS: ${{ secrets.ANDROID_RELEASE_KEYSTORE_KEY_PASS }}
|
ANDROID_KEYSTORE_KEY_PASS: ${{ secrets.ANDROID_RELEASE_KEYSTORE_KEY_PASS }}
|
||||||
# shell: bash
|
shell: bash
|
||||||
# run: ./deploy/build_android.sh --aab --apk all --build-platform ${{ env.ANDROID_BUILD_PLATFORM }}
|
run: ./deploy/build_android.sh --aab --apk all --build-platform ${{ env.ANDROID_BUILD_PLATFORM }}
|
||||||
|
|
||||||
# - name: 'Upload x86_64 apk'
|
- name: 'Upload x86_64 apk'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN-android-x86_64
|
name: AmneziaVPN-android-x86_64
|
||||||
# path: deploy/build/AmneziaVPN-x86_64-release.apk
|
path: deploy/build/AmneziaVPN-x86_64-release.apk
|
||||||
# compression-level: 0
|
compression-level: 0
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# - name: 'Upload x86 apk'
|
- name: 'Upload x86 apk'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN-android-x86
|
name: AmneziaVPN-android-x86
|
||||||
# path: deploy/build/AmneziaVPN-x86-release.apk
|
path: deploy/build/AmneziaVPN-x86-release.apk
|
||||||
# compression-level: 0
|
compression-level: 0
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# - name: 'Upload arm64-v8a apk'
|
- name: 'Upload arm64-v8a apk'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN-android-arm64-v8a
|
name: AmneziaVPN-android-arm64-v8a
|
||||||
# path: deploy/build/AmneziaVPN-arm64-v8a-release.apk
|
path: deploy/build/AmneziaVPN-arm64-v8a-release.apk
|
||||||
# compression-level: 0
|
compression-level: 0
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# - name: 'Upload armeabi-v7a apk'
|
- name: 'Upload armeabi-v7a apk'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN-android-armeabi-v7a
|
name: AmneziaVPN-android-armeabi-v7a
|
||||||
# path: deploy/build/AmneziaVPN-armeabi-v7a-release.apk
|
path: deploy/build/AmneziaVPN-armeabi-v7a-release.apk
|
||||||
# compression-level: 0
|
compression-level: 0
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# - name: 'Upload aab'
|
- name: 'Upload aab'
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: AmneziaVPN-android
|
name: AmneziaVPN-android
|
||||||
# path: deploy/build/AmneziaVPN-release.aab
|
path: deploy/build/AmneziaVPN-release.aab
|
||||||
# compression-level: 0
|
compression-level: 0
|
||||||
# retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
Extra:
|
Extra:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -343,7 +343,7 @@ if(LINUX AND NOT ANDROID)
|
||||||
set(LIBS ${LIBS} -static-libstdc++ -static-libgcc -ldl)
|
set(LIBS ${LIBS} -static-libstdc++ -static-libgcc -ldl)
|
||||||
link_directories(${CMAKE_CURRENT_LIST_DIR}/platforms/linux)
|
link_directories(${CMAKE_CURRENT_LIST_DIR}/platforms/linux)
|
||||||
endif()
|
endif()
|
||||||
message("In here")
|
|
||||||
# Macos Network Extension doesn't need
|
# Macos Network Extension doesn't need
|
||||||
if(WIN32 OR (APPLE AND NOT IOS AND NOT MACOS_NE) OR (LINUX AND NOT ANDROID))
|
if(WIN32 OR (APPLE AND NOT IOS AND NOT MACOS_NE) OR (LINUX AND NOT ANDROID))
|
||||||
message("-----> Client desktop build")
|
message("-----> Client desktop build")
|
||||||
|
|
@ -431,12 +431,13 @@ if(MACOS_NE)
|
||||||
"$<TARGET_BUNDLE_DIR:AmneziaVPN>/Contents/Frameworks"
|
"$<TARGET_BUNDLE_DIR:AmneziaVPN>/Contents/Frameworks"
|
||||||
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
"/Users/macbook/Qt/6.8.0/macos/lib/QtConcurrent.framework"
|
"$ENV{QT_HOST_PATH}/lib/QtConcurrent.framework"
|
||||||
"$<TARGET_BUNDLE_DIR:AmneziaVPN>/Contents/Frameworks/QtConcurrent.framework"
|
"$<TARGET_BUNDLE_DIR:AmneziaVPN>/Contents/Frameworks/QtConcurrent.framework"
|
||||||
|
|
||||||
COMMENT "Copying QtConcurrent.framework to the bundle's Frameworks directory"
|
COMMENT "Copying QtConcurrent.framework from QT_HOST_PATH to the bundle's Frameworks directory"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# MacOS specific application deployment
|
# MacOS specific application deployment
|
||||||
add_custom_command(TARGET ${PROJECT} POST_BUILD
|
add_custom_command(TARGET ${PROJECT} POST_BUILD
|
||||||
COMMAND ${QT_BIN_DIR_DETECTED}/macdeployqt $<TARGET_BUNDLE_DIR:AmneziaVPN> -appstore-compliant -qmldir=${CMAKE_CURRENT_SOURCE_DIR}
|
COMMAND ${QT_BIN_DIR_DETECTED}/macdeployqt $<TARGET_BUNDLE_DIR:AmneziaVPN> -appstore-compliant -qmldir=${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue