Linux packaging: Debian package, AppImage script, release workflow
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run

- CPack DEB configuration (cmake/Packaging.cmake): dependencies from
  dpkg-shlibdeps, udisks2 recommended, strip.
- AppStream metadata, installed with the desktop file and the icons;
  tools/release.sh adds each release to it.
- tools/appimage.sh: AppImage of the GTK interface and openpu-cli with
  linuxdeploy and its GTK plugin (x86_64 and aarch64).
- Release workflow: .deb, AppImage and openpu-cli tarball for x86_64 and
  arm64, attached to the release of a vX.Y.Z tag, or kept as artifacts
  on a manual run. tools/release.sh edits the release when the workflow
  created it first.
- The GTK interface finds its translations next to the executable
  (../share/locale), for relocatable installs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
This commit is contained in:
yann64andClaude Opus 5.5 committed 2026-11-29 06:17:50 +01:00
1 parent bbc3bb3896
commit ce7316af29
11 files changed
+261 -8

No files matched your search

+17 -2
View File
@@ -25,8 +25,9 @@ It is an alternative to the official "Peugeot Update" application (Windows/macOS
- [x] Haiku: core library, CLI and USB support (Storage Kit), validated in a Haiku R1/beta6 VM
- [x] Haiku UI (Interface Kit): complete workflow, preferences, new-version check
- [x] GitHub Actions continuous integration (Linux x86_64 + arm64)
- [ ] Linux packages: `.deb`, Flatpak and AppImage; Haiku: `.hpkg`
- [ ] x86_64 + arm64 binaries attached to every release (from 1.0.0 on)
- [x] Debian package (`cpack -G DEB`)
- [ ] AppImage (`tools/appimage.sh`, not validated yet), Flatpak; Haiku: `.hpkg`
- [ ] x86_64 + arm64 binaries attached to every release (from 1.0.0 on): release workflow ready
## Architecture
```
@@ -54,6 +55,20 @@ tools/e2e-usb.sh ../build-openpu/debug/src/cli/openpu-cli --license X.key update
When running from the build tree, `OPENPU_LOCALEDIR=../build-openpu/debug/locale` lets the
interface find its translations.
## Packages (Linux)
```sh
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DOPENPU_UI_GTK=ON
cmake --build build && (cd build && cpack -G DEB) # build/openpu_<version>_<arch>.deb
tools/appimage.sh # ./OpenPU-<version>-<arch>.AppImage
```
The Debian package gets its dependencies from `dpkg-shlibdeps` and recommends `udisks2`, which
formats and mounts the USB stick. `tools/appimage.sh` downloads linuxdeploy and its GTK plugin
into `~/.cache/openpu-appimage`.
The `Release` GitHub workflow builds the Debian package, the AppImage and a `openpu-cli` tarball
for x86_64 and arm64. On a `vX.Y.Z` tag it attaches them to the release, and a manual run keeps
them as workflow artifacts.
## Building (Haiku)
```sh
pkgman install cmake ninja curl_devel libarchive_devel nlohmann_json gettext gettext_libintl_devel