From eaf31b31512393bdcfb970c97fd3489b2159dcc4 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Fri, 15 Jul 2022 13:20:16 +0300 Subject: [PATCH] AppImageBuilder IB-7219 Signed-off-by: Raul Metsma --- .github/workflows/build.yml | 32 +++++++++++++++++++ AppImageBuilder.yml | 62 +++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 AppImageBuilder.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d390eec85..394a1fcb9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -212,6 +212,38 @@ jobs: path: | build/*.msi build/*.appx + appimage: + name: Build AppImage + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Install dependencies + run: sudo apt update -qq && sudo apt install --no-install-recommends -y cmake libldap2-dev gettext libpcsclite-dev libminizip-dev libxml-security-c-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev + - name: Download artifact + uses: dawidd6/action-download-artifact@v2 + with: + workflow: build.yml + branch: master + name: debs + path: libdigidocpp-pkg + repo: open-eid/libdigidocpp + - name: Install artifact + run: sudo dpkg -i libdigidocpp-pkg/*$(lsb_release -rs)*.deb + - name: Build + run: | + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -B build -S . + DESTDIR=AppDir cmake --build build --target all package + - name: Build AppImage + uses: AppImageCrafters/build-appimage-action@master + with: + recipe: AppImageBuilder.yml + - uses: actions/upload-artifact@v3 + with: + name: AppImage + path: './*.AppImage*' coverity: name: Run Coverity tests if: contains(github.repository, 'open-eid/DigiDoc4-Client') && contains(github.ref, 'coverity_scan') diff --git a/AppImageBuilder.yml b/AppImageBuilder.yml new file mode 100644 index 000000000..95a3088af --- /dev/null +++ b/AppImageBuilder.yml @@ -0,0 +1,62 @@ +version: 1 +script: | + # remove any existent binaries + #rm -rf AppDir | true + # compile and install binaries into AppDir + #cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + #make install DESTDIR=AppDir +AppDir: + path: ./AppDir + app_info: + id: qdigidoc4 + name: DigiDoc4 Client + icon: qdigidoc4 + version: 4.2.12 + exec: usr/bin/qdigidoc4 + apt: + arch: amd64 + sources: + - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' + key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] https://installer.id.ee/media/ubuntu/ focal main' + key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xC6C83D68' + include: + - libdigidocpp1 + - libpcsclite1 + - libqt5network5 + - libqt5printsupport5 + - libqt5svg5 + - opensc-pkcs11 + files: + exclude: + - usr/share/doc + - usr/share/lintian/overrides + - usr/share/man + runtime: + env: + APPDIR_LIBRARY_PATH: $APPDIR/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu + test: + fedora: + image: appimagecrafters/tests-env:fedora-30 + command: ./AppRun + use_host_x: true + debian: + image: appimagecrafters/tests-env:debian-stable + command: ./AppRun + use_host_x: true + arch: + image: appimagecrafters/tests-env:archlinux-latest + command: ./AppRun + use_host_x: true + centos: + image: appimagecrafters/tests-env:centos-7 + command: ./AppRun + use_host_x: true + ubuntu: + image: appimagecrafters/tests-env:ubuntu-xenial + command: ./AppRun + use_host_x: true +AppImage: + arch: x86_64