改demo.pro文件
target.path = /usr/bin desktop.path = /usr/share/applications/ desktop.files = $$PWD/demo.desktop icon.path =/usr/share/icons icon.files =$$PWD/icon/demo.png !isEmpty(target.path): INSTALLS += target icon desktop
icon 可以不写的
我从使用 dh_make
来创建一个 debian
目录开始。
bash# Empty project folder $ mkdir -p Debian/demo # create files $ dh_make\ > --native \ > --single \ > --packagename demo_1.0.0 \ > --email demo@example.com
提出 changelog compat control rules,删除多余文件
目录结构 demo--DEBIAN | --demo.desktop | --demo | --qt等一堆文件 | --demo.png/.svg
.desktop
Exec 是在usr/bin下找 Icon 是在
dpkg-buildpackage -b -us -uc
本文作者:墨洺的文档
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!