[ Technical exchange] 使用 ll-appimage-convert 转换的玲珑包,安装后打开报错
Tofloor
poster avatar
180******55
deepin
2025-08-14 23:36
Author

使用命令:
ll-appimage-convert convert -f ~/Downloads/linyaps_convert/象棋助手/象棋助手-1.0.0-x86_64.AppImage --name "cn.yhdm360.cca" --id "cn.yhdm360.cca" --version "1.0.0.0" --description "cn.yhdm360.cca" -b

报错内容 No available configurations for the given RGBA pixel format

生成的 yaml 是

version: "1"

package:
  id: cn.yhdm360.cca
  name: cn.yhdm360.cca
  version: 1.0.0.0
  kind: app
  description: |
    cn.yhdm360.cca

base: org.deepin.base/23.1.0
runtime: 

command:
  - "/opt/apps/cn.yhdm360.cca/files/bin/cn.yhdm360.cca"

build: |
  cd linglong/sources
  APPIMAGE=$(find . -regex '.*\.AppImage\|.*appimage' -exec basename {} \;)
  chmod +x ${APPIMAGE}
  ./${APPIMAGE} --appimage-extract
  BINNAME=${LINGLONG_APPID}
  APP_PREFIX=${BINNAME}
  echo "#!/usr/bin/env bash" > ${BINNAME}
  echo "unset LD_LIBRARY_PATH" >> ${BINNAME}
  echo "cd ${PREFIX}/lib/${APP_PREFIX} && ./AppRun $@" >> ${BINNAME}
  # only search for .desktop file in the squashfs-root directory
  DESKTOP_FILE=$(find squashfs-root -maxdepth 1 -regex '.*\.desktop' -exec basename {} \;)
  cp squashfs-root/${DESKTOP_FILE} .
  sed -i "s@Exec=.*@Exec=${PREFIX}/bin/${BINNAME}@" ${DESKTOP_FILE}
  cd squashfs-root
  if [ ! $PREFIX ]; then
    PREFIX=opt/${APP_PREFIX}
  fi
  DESTDIR=${dest_dir}
  # install icons to linglong package
  if [ -d usr/share/icons ]; then
    cd usr
    find share/icons -type f -exec install -D "{}" "${DESTDIR}/${PREFIX}/{}" \;
    cd ..
  fi
  find -type d -exec install -d "${DESTDIR}/${PREFIX}/lib/${APP_PREFIX}/{}" \;
  find -type f -exec install -D "{}" "${DESTDIR}/${PREFIX}/lib/${APP_PREFIX}/{}" \;
  find -type l -exec bash -c "ln -s \$(readlink {}) "${DESTDIR}/${PREFIX}/lib/${APP_PREFIX}/{}" " -exec install -D "{}" "${DESTDIR}/${PREFIX}/lib/${APP_PREFIX}/{}" \;
  cd ..
  install -D ${BINNAME} ${DESTDIR}/${PREFIX}/bin/${BINNAME}
  install -D ${DESKTOP_FILE} ${DESTDIR}/${PREFIX}/share/applications/${DESKTOP_FILE}

image.png

Reply Favorite View the author
All Replies
xuqi
deepin testing team
2025-08-15 10:43
#1
  • 感谢反馈,我们稍后复现一下将环境提供给研发进行分析解决 ,谢谢~
Reply View the author