Skip to content

[FEATURE REQUEST] Add DEB, RPM and AppImage packaging for Linux - #16

Merged
Raiden-MeixElysia merged 5 commits into
ELY-Open-Source:mainfrom
yaoyao368345:codex/linux-packaging-v0.1.8
Oct 24, 2026
Merged

Raiden-MeixElysia merged 5 commits into
ELY-Open-Source:mainfrom
yaoyao368345:codex/linux-packaging-v0.1.8

Conversation

@yaoyao368345

Copy link
Copy Markdown
Contributor

Type

  • [FEATURE REQUEST]: a new feature or an improvement
  • [BUG REPORT]: a bug fix
  • [Other]: docs, refactoring, CI, dependencies or chores

What and why

Linux users currently manage tarball installation, desktop integration and runtime libraries themselves. One Ubuntu 22.04 Rust Release build now produces tar.gz, DEB, RPM and AppImage packages for the current v0.1.8 application, with desktop integration, licenses and a SHA-256 manifest.

Depends on #15 (please review/merge the X11 IME fix first). This head contains the same fix commits so every generated package includes the tested Chinese-input fix. The packaging-only changes can be reviewed by comparing the IME branch with this branch; neither PR changes application sources.

Implementation

  • Shared metadata/staging, a checked glibc 2.35 baseline, and exact current-version artifact filenames.
  • Native dependencies derived from ELF requirements, plus explicitly loaded desktop libraries and git/curl/xdg-utils.
  • RPM builds use an isolated temporary database, including unprivileged containers without a default RPM database.
  • AppImage tools pinned by SHA-256, a small keyboard-library bundle and relative RPATH without leaking a library path into child shells.
  • Package lifecycle checks on Ubuntu 22.04, Ubuntu 24.04, Debian 12 and Fedora 43; settings are preserved.
  • Installed DEB and portable AppImage start as a regular user under Xvfb/software OpenGL, with a mapped painted window, PTY proof, child-environment check and exit 0.
  • Actions upload review artifacts only. Official Releases and the existing release workflow are unchanged.

How it was tested

  • All four v0.1.8 packages rebuilt from one release binary; checksums, licenses, lintian and common executable code sections passed locally.
  • Ubuntu 22.04 DEB lifecycle and DEB/AppImage GUI smoke tests passed after the IME fix. The user confirmed Chinese input works and reported other common desktop operations working.
  • Fmt/clippy, 276 existing tests, four IME regressions, nine decoder tests, ShellCheck, actionlint and repository checks passed locally.
  • Application and dependency sources are unchanged by the split; the final workflow rebuilds and validates the submitted head.

Fork validation for this exact head:

  • Linux packages run 39745675082: successful; all four builds, checksums/lint, three DEB distributions, Fedora 43 RPM and both Ubuntu 22.04 GUI tests passed.
  • Linux IME run 39745675160: successful; project checks, 276 existing tests, four IME regressions, nine decoder tests and a locked build passed.

These are fork results; upstream PR-triggered checks are separate and may require maintainer approval.

Details and coverage boundaries are in packaging/linux/validation.md.

Remaining coverage

Wayland, normal FUSE mounting, ARM64, Fedora 42, multi-monitor operation, exhaustive interactive acceptance and RPM cross-version upgrades remain untested here. The DEB metadata-only upgrade fixture does not establish application migration between releases. Xvfb software Vulkan produced a black capture; these GUI checks explicitly exercise Mesa OpenGL.

Checklist

  • The title starts with [FEATURE REQUEST]
  • Tests and the build pass locally within the documented scope
  • Installation and validation docs are updated
  • No official release is modified or published

@Raiden-MeixElysia
Raiden-MeixElysia merged commit 19035b6 into ELY-Open-Source:main Oct 24, 2026
@Raiden-MeixElysia

Copy link
Copy Markdown
Contributor

Thank you, @yaoyao368345. Merged in 19035b6.

Three changes on the way in:

  • Main now carries its own compound text decoder, which grew out of your PR [FEATURE REQUEST] Improve Chinese IME compatibility on Linux X11 #15 and reads libX11's own tables. So the packages install libX11's notice for those tables, libX11-lcUniConv, where your branch shipped xim-rs's MIT license, and linux-package-test.sh checks for it.
  • packaging/linux/validation.md stayed out. It records your branch as of 2026-10-22, and parts of it no longer hold on main. The PR keeps it.
  • The tarball now carries the man page too, which linux-tar.sh left in its stage, and the README installs it under ~/.local/share/man/man1 (99e8020).

Your workflow runs on main at each push. On 99e8020 it built the four packages, linted the scripts and the DEB, installed, reinstalled and removed the DEB on Ubuntu 22.04, 24.04 and Debian 12 and the RPM on Fedora 43, and opened the DEB and the AppImage under Xvfb: run 40145343964.

Your packaging also closes an old gap: the tarball now carries ELYTerminal's own license and the fonts'.

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.

2 participants