Repository navigation
feat(packaging): build a .deb and a .tar.gz for Linux releases - #16
Merged
Merged
Conversation
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>
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.
Releases had no Linux package; the README said "kein Paket – aus dem Quellcode bauen".
What
packaging/linux/build-linux.shpackages thelinux-x64single-file publish asfreizeichen-<version>-linux-x64.tar.gz: any distribution. Unpack, start, press „Als Standard festlegen“ (the existingLinuxTelHandlerRegistration, unchanged).freizeichen_<version>_amd64.deb:/usr/lib/freizeichen/,/usr/bin/freizeichenlink, and/usr/share/applications/freizeichen.desktopwithMimeType=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: newlinuxjob (runs on PRs too, it's an ubuntu runner). It publishes, builds both packages,apt installs the.debon the runner, runsdesktop-file-validateand checks the tarball layout.releasewaits for it; the notes gain a Linux install bullet (rfcomm bind, groupdialout).Notes for review
Dependslistslibicu72 | 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..dmg, the packages also carry theFreizeichen*.xmldoc files from the publish output (GenerateDocumentationFileis on for IDE0005). That is harmless and is left for a separate change.Verification
-p:Version=0.2.0-rc.1publish; inspected withdpkg-deb -I/-candtar -tzv(root-owned, 755/644).desktop-file-validatepasses.pipx run zizmor .: no findings.make clean ci: 208 tests passed, format clean.packaging/**, so the Release workflow runs on it and must upload thelinuxartifact.🤖 Generated with Claude Code