Update how-to-build-deb-package.md

This commit is contained in:
Samson-W 2020-04-15 00:08:26 +08:00
parent b52bca5270
commit 76bf0a6809
1 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# How to build the deb package
# How to build the deb package
## Pre-install
```
@ -13,12 +13,12 @@ export DEBEMAIL DEBFULLNAME
EOF
$ . ~/.bashrc
```
## Download realese
## Download realese
```
$ wget https://github.com/hardenedlinux/harbian-audit/archive/V0.4.1.tar.gz
$ tar zxvf V0.4.1.tar.gz
```
## Init and dh_make
## Init and dh_make
```
~$ rm V0.4.1.tar.gz
~$ tar -czvf harbian-audit-0.4.1.tar.gz --exclude=.gitignore harbian-audit-0.4.1
@ -32,13 +32,17 @@ $ tar zxvf V0.4.1.tar.gz
~/harbian-audit-0.4.1$ rm debian/Readme
```
## Build deb package
## Build deb package
```
~/harbian-audit-0.4.1$ dpkg-buildpackage --sign-key=<your-gpg-key-id>
```
If don't sign the source package and the .buildinfo and .changes files
```
~/harbian-audit-0.4.1$ dpkg-buildpackage -us -uc
```
## Sign deb package
```
~/harbian-audit-0.4.1$ cd ..
~$ sha512sum harbianaudit_0.4.1-1_all.deb > harbianaudit_0.4.1-1_all.deb.sha512sum
~$ gpg -ab harbianaudit_0.4.1-1_all.deb