appimage自身支持直接壓縮和解壓
--appimage-extract
- extracts the contents from the embedded filesystem image, then exits. This is useful if you are using an AppImage on a system on which FUSE is not available
- 從嵌入的文件系統映像中提取內容,然后退出。如果您在FUSE不可用的系統上使用AppImage,這將非常有用
$ xxxx.AppImage --appimage-extract
- linuxdeployqt 可以用來給可執行程序復制引用庫、制作AppRun、快捷方式並壓縮。
- appimagetool 則可以直接壓縮 “已經打包好的appimage解壓后的文件夾(上一步解壓的文件夾)”。
請注意使用appimagetool壓縮時,只檢驗文件夾內是否存在快捷方式和AppRun,至於需要連接的庫不再驗證,如果自己解壓后手動刪除了引用庫會造成新壓縮后文件無法使用。
$ appimagetool xxxx包含AppImage內容的文件夾
appimagetool 可從此處下載:wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage"