Ubuntu snap插件' autotools'默认' make install'用snapcraft建造时跳过

时间:2017-06-20 10:14:41

标签: ubuntu autotools snap-package

我正在为我的项目构建一个snap包,我有一个我只想编译的库。即仅/configure && make 不是:/configure && make && make install

当我在Ubuntu snap中搜索它的文档时,我发现:https://snapcraft.io/docs/reference/plugins/autotools

此处还搜索了:https://github.com/search?o=desc&q=filename%3Asnapcraft.yaml+%22plugin%3A+autotools%22+&s=indexed&type=Code&utf8=%E2%9C%93

但我找不到任何可以跳过make install部分的内容。谁能建议我怎么做?脏的方式可能在make install之后,我将添加一个shell脚本以递归方式删除make install生成的文件,然后继续进行应用程序代码编译。但我认为应该有一个很好的做法。 因此,当我运行make install来构建快照包时,请告诉我是否有任何方法可以跳过此snapcraft

1 个答案:

答案 0 :(得分:1)

我通过反复试验方法得到了答案。解决方案是:

artifacts: [.]

在snapcraft.yaml文件中。根据文档,它使默认make install skip。我保持它为零,但没有工作。但是这个工作得很好,而且permision否认错误消失了(snapcraft想安装在系统中,因此sudo就是解决方案)。

相关问题