1 # nfpm builds the .deb and .rpm attached to each GitHub release.
2 #
3 # One config covers both formats. nfpm takes an already-built binary rather
4 # than invoking cargo, so the release matrix compiles each Linux target once
5 # and packages it twice. `arch` is a Go arch name (amd64/arm64) that nfpm
6 # translates per format, so the rpm comes out tagged x86_64 without a second
7 # config.
8 #
9 # PKG_ARCH and PKG_VERSION are set by release-github.yml; PKG_BINARY points at
10 # the renamed binary already staged in release/. nfpm does not expand env vars
11 # in contents.src, so release-github.yml renders this file with envsubst before
12 # invoking nfpm.
13 name: sigit
14 arch: ${PKG_ARCH}
15 platform: linux
16 version: ${PKG_VERSION}
17 section: devel
18 priority: optional
19 maintainer: smbCloud <seto@sigit.si>
20 vendor: PT Sigit Mitra Bangun
21 homepage: https://sigit.si
22 license: Apache-2.0
23 description: |
24 siGit Code, an AI coding agent that runs on your machine.
25 Speaks the Agent Client Protocol for editor integration, and runs inference
26 either on-device or against a hosted endpoint.
27 contents:
28 - src: ${PKG_BINARY}
29 dst: /usr/bin/sigit
30 file_info:
31 mode: 0755
32 - src: ./LICENSE
33 dst: /usr/share/doc/sigit/LICENSE
34 file_info:
35 mode: 0644
36 - src: ./README.md
37 dst: /usr/share/doc/sigit/README.md
38 file_info:
39 mode: 0644