Skip to content

Commit

Permalink
feat(goreleaser): Add man pages to packages for installing
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Jan 22, 2025
1 parent 618aaca commit a87ed38
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .goreleaser-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ version: 2
#@ "linux": ["amd64"],
#@ },
#@ }

before:
hooks:
- make man

changelog:
sort: asc
use: github
Expand Down Expand Up @@ -90,6 +95,8 @@ nfpms:
contents:
- src: scripts/kraftld
dst: /usr/local/bin/kraftld
- src: ./docs/man/
dst: /usr/local/share/man/man1/

aurs:
- homepage: https://kraftkit.sh
Expand All @@ -108,6 +115,8 @@ aurs:
install -Dm755 "${srcdir}/kraft" "${pkgdir}/usr/bin/kraft"
# kraftld
install -Dm755 "${srcdir}/kraftld" "${pkgdir}/usr/bin/kraftld"
# man pages
install -Dm644 "./docs/man/*" "${pkgdir}/usr/local/share/man/man1"
commit_author:
name: Unikraft Bot
email: [email protected]
Expand All @@ -129,6 +138,8 @@ nix:
mkdir -p $out/bin
cp -vr ./dist/kraft $out/bin/kraft
cp -vr ./dist/kraftld $out/bin/kraftld
extra_install: |-
installManPage ./docs/man/*
brews:
- name: kraftkit
Expand Down Expand Up @@ -165,6 +176,8 @@ brews:
repository:
owner: unikraft
name: homebrew-cli
extra_install: |-
man1.install ./docs/man/*
builds:
#@ for bin, oses in binaries.items():
Expand Down

0 comments on commit a87ed38

Please sign in to comment.