如何创建可以右键卸载的deb包?
Tofloor
poster avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-13 18:02
Author
我尝试添加了postrm文件,但是测试仍不可以右键卸载
有时候诡异的就可以,同一个包,上一次安装右键卸载还是直接失败,下一次就可以右键卸载了
很迷


Reply Favorite View the author
All Replies
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-13 18:23
#1
自己顶一下
Reply View the author
avatar
funtoo
deepin
2020-04-13 18:46
#2
跟你写没写postrm没关系,postinst和postrm只是用来执行某些安装后和卸载后的配置及清理工作,不是每个包都需要做这些事情。
之前deepin图形化软件顺利卸载的前提是exec行的执行程序名称需要和包名保持一致。例如,如果exec=/usr/bin/foo,包名也必须是foo。
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-13 20:07
#3
https://bbs.deepin.org/post/191376
跟你写没写postrm没关系,postinst和postrm只是用来执行某些安装后和卸载后的配置及清理工作,不是每个包都 ...

谢谢大佬!我直接改包导致名字不一样
谢谢大佬指点
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-13 20:18
#4
https://bbs.deepin.org/post/191376
跟你写没写postrm没关系,postinst和postrm只是用来执行某些安装后和卸载后的配置及清理工作,不是每个包都 ...

大佬!貌似不是这样啊
这个链接里的HMCL包可以正常卸载,但是exec那一行我写的完全不是这种格式
Firefox-SM是这种格式却无法卸载
http://www.shenmo.tech:666/?p=420
Reply View the author
avatar
superendermansm
deepin
2020-04-13 22:08
#5
并没有人
Reply View the author
avatar
funtoo
deepin
2020-04-13 22:55
#6
https://bbs.deepin.org/post/191376
大佬!貌似不是这样啊
这个链接里的HMCL包可以正常卸载,但是exec那一行我写的完全不是这种格式
Firefox- ...

测试了下,是你的desktop文件出问题了,把Firefox.desktop改为全小写,而且打包环境的所有者也要改为root。
这样子改了以后就可以右键卸载了。
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-14 04:26
#7
https://bbs.deepin.org/post/191376
测试了下,是你的desktop文件出问题了,把Firefox.desktop改为全小写,而且打包环境的所有者也要改为root ...

sudo dpkg呗
所以深度是靠着.desktop文件名识别的啊.....
Reply View the author