Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的构建“超级构建”了其他项目,所有这些都可能随时更改。每次我们要构建时手动创建 postrm 脚本太乏味了......
在使用 CMake/CPack 构建 Debian 包时,有没有办法生成 postrm 脚本?
我发现常见的答案是使用 debhelpers,比如cmake-debhelper,虽然我没有尝试过。
我通过创建两个自定义目标来实现这一点,一个是执行make的,另一个是依赖于前一个make目标并运行 python 脚本来生成维护者脚本,然后是capck.
make
capck