v0.31.0 bf0756b

aur.yml RawHistoryFolder

1name: AUR Publish
2
3# This workflow publishes both AUR packages:
4# - dumber-browser-bin: Published after Flatpak workflow completes (on release)
5# - dumber-browser-git: Published after CI workflow completes on main branch
6
7on:
8  workflow_run:
9    workflows: ["CI", "Flatpak"]
10    types:
11      - completed
12
13jobs:
14  publish-aur-git:
15    name: Publish dumber-browser-git to AUR
16    runs-on: ubuntu-latest
17    if: >
18      github.event.workflow_run.name == 'CI' &&
19      github.event.workflow_run.conclusion == 'success' &&
20      github.event.workflow_run.head_branch == 'main'
21    concurrency:
22      group: aur-git-publish
23      cancel-in-progress: true
24
25    steps:
26      - uses: actions/checkout@v7.0.1
27        with:
28          ref: ${{ github.event.workflow_run.head_sha }}
29          fetch-depth: 0
30
31      - name: Calculate pkgver
32        id: pkgver
33        run: |
34          # Use same logic as PKGBUILD pkgver() function
35          PKGVER=$(git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || echo "0.0.0.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)")
36          echo "version=${PKGVER}" >> $GITHUB_OUTPUT
37          echo "Calculated pkgver: ${PKGVER}"
38
39      - name: Generate PKGBUILD for dumber-browser-git
40        run: |
41          PKGVER="${{ steps.pkgver.outputs.version }}"
42          
43          mkdir -p pkgbuild/dumber-browser-git
44          
45          printf '%s\n' \
46            '# Maintainer: bnema <b at bnema dot dev>' \
47            'pkgname=dumber-browser-git' \
48            "pkgver=${PKGVER}" \
49            'pkgrel=1' \
50            'pkgdesc="A minimal keyboard-driven browser for tiling WMs (git version)"' \
51            "arch=('x86_64')" \
52            'url="https://github.com/bnema/dumber"' \
53            "license=('MIT')" \
54            "makedepends=('go>=1.26' 'git' 'brotli')" \
55            "depends=('gtk4' 'cef' 'webkitgtk-6.0')" \
56            'optdepends=(' \
57            "    'gst-plugins-base: Base media codecs'" \
58            "    'gst-plugins-good: Additional media codecs'" \
59            "    'gst-plugins-bad: Extended media codecs'" \
60            "    'gst-plugins-ugly: Patented media codecs'" \
61            "    'gst-libav: FFmpeg-based codecs'" \
62            "    'gst-plugin-pipewire: PipeWire audio support'" \
63            "    'gst-plugin-va: Hardware video decoding (VA-API stateless decoders)'" \
64            "    'cef-vaapi-bin: Prebuilt CEF provider with VA-API hardware video decoding support'" \
65            "    'cef-vaapi: Source-built CEF provider with VA-API hardware video decoding support'" \
66            "    'pipewire: Audio/video routing'" \
67            "    'pipewire-pulse: PulseAudio replacement'" \
68            "    'mesa: VA-API driver for AMD GPUs'" \
69            "    'libva-nvidia-driver: VA-API driver for NVIDIA GPUs'" \
70            "    'libva-intel-driver: VA-API driver for older Intel GPUs'" \
71            "    'intel-media-driver: VA-API driver for newer Intel GPUs (Broadwell+)'" \
72            ')' \
73            "provides=('dumber-browser' 'dumber')" \
74            "conflicts=('dumber-browser' 'dumber-browser-bin')" \
75            'source=("git+https://github.com/bnema/dumber.git")' \
76            "sha256sums=('SKIP')" \
77            '' \
78            'pkgver() {' \
79            '    cd dumber' \
80            '    git describe --long --tags 2>/dev/null | sed '"'"'s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'"'"' || echo "0.0.0.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"' \
81            '}' \
82            '' \
83            'build() {' \
84            '    cd dumber' \
85            '    export CGO_ENABLED=0' \
86            '    # Keep global GOFLAGS wasm-safe; apply PIE only to native Go builds.' \
87            '    export GOFLAGS="-trimpath -mod=readonly -modcacherw"' \
88            '    export NATIVE_GOFLAGS="${GOFLAGS} -buildmode=pie"' \
89            '    make build' \
90            '}' \
91            '' \
92            'package() {' \
93            '    cd dumber' \
94            '    install -Dm755 dist/dumber "${pkgdir}/usr/bin/dumber"' \
95            '    install -Dm644 flatpak/dev.bnema.Dumber.desktop "${pkgdir}/usr/share/applications/dev.bnema.Dumber.desktop"' \
96            '    install -Dm644 assets/logo-512.png "${pkgdir}/usr/share/icons/hicolor/512x512/apps/dev.bnema.Dumber.png"' \
97            '    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"' \
98            '}' \
99            > pkgbuild/dumber-browser-git/PKGBUILD
100          
101          echo "Generated PKGBUILD:"
102          cat pkgbuild/dumber-browser-git/PKGBUILD
103
104      - name: Publish dumber-browser-git to AUR
105        uses: KSXGitHub/github-actions-deploy-aur@v4.2.0
106        with:
107          pkgname: dumber-browser-git
108          pkgbuild: ./pkgbuild/dumber-browser-git/PKGBUILD
109          commit_username: ${{ secrets.AUR_USERNAME }}
110          commit_email: ${{ secrets.AUR_EMAIL }}
111          ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
112          commit_message: "Update to ${{ steps.pkgver.outputs.version }}"
113          ssh_keyscan_types: rsa,ecdsa,ed25519
114
115  publish-aur-bin:
116    name: Publish dumber-browser-bin to AUR
117    runs-on: ubuntu-latest
118    if: >
119      github.event.workflow_run.name == 'Flatpak' &&
120      github.event.workflow_run.conclusion == 'success'
121    concurrency:
122      group: aur-bin-publish-${{ github.event.workflow_run.head_branch }}
123      cancel-in-progress: true
124
125    steps:
126      - uses: actions/checkout@v7.0.1
127        with:
128          fetch-depth: 0
129
130      - name: Get release info
131        id: release
132        run: |
133          TAG=$(git describe --tags --abbrev=0)
134          VERSION=${TAG#v}
135          echo "tag=${TAG}" >> $GITHUB_OUTPUT
136          echo "version=${VERSION}" >> $GITHUB_OUTPUT
137          echo "Publishing AUR package for $TAG (version $VERSION)"
138
139      - name: Wait 1 hour before publishing
140        run: |
141          echo "Waiting 1 hour before publishing to AUR..."
142          echo "This gives time to cancel if there are issues with the release."
143          echo "Started at: $(date -u)"
144          sleep 3600
145          echo "Wait complete at: $(date -u)"
146
147      - name: Verify release still exists
148        run: |
149          TAG="${{ steps.release.outputs.tag }}"
150          if ! gh release view "$TAG" &>/dev/null; then
151            echo "::error::Release $TAG no longer exists. Aborting AUR publish."
152            exit 1
153          fi
154          echo "Release $TAG verified, proceeding with AUR publish."
155        env:
156          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
157
158      - name: Download checksums
159        id: checksum
160        run: |
161          TAG="${{ steps.release.outputs.tag }}"
162          curl -sL "https://github.com/bnema/dumber/releases/download/${TAG}/checksums.txt" -o checksums.txt
163          cat checksums.txt
164          SHA256=$(grep 'dumber_linux_x86_64.tar.gz' checksums.txt | cut -d' ' -f1)
165          if [ -z "$SHA256" ]; then
166            echo "::error::Failed to extract SHA256 from checksums.txt"
167            exit 1
168          fi
169          echo "sha256=${SHA256}" >> $GITHUB_OUTPUT
170          echo "SHA256: ${SHA256}"
171
172      - name: Generate PKGBUILD for dumber-browser-bin
173        run: |
174          VERSION="${{ steps.release.outputs.version }}"
175          SHA256="${{ steps.checksum.outputs.sha256 }}"
176          
177          mkdir -p pkgbuild/dumber-browser-bin
178          
179          # Write PKGBUILD using printf to avoid heredoc issues
180          printf '%s\n' \
181            '# Maintainer: bnema <b at bnema dot dev>' \
182            'pkgname=dumber-browser-bin' \
183            "pkgver=${VERSION}" \
184            'pkgrel=1' \
185            'pkgdesc="A minimal keyboard-driven browser for tiling WMs"' \
186            "arch=('x86_64')" \
187            'url="https://github.com/bnema/dumber"' \
188            "license=('MIT')" \
189            "depends=('gtk4' 'cef' 'webkitgtk-6.0')" \
190            'optdepends=(' \
191            "    'gst-plugins-base: Base media codecs'" \
192            "    'gst-plugins-good: Additional media codecs'" \
193            "    'gst-plugins-bad: Extended media codecs'" \
194            "    'gst-plugins-ugly: Patented media codecs'" \
195            "    'gst-libav: FFmpeg-based codecs'" \
196            "    'gst-plugin-pipewire: PipeWire audio support'" \
197            "    'gst-plugin-va: Hardware video decoding (VA-API stateless decoders)'" \
198            "    'cef-vaapi-bin: Prebuilt CEF provider with VA-API hardware video decoding support'" \
199            "    'cef-vaapi: Source-built CEF provider with VA-API hardware video decoding support'" \
200            "    'pipewire: Audio/video routing'" \
201            "    'pipewire-pulse: PulseAudio replacement'" \
202            "    'mesa: VA-API driver for AMD GPUs'" \
203            "    'libva-nvidia-driver: VA-API driver for NVIDIA GPUs'" \
204            "    'libva-intel-driver: VA-API driver for older Intel GPUs'" \
205            "    'intel-media-driver: VA-API driver for newer Intel GPUs (Broadwell+)'" \
206            ')' \
207            "provides=('dumber-browser' 'dumber')" \
208            "conflicts=('dumber-browser' 'dumber-browser-git')" \
209            'source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bnema/dumber/releases/download/v${pkgver}/dumber_linux_x86_64.tar.gz")' \
210            "sha256sums=('${SHA256}')" \
211            '' \
212            'package() {' \
213            '    cd "${srcdir}/dumber_${pkgver}"' \
214            '    install -Dm755 dumber "${pkgdir}/usr/bin/dumber"' \
215            '    install -Dm644 dev.bnema.Dumber.desktop "${pkgdir}/usr/share/applications/dev.bnema.Dumber.desktop"' \
216            '    install -Dm644 logo-512.png "${pkgdir}/usr/share/icons/hicolor/512x512/apps/dev.bnema.Dumber.png"' \
217            '    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"' \
218            '}' \
219            > pkgbuild/dumber-browser-bin/PKGBUILD
220          
221          echo "Generated PKGBUILD:"
222          cat pkgbuild/dumber-browser-bin/PKGBUILD
223
224      - name: Publish dumber-browser-bin to AUR
225        uses: KSXGitHub/github-actions-deploy-aur@v4.2.0
226        with:
227          pkgname: dumber-browser-bin
228          pkgbuild: ./pkgbuild/dumber-browser-bin/PKGBUILD
229          commit_username: ${{ secrets.AUR_USERNAME }}
230          commit_email: ${{ secrets.AUR_EMAIL }}
231          ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
232          commit_message: "Update to ${{ steps.release.outputs.version }}"
233          ssh_keyscan_types: rsa,ecdsa,ed25519

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close