Skip to content

Commit

Permalink
AppImageBuilder
Browse files Browse the repository at this point in the history
IB-7219

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma committed Mar 2, 2023
1 parent d927543 commit fae5ea1
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,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: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- name: Build
run: cmake --build build --target install -- DESTDIR=${PWD}/AppDir
- 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')
Expand Down
63 changes: 63 additions & 0 deletions AppImageBuilder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: 1
script: |
find .
# remove any existent binaries
#rm -rf AppDir | true
# compile and install binaries into AppDir
#cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
#cmake --build build --target install -- DESTDIR=AppDir
AppDir:
path: ./AppDir
app_info:
id: qdigidoc4
name: DigiDoc4 Client
icon: qdigidoc4
version: 4.2.13
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

0 comments on commit fae5ea1

Please sign in to comment.