File AppImageBuilder.yml of Package koi

# appimage-builder recipe see https://appimage-builder.readthedocs.io for details

version: 1

script:
  # Define Name and Version variables
  - export Name=Koi
  - export Version=0.5.1
  - export NO_STRIP=1  # Disable stripping for linuxdeploy
  # Install build dependencies (Fedora 42 package names)
  - sudo dnf install -y cmake extra-cmake-modules kf6-kconfig-devel kf6-kconfigwidgets-devel kf6-kcoreaddons-devel kf6-kwidgetsaddons-devel qt6-qtbase-devel qt6-qtsvg-devel
  # Download koi source
  - wget -q -nc https://github.com/baduhai/$Name/archive/$Version.tar.gz -O $Name-$Version.tar.gz
  # Build koi
  - tar -xzf        $Name-$Version.tar.gz
  - cmake -S        $Name-$Version -B $Name-$Version/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/AppDir/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
  - cmake --build   $Name-$Version/build/ --parallel
  - cmake --install $Name-$Version/build/
  # Prepare AppDir files
  - cp -a AppDir/usr/share/applications/local."$Name"DbusInterface.desktop -t AppDir/
  - cp -a AppDir/usr/share/icons/hicolor/scalable/apps/{koi,koi_tray}.svg  -t AppDir/

AppDir:
  path: ./AppDir

  app_info:
    id: dev.baduhai.Koi
    name: Koi
    icon: koi
    version: 0.6
    exec: usr/bin/koi
    exec_args: $@

  files:
    include:
      - /lib64/ld-linux-x86-64.so.2

    exclude:
      - usr/share/man
      - usr/share/doc/*/README.*
      - usr/share/doc/*/changelog.*
      - usr/share/doc/*/NEWS.*
      - usr/share/doc/*/TODO.*

  # deploy:
    # linuxdeploy:
      # plugins:
        # - kf6
        # - qt

  runtime:
    env:
      QT_PLUGIN_PATH: ${APPDIR}/usr/plugins
      XDG_DATA_DIRS: ${APPDIR}/usr/share:${XDG_DATA_DIRS}
      NO_STRIP: f"1"  # Disable stripping to avoid .relr.dyn errors

    # linuxdeploy_plugins:
      # - kf6
      # - qt

  test:
    fedora-30:
      image: appimagecrafters/tests-env:fedora-30
      command: ./AppRun
    debian-stable:
      image: appimagecrafters/tests-env:debian-stable
      command: ./AppRun
    archlinux-latest:
      image: appimagecrafters/tests-env:archlinux-latest
      command: ./AppRun
    centos-7:
      image: appimagecrafters/tests-env:centos-7
      command: ./AppRun
    ubuntu-xenial:
      image: appimagecrafters/tests-env:ubuntu-xenial
      command: ./AppRun

AppImage:
  arch: x86_64
  update-information: guess
  sign-key: None
openSUSE Build Service is sponsored by