首页 > 解决方案 > 电子生成器输出错误:不支持压缩器“xz”

问题描述

我正在尝试使用电子生成器在我的 Raspberry Pi 上构建 AppImage,但出现错误:

cannot execute  cause=exit status 1
errorOut=/home/pi/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressor "xz" is not supported!
/home/pi/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressors available:
gzip (default)

有谁知道如何解决这个问题并能够为我的电子应用程序构建一个 AppImage 文件?

构建选项是:

"linux": {
"artifactName": "App Setup.${ext}",
"executableName": "App Name",
"category": "Utility",
"target": {
  "target": "appimage",
  "arch": [
    "armv7l"
  ]
}

}

谢谢!

标签: raspberry-pielectronelectron-builder

解决方案


仅供参考,我可以通过在电子设置中设置:“压缩”:“正常”来构建它。文档说无论如何都没有太大的大小差异。希望这对任何人都有帮助。


推荐阅读