114976b9125181747915ab3f14cdaf713821189c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
OpenPU
A free and native client to download updates for Peugeot head units (NAC / RCC / AIO / Crony firmware, and navigation maps) and prepare the installation USB stick. It is an alternative to the official "Peugeot Update" application (Windows/macOS only), for Linux (GTK4) and Haiku (Interface Kit).
Independent project, not affiliated with Stellantis or Peugeot. The names mentioned are trademarks of their respective owners.
- Repository: https://github.com/yann64/openpu
- License: MIT
- Release history: CHANGELOG.md
Status
- Analysis of the existing application: see
docs/analysis/(in French) - C++ core: VIN, Majestic API, resumable downloads, license, tar, settings, vehicles
- Linux USB support (UDisks2: listing, MBR + FAT32, mounting, ejecting) and writing the update
openpu-clicommand-line tool- GTK4 UI (Linux): complete workflow, preferences, new-version check
- Versioning (
--version, About dialog,vX.Y.Ztags, GitHub releases) - gettext translations (English, French)
- Haiku USB support (Storage Kit)
- Haiku UI
- 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)
Architecture
src/core libopenpu: Majestic API, resumable downloads, tar, USB (UDisks2 / Haiku Storage Kit)
src/cli openpu-cli
src/ui-gtk gtkmm-4 user interface
src/ui-haiku BeAPI user interface
po/ translations (gettext)
Building (Linux / WSL)
sudo apt install build-essential cmake ninja-build pkg-config libcurl4-openssl-dev \
libarchive-dev nlohmann-json3-dev doctest-dev libglib2.0-dev libgtkmm-4.0-dev gettext \
valgrind clang-tidy cppcheck
cmake --preset debug -DOPENPU_UI_GTK=ON && cmake --build --preset debug && ctest --preset debug
../build-openpu/debug/src/ui-gtk/openpu # graphical interface
../build-openpu/debug/src/cli/openpu-cli --version
tools/check.sh # tests + ASan/UBSan + valgrind + clang-tidy + cppcheck
# end-to-end USB test on a loop image (packages udisks2 dosfstools mtools)
sudo tools/dev-polkit.sh install # WSL/CI only: polkit without an agent
tools/e2e-usb.sh ../build-openpu/debug/src/cli/openpu-cli --license X.key update.tar
When running from the build tree, OPENPU_LOCALEDIR=../build-openpu/debug/locale lets the
interface find its translations.
Versioning
- The reference version is
project(openpu VERSION x.y.z)inCMakeLists.txt. On every build,git describeproduces the displayed description (for example0.2.0+3.g1a2b3c4.dirty). - A published version is an annotated
vX.Y.Ztag with a GitHub release, which the application checks to offer new versions.tools/release.sh X.Y.Zbumps the version, dates the CHANGELOG, commits, tags, pushes to every remote and creates the release.
Translations
Source strings are in English and translations use gettext (po/<language>.po). To add a
language:
- update the template with
cmake --build <build> --target pot, or withpython3 tools/extract_strings.py po/openpu.pot src/ui-gtk/main_window.cppif gettext is not installed; - copy
po/openpu.pottopo/<language>.poand translate it; - add the language to
po/LINGUASand to the list in the Preferences dialog.
Tools
tools/asar_extract.py: minimal, read-only asar extractor used to study the reference application. Extracted sources stay outside the repository.
Languages
C++
89.1%
Shell
4.3%
Python
3.3%
CMake
3.3%