Haiku packaging: .hpkg script and HaikuPorts recipe template
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run

- tools/haiku-package.sh: release build staged into the package layout
  (apps/OpenPU, bin/openpu-cli, data/locale, Deskbar link), .PackageInfo
  with the library requirements, `package create`. Validated with
  `pkgman install` in the Haiku R1/beta6 VM.
- packaging/haiku/openpu.recipe: HaikuPorts recipe template, to be named
  after the released version with the archive checksum.
- The Haiku application is installed in apps/ and finds its translations
  through BPathFinder (data/locale of its installation location).
- Fix: `cmake --install --strip` dropped the application's resources
  (icon, signature, version); they are attached again after install.

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:50:47 +01:00
1 parent b757b35709
commit d190a8b5f8
7 files changed
+180 -6

No files matched your search

+8 -1
View File
@@ -27,7 +27,8 @@ It is an alternative to the official "Peugeot Update" application (Windows/macOS
- [x] GitHub Actions continuous integration (Linux x86_64 + arm64)
- [x] Linux packages: Debian package (`cpack -G DEB`) and AppImage (`tools/appimage.sh`)
- [x] `Release` workflow: `.deb`, AppImage and `openpu-cli` tarball for x86_64 and arm64
- [ ] Flatpak; Haiku `.hpkg`
- [x] Haiku package (`tools/haiku-package.sh`) and HaikuPorts recipe template
- [ ] Flatpak
- [ ] x86_64 + arm64 binaries attached to every release (from 1.0.0 on)
## Architecture
@@ -77,6 +78,12 @@ cmake -S . -B build -G Ninja && cmake --build build && build/tests/openpu_tests
OPENPU_LOCALEDIR=build/locale build/src/ui-haiku/OpenPU # graphical interface
build/src/cli/openpu-cli usb-list
```
Package: `tools/haiku-package.sh` builds `openpu-<version>-1-x86_64.hpkg` in the current
directory (application in `apps/`, `openpu-cli` in `bin/`, translations, Deskbar entry); install
it with `pkgman install ./openpu-*.hpkg`. GitHub has no Haiku runners, so the package is built in
the VM and attached to the release by hand. `packaging/haiku/openpu.recipe` is the template of the
HaikuPorts recipe, to fill in with the released version and its checksum.
`tools/haiku-vm.sh` installs and runs a Haiku R1/beta6 VM under QEMU/KVM (from WSL or Linux), with
a virtual USB stick; `sync` copies the working tree into it and `ssh` runs commands there.