当前位置: 首页 > news >正文

艺术创意设计烟台seo推广优化

艺术创意设计,烟台seo推广优化,北京网站优化诊断,wordpress脚本演示功能前言 在 Linux 环境下#xff0c;开发完 Qt 程序后#xff0c;也需要制作为一个安装包或者可执行文件进行分发。这里介绍使用 linuxdeployqt 将 Qt 程序打包为 .AppImage 应用程序#xff08;类似于 Windows 的绿色免安装软件#xff09; 环境配置 配置 Qt 环境变量 这…前言 在 Linux 环境下开发完 Qt 程序后也需要制作为一个安装包或者可执行文件进行分发。这里介绍使用 linuxdeployqt 将 Qt 程序打包为 .AppImage 应用程序类似于 Windows 的绿色免安装软件 环境配置 配置 Qt 环境变量 这一步是为了能让 linuxdeployqt 工具识别到 Qt 的环境。编辑 bashrc 文件 vim ~/.bashrc在最后一行后面加入自己的 Qt 环境 #QT ENV export QTDIR/home/leo/Qt/5.15.2/gcc_64export PATH$QTDIR/bin:$PATH export LD_LIBRARY_PATH$QTDIR/lib:$LD_LIBRARY_PATH export QT_PLUGIN_PATH$QTDIR/plugins:$QT_PLUGIN_PATH export QML2_PATH$QTDIR/qml:$QML2_PATH立即生效 source ~/.bashrc验证 qmake -v配置 linuxdeployqt 前往 linuxdeployqt 下载 release 发布的 linuxdeployqt-continuous-x86_64.AppImage 然后授予可执行权限并改个名方便使用放入 /usr/local/bin 路径下方便随地使用 chmod 777 linuxdeployqt-continuous-x86_64.AppImage mv linuxdeployqt-continuous-x86_64.AppImage linuxdeployqt sudo mv linuxdeployqt /usr/local/bin测试一下 linuxdelpoyqt --version配置 AppImageKit 前往 AppImageKit 下载 appimagetool-x86_64.AppImage 同样地添加执行权限 chmod 777 appimagetool-x86_64.AppImage安装 patchelf 直接 apt 安装 patchelf 即可 sudo apt install patchelf打包 将应用拷贝至 output 目录下运行命令这里以 QClipboard 可执行程序为例 leoleo-VirtualBox:~/Desktop/output$ linuxdeployqt QClipboard -appimage linuxdeployqt (commit 6fcaf74), build 55 built on 2023-09-23 13:33:41 UTC Not using FHS-like mode app-binary: /home/leo/Desktop/output/QClipboard appDirPath: /home/leo/Desktop/output relativeBinPath: QClipboard ERROR: Desktop file missing, creating a default one (you will probably want to edit it) ERROR: Icon file missing, creating a default one (you will probably want to edit it) qmakePath 3 appimagetool, continuous build (commit 8bbf694), build local dev build built on 2020-12-31 11:48:33 UTC fatal: 不是 git 仓库或者任何父目录.git Failed to run git rev-parse --short HEAD: Child process exited with code 128 (code 128) Desktop file: /home/leo/Desktop/output/default.desktop Categories entry not found in desktop file .desktop file is missing a Categories key然后就可以看到output 目录下生成了一些文件 lrwxrwxrwx 1 leo leo 10 11月 3 21:31 AppRun - QClipboard -rw-rw-r-- 1 leo leo 123 11月 3 21:31 default.desktop -rw-rw-r-- 1 leo leo 0 11月 3 21:31 default.png drwxrwxr-x 6 leo leo 4096 11月 3 21:31 doc drwxrwxr-x 2 leo leo 4096 11月 3 21:32 lib drwxrwxr-x 7 leo leo 4096 11月 3 21:32 plugins -rwxrwxr-x 1 leo leo 157512 11月 3 21:30 QClipboard -rw-rw-r-- 1 leo leo 145 11月 3 21:32 qt.conf drwxrwxr-x 2 leo leo 4096 11月 3 21:32 translations修改 desktop 文件 我们需要修改默认生成的 desktop 文件 leoleo-VirtualBox :~/Desktop/output$ cat default. desktop [Desktop Entry] TypeApplication NameApplication ExecAppRun %F Icondefault CommentEdit this default file Terminaltrue可以查看 desktop 文件规范进行修改 这里将 default. desktop 文件重命名为 QClipboard. desktop 文件并修改为以下内容 [Desktop Entry] CategoriesSystem; Office; TypeApplication Keywordsclip; clipboard; NameQClipboard ExecAppRun %F Iconlogo CommentA cross-platform clipboard tool that allows selecting items from clipboard history to paste. Terminaltrue然后删除了多余的文件夹最终效果如下 生成 appimage 应用 使用 appimagetool 生成 appimage 应用。 执行 ./appimagetool-x 86_64. AppImage output/ 后面的output就是我们的 output 目录。 注意由于下载的appimagetool-x 86_64. AppImage应用并没有放入/usr/local/bin路径下所以不能直接执行它。 leoleo-VirtualBox :~/Downloads$ ./appimagetool-x 86_64. AppImage ~/Desktop/output/ appimagetool, continuous build (commit 8 bbf 694), build local dev build built on 2020-12-31 11:48:33 UTC /home/leo/Desktop/output/QClipboard. desktop: hint: value System; Office; for key Categories in group Desktop Entry contains more than one main category; application might appear more than once in the application menu Using architecture x 86_64 /home/leo/Desktop/output should be packaged as QClipboard-x 86_64. AppImage WARNING: AppStream upstream metadata is missing, please consider creating itin usr/share/metainfo/QClipboard. appdata. xmlPlease see https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#sect-Quickstart-DesktopAppsfor more information or use the generator at http://output.jsbin.com/qoqukof. Generating squashfs... Parallel mksquashfs: Using 6 processors Creating 4.0 filesystem on QClipboard-x 86_64. AppImage, block size 131072. [/] 530/530 100%Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072compressed data, compressed metadata, compressed fragments,compressed xattrs, compressed idsduplicates are removed Filesystem size 25011.83 Kbytes (24.43 Mbytes)39.56% of uncompressed filesystem size (63223.96 Kbytes) Inode table size 2316 bytes (2.26 Kbytes)55.20% of uncompressed inode table size (4196 bytes) Directory table size 861 bytes (0.84 Kbytes)52.25% of uncompressed directory table size (1648 bytes) Number of duplicate files found 0 Number of inodes 69 Number of files 59 Number of fragments 12 Number of symbolic links 2 Number of device nodes 0 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 8 Number of ids (unique uids gids) 1 Number of uids 1root (0) Number of gids 1root (0) Embedding ELF... Marking the AppImage as executable... Embedding MD 5 digest SuccessPlease consider submitting your AppImage to AppImageHub, the crowd-sourced central directory of available AppImages, by opening a pull request at https://github.com/AppImage/appimage.github.io然后就可以在appimagetool-x 86_64. AppImage同级路径下看到生成的QClipboard-x 86_64. AppImage包了 执行测试 QClipboard 应用成功执行 注意分发给别人时需要加上执行权限才可运行 总结 以上就是在 Linux 系统下打包 Qt 程序为 AppImage 程序的全部过程。 同时欢迎对跨平台剪贴板工具加starhttps://github.com/L-Super/QClipboard https://blog.csdn.net/zyhse/article/details/106381937 https://www.cnblogs.com/linuxAndMcu/p/11016322.html UnityLaunchersAndDesktopFiles - Community Help Wiki (ubuntu.com) desktop文件规范 | DeepinWiki icon-theme-spec
http://www.hkea.cn/news/14531924/

相关文章:

  • 怎么自助建站价格合理的网站建设
  • 设计师招聘网站有哪些江苏环泰建设有限公司网站
  • 广州做大型网站建设网页编辑器哪个好
  • 用腾讯云做淘宝客购物网站视频东阳网站制作
  • 怎么开网站深圳网站建设公司联
  • 电子商务网站建设教程东莞市seo网络推广企业
  • 延安市建设工程交易中心网站北京的建设网站公司
  • 建设部勘察设计网站网站模板价格
  • 昆山周市建设局网站网络营销推广的手段
  • 菏泽市住房和城乡建设局网站本地生活服务网站怎么做
  • flash如何做网站wordpress 获取文章的分类id
  • 仿站网站建设做我网站
  • 自己做购物网站微信管理系统下载
  • 网站开发后端选择了解做房产广告的网站
  • 怎么用wordpress搭建网站我有服务器和模板怎么做网站
  • 网站开发设计论文昆明网站建设报价
  • 青岛专业公司网站设计流量平台是什么意思
  • 江都网站建设html5 购物网站
  • asp网站建设技术方案商标设计创意
  • 电子邮箱网站注册一元云购网站建设
  • 商城网站系统企业seo平台
  • 网站图片切换代码供求信息网站开发背景
  • 淄博著名网站开发方法wordpress豆瓣小站
  • 深圳网站建设大公司排名wordpress+编辑模板
  • 大型网站建设兴田德润赞扬电脑可以做服务器部署网站吗
  • 佛山网站优化步骤中国建设教育协会网站查
  • 广东省网站免备案视频类网站建设的成果
  • 河南城市建设招标类网站手机网站酷站
  • wordpress设置图片台州网站优化排名
  • 专做视频和ppt的网站网站建设一年多少