在Debian上創建自定義AppImage,可參考以下步驟:
sudo apt update
和sudo apt install appimagetool linuxdeploy
,安裝打包所需的工具。/appimage
。/appimage
目錄下,創建應用程序的目錄結構,如MyApp.AppDir
,并將可執行文件放入其中。MyApp.AppDir/usr/bin
下創建啟動腳本,如myapp-start.sh
,并賦予執行權限。MyApp.AppDir/usr/share/applications
下創建.desktop
文件,指定應用程序的名稱、圖標、執行路徑等信息。MyApp.AppDir
目錄,并在桌面文件中正確引用。appimagetool MyApp.AppDir
命令生成AppImage文件,文件名格式為MyApp-x86_64.AppImage
(具體依系統架構而定)。