Add Debian package build
This commit is contained in:
1 parent
6ed48022ae
commit
be855ccebe
10 files changed
+154
-18
No files matched your search
@@ -131,6 +131,23 @@ The resulting executable is:
|
||||
build/kindle2notes
|
||||
```
|
||||
|
||||
### Debian package
|
||||
|
||||
On Debian or a Debian-based distribution, install the package build tools and
|
||||
build the binary package with:
|
||||
|
||||
```bash
|
||||
sudo apt install build-essential cmake dpkg-dev
|
||||
dpkg-buildpackage --build=binary --no-sign
|
||||
```
|
||||
|
||||
The `.deb`, `.changes`, and `.buildinfo` files are written to the parent
|
||||
directory. To create a Debian source package instead, run:
|
||||
|
||||
```bash
|
||||
dpkg-buildpackage --build=source --no-sign
|
||||
```
|
||||
|
||||
When the source is built from Git, CMake obtains the version from
|
||||
`git describe`. A build made exactly from a release tag reports only that tag
|
||||
(for example, `1.0`). Later commits include their distance from the tag and
|
||||
|
||||
Reference in new issue
Block a user