build: add Debian package release workflow - #1
Merged
Conversation
- Add nfpm.yaml configuration for Debian package metadata - Create mkdeb.sh script for building .deb packages - Add build-deb job to release workflow - Job uses nfpm to create Debian packages and upload to releases Agent-Logs-Url: https://github.com/Jelloeater/vicinae/sessions/7a2a5c11-4141-4b66-83eb-d87ea17aa118 Co-authored-by: Jelloeater <7862369+Jelloeater@users.noreply.github.com>
Claude created this pull request from a session on behalf of
Jelloeater
June 7, 2026 07:39
View session
There was a problem hiding this comment.
Pull request overview
This PR adds automated Debian package generation to the release CI so that .deb artifacts are built and uploaded to GitHub Releases alongside existing release artifacts.
Changes:
- Add
nfpm.yamldefining Debian package metadata, dependencies, and installed file mappings. - Add
scripts/mkdeb.shto validate inputs and runnfpmto produce a.deb. - Extend
.github/workflows/release.ymlwith abuild-debjob that installsnfpm, builds/installs via CMake, packages, and uploads*.debto the release.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
scripts/mkdeb.sh |
New packaging helper script that validates environment and runs nfpm. |
nfpm.yaml |
New nfpm manifest describing Debian package metadata and file install destinations. |
.github/workflows/release.yml |
Adds build-deb job to build and publish Debian packages on release tags. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| exit 1 | ||
| fi | ||
|
|
||
| VERSION="${VERSION/v/}" |
Comment on lines
+15
to
+25
| BUILD_DIR="$(pwd)/build" | ||
| INSTALL_DIR="$(pwd)/install" | ||
| if [[ ! -e "$INSTALL_DIR" ]]; then | ||
| echo "Error: INSTALL_DIR \"$INSTALL_DIR\" could not be found" \ | ||
| "(was vicinae built?)" >&2 | ||
| exit 1 | ||
| elif [[ ! -d "$BUILD_DIR" ]]; then | ||
| echo "Error: BUILD_DIR \"$BUILD_DIR\" could not be found" \ | ||
| "(was vicinae built?)" >&2 | ||
| exit 1 | ||
| fi |
Comment on lines
+2
to
+3
| arch: ${GOARCH} | ||
| platform: ${GOOS} |
Comment on lines
+29
to
+30
| - src: extra/vicinae.service | ||
| dst: /etc/systemd/system/vicinae.service |
Comment on lines
+33
to
+34
| - src: extra/udev/rules.d/70-vicinae.rules | ||
| dst: /lib/udev/rules.d/70-vicinae.rules |
Comment on lines
+35
to
+36
| - src: extra/modules-load.d/vicinae.conf | ||
| dst: /lib/modules-load.d/70-vicinae.rules |
Comment on lines
+166
to
+168
| echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list | ||
| sudo apt-get update -y | ||
| sudo apt-get install nfpm |
Jelloeater
approved these changes
Jun 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements Debian package builds in CI based on PR vicinaehq#1230. Adds automated
.debgeneration on release tags alongside existing AppImage and binary artifacts.Changes
nfpm.yaml: Package manifest defining dependencies (Qt6, layer-shell-qt, protobuf, etc.), file paths, and metadatascripts/mkdeb.sh: Build script wrapping nfpm with validation for VERSION, BUILD_DIR, and INSTALL_DIR.github/workflows/release.yml: Newbuild-debjob that installs nfpm, builds with-DVICINAE_PROVENANCE=deb, packages, and uploads to releasesNotes
Targets Ubuntu 24.04+ due to Qt6 and modern dependency requirements. Older distros should use AppImage. Runner uses same
[self-hosted, Linux, X64, appimage]configuration as AppImage build.