# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
version: 1
script:
 - rm -rf AppDir || true
 - mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/
 - cp -a dist/kcc_linux* AppDir/ && mv AppDir/kcc_linux* AppDir/kcc_linux
 - cp icons/comic2ebook.png AppDir/usr/share/icons/hicolor/64x64/apps/
AppDir:
  path: AppDir
  app_info:
    id: com.github.ciromattia.kcc
    name: kindleComicConverter
    icon: comic2ebook
    version: latest
    exec: ./kcc_linux
    exec_args: $@
  apt:
    arch:
    - amd64
    allow_unauthenticated: true
    sources:
    - sourceline: deb http://archive.ubuntu.com/ubuntu jammy main restricted
    - sourceline: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted
    - sourceline: deb http://archive.ubuntu.com/ubuntu jammy universe
    - sourceline: deb http://archive.ubuntu.com/ubuntu jammy-updates universe
    - sourceline: deb http://archive.ubuntu.com/ubuntu jammy multiverse
    - sourceline: deb http://archive.ubuntu.com/ubuntu jammy-updates multiverse
    - sourceline: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted
        universe multiverse
    - sourceline: deb http://security.ubuntu.com/ubuntu jammy-security main restricted
    - sourceline: deb http://security.ubuntu.com/ubuntu jammy-security universe
    - sourceline: deb http://security.ubuntu.com/ubuntu jammy-security multiverse
    include:
      - libc6:amd64
  files:
    include: []
    exclude:
    - usr/share/man
    - usr/share/doc/*/README.*
    - usr/share/doc/*/changelog.*
    - usr/share/doc/*/NEWS.*
    - usr/share/doc/*/TODO.*
  test:
    fedora-30:
      image: appimagecrafters/tests-env:fedora-30
      command: ./AppRun
      use_host_x: true
    debian-stable:
      image: appimagecrafters/tests-env:debian-stable
      command: ./AppRun
      use_host_x: true
    archlinux-latest:
      image: appimagecrafters/tests-env:archlinux-latest
      command: ./AppRun
      use_host_x: true
    centos-7:
      image: appimagecrafters/tests-env:centos-7
      command: ./AppRun
      use_host_x: true
    ubuntu-xenial:
      image: appimagecrafters/tests-env:ubuntu-xenial
      command: ./AppRun
      use_host_x: true
AppImage:
  arch: x86_64
  update-information: !ENV ${UPDATE_INFO}
  sign-key: None