Linux AppImage 压缩指南
一、标准做法 使用 appimagetool 重新打包
chmod +x your.AppImage
./your.AppImage --appimage-extract
cd squashfs-root
../appimagetool-x86_64.AppImage .
# 或指定输出名
../appimagetool-x86_64.AppImage . ../your-new.AppImage
wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod a+x appimagetool-x86_64.AppImage
二、调整压缩算法以进一步减小体积
# 使用 xz(通常体积更小,但启动可能稍慢)
../appimagetool-x86_64.AppImage --comp xz . ../your-new.AppImage
# 使用 lzma
../appimagetool-x86_64.AppImage --comp lzma . ../your-new.AppImage
# 使用 gzip(解压更快,体积通常较大)
../appimagetool-x86_64.AppImage --comp gzip . ../your-new.AppImage
三、减小体积的实用预处理
四、常见问题与提示
./your.AppImage --appimage-extract
# 或挂载查看
./your.AppImage --appimage-mount