AppImageCrafters / appimage-builder

GNU/Linux packaging solution using the AppImage format
MIT License
298 stars 55 forks source link

IndexError: list index out of range #319

Open JaviBonilla opened 10 months ago

JaviBonilla commented 10 months ago

I tried this recipe but I am getting an error when including libgtk-3-0, if include: [] it works fine.

appimage-builder: 1.1.0

Recipe

version: 1
script:
 - rm -rf AppDir || true
 - cp -r build/linux/x64/release/bundle AppDir
 - mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/
 - mkdir -p AppDir/usr/share/applications/
 # NOTE: Flutter app not working
 # - mv AppDir/lib/ AppDir/usr/
 - cp deploy/linux/logo_64.png AppDir/usr/share/icons/hicolor/64x64/apps/
 - cp deploy/linux/*.desktop AppDir/usr/share/applications/
AppDir:
  path: ./AppDir
  app_info:
    id: com.domlix.domlix
    name: Domlix
    icon: logo_64
    version: latest
    exec: Domlix
    exec_args: $@
  apt:
    arch: amd64
    allow_unauthenticated: true
    sources:
    - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
    - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
    - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
    include:
    - libgtk-3-0
    exclude:
    - humanity-icon-theme
    - hicolor-icon-theme
    - adwaita-icon-theme
    - ubuntu-mono
  files:
    include: []
    exclude:
    - usr/share/man
    - usr/share/doc/*/README.*
    - usr/share/doc/*/changelog.*
    - usr/share/doc/*/NEWS.*
    - usr/share/doc/*/TODO.*
  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
  update-information: guess
  sign-key: None

Output

INFO:main:Running main script
rm -rf AppDir || true
cp -r build/linux/x64/release/bundle AppDir
mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/
mkdir -p AppDir/usr/share/applications/
cp deploy/linux/logo_64.png AppDir/usr/share/icons/hicolor/64x64/apps/
cp deploy/linux/*.desktop AppDir/usr/share/applications/
INFO:main:Running apt deploy
INFO:apt:apt-get update
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Ign:2 http://security.ubuntu.com/ubuntu bionic-security InRelease  
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2.717 kB]
Ign:1 http://archive.ubuntu.com/ubuntu bionic InRelease              
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83,3 kB]
Ign:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease    
Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8.570 kB]
Ign:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease   
Get:7 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [1.317 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1.303 kB]    
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [19,8 kB]   
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]             
Get:11 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9.184 B]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1.019 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1.914 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [25,6 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [1.347 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3.045 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [18,2 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [53,3 kB]
Fetched 22,0 MB in 2s (11,3 MB/s)                          
Reading package lists... Done
W: GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  dconf-gsettings-backend dconf-service gcc-8-base glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3
  libavahi-common-data libavahi-common3 libblkid1 libc6 libcairo-gobject2 libcairo2 libcolord2 libcom-err2 libcups2 libdatrie1 libdbus-1-3 libdconf1 libepoxy0 libexpat1 libffi6 libfontconfig1 libfreetype6 libgcc1
  libgcrypt20 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libglib2.0-0 libgmp10 libgnutls30 libgpg-error0 libgraphite2-3 libgssapi-krb5-2 libgtk-3-common libharfbuzz0b libhogweed4 libicu60 libidn2-0 libjbig0
  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2 liblz4-1 liblzma5 libmount1 libnettle6 libp11-kit0 libpango-1.0-0 libpangocairo-1.0-0
  libpangoft2-1.0-0 libpcre3 libpixman-1-0 libpng16-16 libproxy1v5 librest-0.7-0 libselinux1 libsoup-gnome2.4-1 libsoup2.4-1 libsqlite3-0 libstdc++6 libsystemd0 libtasn1-6 libthai-data libthai0 libtiff5 libudev1
  libunistring2 libuuid1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxml2 libxrandr2 libxrender1 xkb-data zlib1g
Suggested packages:
  glibc-doc locales colord cups-common rng-tools gnutls-bin krb5-doc krb5-user librsvg2-common gvfs liblcms2-utils
Recommended packages:
  at-spi2-core libgdk-pixbuf2.0-bin libglib2.0-data libgtk-3-bin krb5-locales uuid-runtime
The following NEW packages will be installed:
  dconf-gsettings-backend dconf-service gcc-8-base glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3
  libavahi-common-data libavahi-common3 libblkid1 libc6 libcairo-gobject2 libcairo2 libcolord2 libcom-err2 libcups2 libdatrie1 libdbus-1-3 libdconf1 libepoxy0 libexpat1 libffi6 libfontconfig1 libfreetype6 libgcc1
  libgcrypt20 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libglib2.0-0 libgmp10 libgnutls30 libgpg-error0 libgraphite2-3 libgssapi-krb5-2 libgtk-3-0 libgtk-3-common libharfbuzz0b libhogweed4 libicu60 libidn2-0 libjbig0
  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2 liblz4-1 liblzma5 libmount1 libnettle6 libp11-kit0 libpango-1.0-0 libpangocairo-1.0-0
  libpangoft2-1.0-0 libpcre3 libpixman-1-0 libpng16-16 libproxy1v5 librest-0.7-0 libselinux1 libsoup-gnome2.4-1 libsoup2.4-1 libsqlite3-0 libstdc++6 libsystemd0 libtasn1-6 libthai-data libthai0 libtiff5 libudev1
  libunistring2 libuuid1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxml2 libxrandr2 libxrender1 xkb-data zlib1g
0 upgraded, 94 newly installed, 0 to remove and 103 not upgraded.
Need to get 0 B/25,2 MB of archives.
After this operation, 95,0 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  gcc-8-base libgcc1 libc6 libgpg-error0 libgcrypt20 liblz4-1 liblzma5 libsystemd0 libxext6 libjpeg-turbo8 libxinerama1 libuuid1 libblkid1 libcom-err2 libpcre3 libselinux1 libmount1 libudev1 zlib1g libdbus-1-3 libexpat1
  libffi6 libglib2.0-0 libgmp10 libnettle6 libhogweed4 libunistring2 libidn2-0 libp11-kit0 libtasn1-6 libgnutls30 libstdc++6 libicu60 libsqlite3-0 libxml2 xkb-data libkrb5support0 libk5crypto3 libkeyutils1 libkrb5-3
  libgssapi-krb5-2 libpng16-16 libdconf1 dconf-service dconf-gsettings-backend libproxy1v5 glib-networking-common glib-networking-services gsettings-desktop-schemas glib-networking libatk1.0-data libatk1.0-0
  libatspi2.0-0 libatk-bridge2.0-0 libavahi-common-data libavahi-common3 libavahi-client3 libfreetype6 libfontconfig1 libpixman-1-0 libxrender1 libcairo2 libcairo-gobject2 liblcms2-2 libcolord2 libcups2 libdatrie1
  libepoxy0 libjpeg8 libjbig0 libtiff5 libgdk-pixbuf2.0-common libgdk-pixbuf2.0-0 libgraphite2-3 libgtk-3-common libjson-glib-1.0-common libjson-glib-1.0-0 libthai-data libthai0 libpango-1.0-0 libharfbuzz0b
  libpangoft2-1.0-0 libpangocairo-1.0-0 libsoup2.4-1 libsoup-gnome2.4-1 librest-0.7-0 libxcomposite1 libxfixes3 libxcursor1 libxdamage1 libxi6 libxkbcommon0 libxrandr2 libgtk-3-0
Authentication warning overridden.
Download complete and in download only mode
Traceback (most recent call last):
  File "/tmp/.mount_appimaZfgaLM/usr/bin/appimage-builder", line 8, in <module>
    sys.exit(__main__())
  File "/tmp/.mount_appimaZfgaLM/usr/lib/python3.8/site-packages/appimagebuilder/__main__.py", line 50, in __main__
    invoker.execute(commands)
  File "/tmp/.mount_appimaZfgaLM/usr/lib/python3.8/site-packages/appimagebuilder/invoker.py", line 29, in execute
    command()
  File "/tmp/.mount_appimaZfgaLM/usr/lib/python3.8/site-packages/appimagebuilder/commands/apt_deploy.py", line 46, in __call__
    deployed_packages = apt_deploy.deploy(
  File "/tmp/.mount_appimaZfgaLM/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 40, in deploy
    deploy_list = self._resolve_packages_to_deploy(
  File "/tmp/.mount_appimaZfgaLM/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 70, in _resolve_packages_to_deploy
    deploy_list = set(self.apt_venv.resolve_packages(include_patterns))
  File "/tmp/.mount_appimaZfgaLM/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/venv.py", line 191, in resolve_packages
    installed_packages.append(Package.from_file_path(file_path))
  File "/tmp/.mount_appimaZfgaLM/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/package.py", line 54, in from_file_path
    urllib.parse.unquote(name_parts[1]),
IndexError: list index out of range