我一直在尝试使用 appimage-builder 来生成基于 PyQt5 的应用程序。为此,我需要将 python3 与它捆绑在一起,并且我正在尝试使用它,pacman
因为我正在运行 arch。
但是,当我运行时appimage-builder
,它会出错并显示以下消息:
gpg: starting migration from earlier GnuPG versions
gpg: can't connect to the agent: File name too long
gpg: error: GnuPG agent unusable. Please check that a GnuPG agent can be started.
gpg: migration aborted
gpg: Generating pacman keyring master key...
gpg: can't connect to the agent: File name too long
gpg: agent_genkey failed: No agent running
gpg: key generation failed: No agent running
gpg: Done
==> Updating trust database...
gpg: no need for a trustdb check
gpg: starting migration from earlier GnuPG versions
gpg: can't connect to the agent: File name too long
gpg: error: GnuPG agent unusable. Please check that a GnuPG agent can be started.
gpg: migration aborted
在我的操作系统上安装期间使用没有任何问题pacman
,所以我不确定问题是什么,或者为什么它甚至试图生成新的 gpg 密钥。
有什么我想念的吗?有没有另一种将 python 捆绑到 AppImage 中的方法?
AppImageBuilder.yml
以供参考:
version: 1
script:
# Remove any previous build
- rm -rf AppDir | true
# Make usr and icons dirs
- mkdir -p AppDir/usr/src
# Copy the python application code into the AppDir
- cp src/ AppDir/usr -r
# Copy config and config
- cp config/ AppDir/usr -r
- cp icons/ AppDir/usr -r
# Install application dependencies
- python3 -m pip install --ignore-installed --prefix=/usr --root=AppDir -r ./requirements.txt
AppDir:
path: ./AppDir
app_info:
id: github.balbok0.pyqt-lifx-widget
name: LifX Control
icon: icons/lightbulb.png
version: 0.1.0
# Set the python executable as entry point
exec: usr/bin/python3
# Set the application main script path as argument. Use '$@' to forward CLI parameters
exec_args: "$APPDIR/usr/src/main.py $@"
pacman:
include: [python3, python3-pkg-resources]
exclude: []
runtime:
env:
# Set python home
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME
PYTHONHOME: '${APPDIR}/usr'
# Path to the site-packages dir or other modules dirs
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
PYTHONPATH: '${APPDIR}/usr/lib/python3.6/site-packages'
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:
update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync'
sign-key: none
arch: x86_64