1
0

Use nfpm to build deb, rpm and apk packages (#689)

Cleanup

Update docs for deb

Add building os packages to drone

Add apk packages

Replace version and binlocation strings in nfpm config

Make nfpm config replacable

Fix nfpm config

Add nfpm config

go mod tidy

Add nfpm mage target

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/689
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
This commit is contained in:
konrad
2020-10-18 11:41:27 +00:00
parent 1555081939
commit 618353bf95
8 changed files with 140 additions and 46 deletions

View File

@ -118,14 +118,13 @@ binary to be able to use it.
* `mage release:compress` compresses all build binaries with `upx` to save space
* `mage release:zip` paclages a zip file for the files created by `release:os-package`
### Build debian packages
### Build os packages
{{< highlight bash >}}
mage release:deb
mage release:packages
{{< /highlight >}}
Will build a `.deb` package into the current folder.
You need to have [fpm](https://fpm.readthedocs.io/en/latest/intro.html) installed to be able to do this.
Will build `.deb`, `.rpm` and `.apk` packages to `dist/os-packages`.
### Make a debian repo