Skip to content

feat(packaging): build a .deb and a .tar.gz for Linux releases - #16

Merged
DeepDiver1975 merged 1 commit into
mainfrom
build/linux-packages
Oct 27, 2026
Merged

DeepDiver1975 merged 1 commit into
mainfrom
build/linux-packages

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Collaborator

Releases had no Linux package; the README said "kein Paket – aus dem Quellcode bauen".

What

  • packaging/linux/build-linux.sh packages the linux-x64 single-file publish as
    • freizeichen-<version>-linux-x64.tar.gz: any distribution. Unpack, start, press „Als Standard festlegen“ (the existing LinuxTelHandlerRegistration, unchanged).
    • freizeichen_<version>_amd64.deb: /usr/lib/freizeichen/, /usr/bin/freizeichen link, and /usr/share/applications/freizeichen.desktop with MimeType=x-scheme-handler/tel;. It has the same desktop-file id as the entry the button writes, so a user entry shadows it cleanly. No maintainer scripts; desktop-file-utils' trigger refreshes the cache. Prereleases map - → ~ (0.2.0-rc.1 → 0.2.0~rc.1).
  • release.yml: new linux job (runs on PRs too, it's an ubuntu runner). It publishes, builds both packages, apt installs the .deb on the runner, runs desktop-file-validate and checks the tarball layout. release waits for it; the notes gain a Linux install bullet (rfcomm bind, group dialout).
  • README: Linux row in the install table; one sentence on the system desktop entry.

Notes for review

  • Depends lists libicu72 | libicu74 | libicu76 | libicu77 | libicu78: self-contained .NET still loads the system ICU, and its package name carries the version. This list will need a new entry when a distro moves to a newer ICU.
  • Like the MSI and .dmg, the packages also carry the Freizeichen*.xml doc files from the publish output (GenerateDocumentationFile is on for IDE0005). That is harmless and is left for a separate change.

Verification

  • Built both packages locally from a -p:Version=0.2.0-rc.1 publish; inspected with dpkg-deb -I/-c and tar -tzv (root-owned, 755/644). desktop-file-validate passes.
  • pipx run zizmor .: no findings. make clean ci: 208 tests passed, format clean.
  • This PR touches packaging/**, so the Release workflow runs on it and must upload the linux artifact.

🤖 Generated with Claude Code

Releases shipped the Windows MSI and the macOS .dmg files, but nothing
for Linux; the README told Linux users to build from source.

packaging/linux/build-linux.sh turns the linux-x64 single-file publish
into freizeichen-<version>-linux-x64.tar.gz for any distribution and
freizeichen_<version>_amd64.deb for Debian/Ubuntu. The .deb installs the
program under /usr/lib/freizeichen with a /usr/bin/freizeichen link and a
system freizeichen.desktop that declares x-scheme-handler/tel, under the
same name the "Als Standard festlegen" button writes, so a user entry
shadows it. A prerelease version gets "~" so it sorts below the final.

The new linux job in release.yml builds both, installs the .deb on the
runner, validates the desktop entry and checks the tarball layout; the
release job waits for it and the notes explain the Linux install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975
DeepDiver1975 merged commit d8d7bca into main Oct 27, 2026
9 checks passed
@DeepDiver1975
DeepDiver1975 deleted the build/linux-packages branch October 27, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant