.goreleaser.yaml RawHistoryFolder
1# Builds the GitHub release for a pushed v* tag (.github/workflows/release.yml)
2# and generates the neferwl-bin PKGBUILD. The workflow verifies that PKGBUILD
3# with makepkg before it pushes it to the AUR, so GoReleaser never uploads it.
4version: 2
5
6project_name: neferwl
7
8before:
9 hooks:
10 - go mod verify
11
12builds:
13 - id: neferwl
14 main: ./cmd/neferwl
15 binary: neferwl
16 env:
17 - CGO_ENABLED=0
18 goos: [linux]
19 goarch: [amd64, arm64]
20 flags:
21 - -trimpath
22 - -buildmode=pie
23 ldflags:
24 - -s -w -X main.version={{ .Version }}
25 # Same inputs give the same binary.
26 mod_timestamp: "{{ .CommitTimestamp }}"
27
28archives:
29 - id: neferwl
30 ids: [neferwl]
31 name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
32 formats: [tar.gz]
33 # Everything the PKGBUILD package() installs, at the paths of the repo.
34 files:
35 - LICENSE
36 - README.md
37 - examples/config
38 - examples/capture-allow
39 - packaging/neferwl-session
40 - packaging/neferwl.service
41 - packaging/neferwl-shutdown.target
42 - packaging/neferwl.desktop
43 - packaging/neferwl-portals.conf
44
45nfpms:
46 - id: neferwl
47 ids: [neferwl]
48 package_name: neferwl
49 file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Arch }}"
50 formats: [deb]
51 vendor: bnema
52 homepage: https://github.com/bnema/neferwl
53 maintainer: "bnema <b@bnema.dev>"
54 description: A Wayland compositor that spends its frames on your apps, not on itself
55 license: GPL-3.0-only
56 section: x11
57 bindir: /usr/bin
58 # Loaded at runtime (purego, no cgo): dpkg-shlibdeps cannot see them.
59 dependencies:
60 - libc6
61 - libinput10
62 - libseat1
63 - libudev1
64 - libxkbcommon0
65 - libvulkan1
66 - mesa-vulkan-drivers | vulkan-icd
67 - dbus
68 - libcap2-bin
69 suggests:
70 - xwayland-satellite
71 - foot
72 - fuzzel
73 - xdg-desktop-portal-gtk
74 - xdg-desktop-portal-wlr
75 scripts:
76 postinstall: packaging/deb/postinst
77 contents:
78 - src: packaging/neferwl-session
79 dst: /usr/bin/neferwl-session
80 file_info: {mode: 0755}
81 - src: packaging/neferwl.service
82 dst: /usr/lib/systemd/user/neferwl.service
83 - src: packaging/neferwl-shutdown.target
84 dst: /usr/lib/systemd/user/neferwl-shutdown.target
85 - src: packaging/neferwl.desktop
86 dst: /usr/share/wayland-sessions/neferwl.desktop
87 - src: packaging/neferwl-portals.conf
88 dst: /usr/share/xdg-desktop-portal/neferwl-portals.conf
89 - src: examples/config
90 dst: /usr/share/doc/neferwl/config.example
91 - src: examples/capture-allow
92 dst: /usr/share/doc/neferwl/capture-allow.example
93 - src: README.md
94 dst: /usr/share/doc/neferwl/README.md
95 - src: LICENSE
96 dst: /usr/share/doc/neferwl/copyright
97
98checksum:
99 name_template: checksums.txt
100 algorithm: sha256
101
102snapshot:
103 version_template: "{{ incpatch .Version }}-next"
104
105git:
106 tag_sort: -version:refname
107
108changelog:
109 sort: asc
110 use: github
111 filters:
112 exclude:
113 - "^style(\\([^)]+\\))?:"
114 - "^test(\\([^)]+\\))?:"
115 groups:
116 - title: Added
117 regexp: "^feat(\\([^)]+\\))?!?:"
118 order: 0
119 - title: Fixed
120 regexp: "^fix(\\([^)]+\\))?!?:"
121 order: 1
122 - title: Performance
123 regexp: "^perf(\\([^)]+\\))?!?:"
124 order: 2
125 - title: Changed
126 regexp: "^(refactor|build)(\\([^)]+\\))?!?:"
127 order: 3
128 - title: Documentation
129 regexp: "^docs(\\([^)]+\\))?!?:"
130 order: 4
131 - title: Maintenance
132 regexp: "^(chore|ci)(\\([^)]+\\))?!?:"
133 order: 5
134 - title: Other changes
135 order: 999
136
137release:
138 github:
139 owner: bnema
140 name: neferwl
141 draft: false
142 prerelease: auto
143 mode: replace
144 header: |
145 ## NeferWL {{ .Tag }}
146
147 ### Install on Arch Linux
148
149 ```sh
150 paru -S neferwl-bin # this release, pre-built (x86_64, aarch64)
151 paru -S neferwl-git # latest main, built from source
152 ```
153
154 ### Install the pre-built archive
155
156 Linux amd64 and arm64. Replace `amd64` with `arm64` on ARM.
157
158 ```sh
159 gh release download {{ .Tag }} -R bnema/neferwl -p 'neferwl_{{ .Version }}_linux_amd64.tar.gz' -p checksums.txt
160 sha256sum -c --ignore-missing checksums.txt
161 gh attestation verify neferwl_{{ .Version }}_linux_amd64.tar.gz -R bnema/neferwl
162 ```
163
164 ### Install on Ubuntu 24.04 and 26.04
165
166 Replace `amd64` with `arm64` on ARM.
167
168 ```sh
169 gh release download {{ .Tag }} -R bnema/neferwl -p 'neferwl_{{ .Version }}_amd64.deb' -p checksums.txt
170 sha256sum -c --ignore-missing checksums.txt
171 sudo apt install ./neferwl_{{ .Version }}_amd64.deb
172 ```
173
174 The archive holds the `neferwl` binary, the session files from `packaging/` and `examples/config`. See the [README](https://github.com/bnema/neferwl#readme) for runtime dependencies and the session setup.
175 footer: |
176 ---
177
178 **Full changelog**: https://github.com/bnema/neferwl/compare/{{ .PreviousTag }}...{{ .Tag }}
179
180aurs:
181 - name: neferwl-bin
182 ids: [neferwl]
183 homepage: https://github.com/bnema/neferwl
184 description: A Wayland compositor that spends its frames on your apps, not on itself
185 maintainers:
186 - "bnema <b at bnema dot dev>"
187 license: GPL-3.0-only
188 # The release workflow verifies and publishes the generated PKGBUILD.
189 skip_upload: true
190 # publish.sh ships the file next to the PKGBUILD.
191 install: ./packaging/neferwl.install
192 provides: [neferwl]
193 conflicts: [neferwl, neferwl-git]
194 # Loaded at runtime (purego, no cgo): not seen by makepkg's library scan.
195 depends:
196 - glibc
197 - libinput
198 - libxkbcommon
199 - seatd
200 - systemd-libs
201 - vulkan-icd-loader
202 - vulkan-driver
203 - wayland
204 - dbus
205 - libcap
206 optdepends:
207 - "xwayland-satellite>=0.7: X11 apps"
208 - "foot: default terminal"
209 - "fuzzel: launcher"
210 - "xdg-desktop-portal-gtk: file pickers and settings for apps"
211 - "xdg-desktop-portal-wlr: screen sharing and screenshots through the portal"
212 - "nefercap: screenshots and screen recording"
213 package: |-
214 install -Dm755 ./neferwl "${pkgdir}/usr/bin/neferwl"
215 install -Dm755 ./packaging/neferwl-session "${pkgdir}/usr/bin/neferwl-session"
216 install -Dm644 ./packaging/neferwl.service "${pkgdir}/usr/lib/systemd/user/neferwl.service"
217 install -Dm644 ./packaging/neferwl-shutdown.target "${pkgdir}/usr/lib/systemd/user/neferwl-shutdown.target"
218 install -Dm644 ./packaging/neferwl.desktop "${pkgdir}/usr/share/wayland-sessions/neferwl.desktop"
219 install -Dm644 ./packaging/neferwl-portals.conf "${pkgdir}/usr/share/xdg-desktop-portal/neferwl-portals.conf"
220 install -Dm644 ./examples/config "${pkgdir}/usr/share/doc/neferwl/config.example"
221 install -Dm644 ./examples/capture-allow "${pkgdir}/usr/share/doc/neferwl/capture-allow.example"
222 install -Dm644 ./README.md "${pkgdir}/usr/share/doc/neferwl/README.md"
223 install -Dm644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"