Ubuntu QTCreator 程序打包
下载linuxdeployqt
官网地址:https://github.com/probonopd/linuxdeployqt/releases
安装
更改名字
mv linuxdeployqt-6-x86_64.AppImage linuxdeployqt
修改权限
chmod 777 linuxdeployqt
全局访问
sudo mv linuxdeployqt /usr/local/bin
View Code
测试
linuxdeployqt --version
表示成功
打包
QTCreator用release生成的可执行文件复制到新的控文件夹内然后执行
linuxdeployqt YourExcube -appimage
可能会报错,修改default.desktop
[Desktop Entry] Type=Application Name=YorAppName Exec=YourExcute %F Icon=favicon Comment=Edit this default file Terminal=false Categories=Utility;Application;
打包成功
运行Appimage结尾的文件即可