![当上游开发人员尚未发布 tarball 时,如何创建 deb 包](https://linux22.com/image/1123570/%E5%BD%93%E4%B8%8A%E6%B8%B8%E5%BC%80%E5%8F%91%E4%BA%BA%E5%91%98%E5%B0%9A%E6%9C%AA%E5%8F%91%E5%B8%83%20tarball%20%E6%97%B6%EF%BC%8C%E5%A6%82%E4%BD%95%E5%88%9B%E5%BB%BA%20deb%20%E5%8C%85.png)
我想创建一个 deb 包https://github.com/manojgudi/sandhi。但我在那里找不到任何 tarball。我在网上看到的所有教程都假设有一个上游 tarball 可用。我是新手。请给我指点迷津!
@ bodhi.zazen 通过下载源代码,你的意思是我这样做吗 -
git clone http://github.com/manojgudi/sandhi.git
cd sandhi/
git submodule init
git submodule update
git pull origin master
git submodule update
然后右键单击文件夹“sandhi”并压缩它以创建 tarball?或者我应该先执行以下操作:
mkdir build
cd build/
cmake ../
make -j 2
然后制作一个 tarball?
答案1
其实,Github 提供了一种导出 zip 源档案的方法,检查仓库主页右侧:
另一种方法是使用 CMake 和 Make 通过 git clone 自己制作:
mkdir build cd build cmake .. make dist