24 Commits
Author SHA1 Message Date
yann64andClaude Opus 5.5 b7d60634dc release: v0.3.0
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Release / Linux arm64 (push) Waiting to run
Release / Linux x86_64 (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-29 07:37:17 +01:00
yann64andClaude Opus 5.5 d190a8b5f8 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
2026-11-29 06:50:47 +01:00
yann64andClaude Opus 5.5 b757b35709 README: AppImage and release workflow validated
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
The manual Release run built the .deb, AppImage and openpu-cli tarball
for x86_64 and arm64; the x86_64 AppImage runs in WSL with its French
translation and bundled icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-29 06:29:06 +01:00
yann64andClaude Opus 5.5 ce7316af29 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
2026-11-29 06:17:50 +01:00
yann64andClaude Opus 5.5 bbc3bb3896 Add the OpenPU application icon (SVG, HVIF, PNG)
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Original artwork: a generic shield with a "PU" monogram and a small
download arrow, deep blue and white. tools/make_icons.py describes the
shapes once and writes the master SVG, a simplified 16/24 px variant, the
Haiku HVIF and PNG renderings from 16 to 512 px (own antialiased
rasterizer, standard library only).

- Linux: icons installed in the hicolor theme as io.github.openpu.OpenPU
  (the name the .desktop file and the About dialog already use), with a
  build-tree copy for uninstalled runs.
- Haiku: the HVIF is embedded as the vector_icon resource; the executable
  is relinked when only its resources change.
- Fix: po/ did not include GNUInstallDirs, so translations were installed
  outside the locale directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-29 06:11:23 +01:00
yann64andClaude Opus 5.5 155545660e Haiku: native Interface Kit user interface
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Same workflow as the GTK interface: vehicle list, adding a vehicle by VIN,
available updates, download folder, resumable download with progress, USB
stick selection with an erase confirmation, writing, installation guide.
Also a Preferences window (folder, language, automatic new-version check),
an About window and the manual new-version check.

Worker threads post closures to the window through a non-blocking queue
(BMessenger with a zero timeout). Translations use gettext with the GTK
catalogs; the default language comes from the Locale preferences. The
executable gets its signature and version from a generated .rdef.

Validated in the Haiku R1/beta6 VM against a mock Majestic server: full
flow down to a FAT32 stick with license/, both archives and no
UpdateInfo.xml; French interface; GitHub new-version check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-29 05:56:25 +01:00
yann64andClaude Opus 5.5 e5af8ea27d docs: fix JSON escaping example
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 23:50:40 +01:00
yann64andClaude Opus 5.5 c2ed18a8ed docs: restore JSON escaping example, Haiku USB support in the status list
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 23:50:29 +01:00
yann64andClaude Opus 5.5 9a24c2eb61 docs: translate docs/analysis to English
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
- API.md, workflow.md and usb-layout.md translated
- usb-layout.md: describe the formatting that OpenPU actually performs
  on Linux (UDisks2) and Haiku (one transaction per step)
- API.md: restore the = / & escaping example lost earlier

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 23:50:13 +01:00
yann64andClaude Opus 5.5 962343f220 haiku: working USB backend, symlink-safe extraction
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
- usb_haiku.cpp: each disk device transaction kept minimal, because
  Haiku R1/beta6 rejects or hangs on combined ones: erase foreign
  content, delete old MBR partitions, create the 0x0c partition
  ("FAT 32-bit, LBA-mapped", with "active false" parameters) and format
  FAT32 are separate commits; Uninitialize is never used on an MBR
- OPENPU_DEBUG=1 traces the Haiku disk device steps on stderr
- extractTar resolves the destination first: SECURE_SYMLINKS refused
  destinations under a symlink (/tmp on Haiku)
- check.sh: clang-tidy skips sources not built on Linux
- validated in the Haiku VM: write-usb on the virtual stick gives an MBR,
  a FAT32 partition at 1 MiB, the label, license/ and the archive tree
  without UpdateInfo.xml, with identical checksums; 53 unit tests pass

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 23:49:13 +01:00
yann64andClaude Opus 5.5 b2ca454d44 haiku: USB backend (Storage Kit), bundled doctest, VM sync tooling
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
- usb_haiku.cpp: lists /dev/disk/usb/* drives (never the boot volume),
  formats MBR + FAT32 at 1 MiB through BDiskDevice/BPartition, mounts,
  unmounts and ejects; modifications are cancelled on failure
- third_party/doctest (MIT single header) used when no system package
  exists (HaikuPorts has none)
- tools/haiku-vm.sh: sync command, dedicated SSH key; tools/qmp.py:
  typefile command and slower key pacing
- builds on Haiku R1/beta6 x86_64; usb-list sees the virtual stick.
  Known issue: some unit tests still fail on Haiku (to investigate).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 20:20:43 +01:00
yann64andClaude Opus 5.5 114976b912 release.sh: fix release notes extraction (empty notes in v0.2.0)
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 20:09:05 +01:00
yann64andClaude Opus 5.5 1c1ccd631a docs: CHANGELOG in English, README without the mirror link; Haiku VM tooling
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
- CHANGELOG.md translated to English (GitHub release notes of v0.1.0 and
  v0.2.0 updated accordingly)
- tools/haiku-vm.sh: Haiku R1/beta6 x86_64 VM under QEMU/KVM (verified
  image, 20 GB disk, virtual USB stick, SSH port forward, QMP socket)
- tools/qmp.py: headless control through QMP (PNG screenshots, absolute
  clicks, typing, key combos, power-off)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 20:08:31 +01:00
yann64andClaude Opus 5.5 32412fe6be release: v0.2.0
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:59:07 +01:00
yann64andClaude Opus 5.5 7d0cb8c4a8 release.sh: trailers optionnels (RELEASE_TRAILER)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:59:07 +01:00
yann64andClaude Opus 5.5 323c36ba3c i18n: en-tête complet de fr.po
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:58:56 +01:00
yann64andClaude Opus 5.5 82f968dbec docs: README entièrement en anglais ; ci: actions/checkout@v5
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:56:44 +01:00
yann64andClaude Opus 5.5 2ce6ddde46 ci: GitHub Actions sur Linux x86_64 et arm64
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
- compilation (cœur, CLI, GTK, traductions) et tests unitaires sur les
  runners ubuntu-24.04 et ubuntu-24.04-arm, avec -Werror
- tâche ASan + UBSan
- feuille de route : AppImage, puis binaires x86_64 + arm64 dans chaque
  release à partir de 1.0.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:55:02 +01:00
yann64andClaude Opus 5.5 384aaf78c6 gtk: interface GTK4, préférences, versions, traductions, licence MIT
- interface gtkmm-4 : véhicules, ajout par VIN, mises à jour, dossier,
  téléchargement avec reprise et arrêt, choix de la clé, confirmation,
  écriture avec progression, fin avec guide d'installation ; travail
  dans un thread, résultats renvoyés via Glib::Dispatcher
- préférences : dossier de téléchargement, langue (système par défaut),
  recherche automatique de nouvelle version d'OpenPU
- recherche de nouvelle version (releases GitHub, format tags Gitea
  accepté) avec ouverture de la page dans le navigateur ;
  openpu-cli app-update
- versions : project(VERSION) + git describe régénéré à chaque build,
  openpu-cli --version, À propos, User-Agent, CHANGELOG, tools/release.sh
  (étiquette annotée, push vers tous les remotes, release GitHub)
- traductions gettext : textes anglais, fr.po complet (96 chaînes),
  extracteur de secours sans xgettext
- core : module job (téléchargement licence/fw/carte), liens des guides
  PDF, ordre des véhicules conservé (ordered_json)
- licence MIT (LICENSE, en-têtes SPDX) ; dépôt principal sur GitHub
- validé dans WSLg : parcours complet jusqu'à l'écriture d'une clé loop
  (FAT32 propre, fichiers téléchargés supprimés)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:54:04 +01:00
yann64andClaude Opus 5.5 6a7a2f1ee9 usb: backend UDisks2 et écriture de la mise à jour sur clé
- API UsbBackend (liste, formatage FAT32, éjection) + implémentation
  UDisks2 via GDBus : disques USB amovibles uniquement (jamais HintSystem),
  table MBR + partition 0x0c à 1 Mio formatée vfat, montage, PowerOff ;
  autorisation déléguée à polkit (pas de root)
- writeToUsb : vérification des archives AVANT effacement, formatage,
  licence dans license/, extraction fw puis carte, éjection
- règles de l'app officielle : label assaini (11 car., majuscules, NEW),
  taille de clé minimale 2/4/8… Go avec marge de 10 %
- CLI : usb-list, write-usb (confirmation YES), write-dir
- tests : faux backend (ordre des étapes, archive corrompue => clé
  intacte), labels, tailles
- tools/e2e-usb.sh : image loop via UDisks2 + contrôle sfdisk/fsck/mtools ;
  tools/dev-polkit.sh pour WSL/CI
- validé de bout en bout avec le vrai firmware RCC 8,39 Go : MBR, FAT32,
  label, arborescence, fsck propre, en environ 20 s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:17:00 +01:00
yann64andClaude Opus 5.5 543347a1e6 core: téléchargement avec reprise, archives tar et persistance
- Downloader : HEAD + Range avec reprise, re-probe à chaque essai (URL CDN
  signées), retries bornés, fichier partiel conservé, repli sans Range,
  annulation, progression et ETA
- licence : fichier temporaire renommé à la fin ; le placeholder vide
  « licenses_<id>_<ts>.tar » renvoyé par Majestic pendant la génération de
  la licence est jeté et la requête relancée (cause du bug ENOENT de l'app
  officielle)
- archives (libarchive) : vérification complète, extraction qui ignore
  UpdateInfo.xml, refus des chemins absolus/.., liens ignorés (FAT32)
- persistance : vehicles.json compatible avec l'app officielle (BOM inclus),
  réglages + téléchargement en attente, chemins XDG / Haiku, écriture atomique
- CLI : download, verify, extract ; Ctrl-C annule proprement
- tests : faux CDN (coupures, sans Range, 4xx, annulation), tar
  ustar/gnu/pax/v7, corruption, traversal (42 cas, 322 assertions)
- validé en réel : firmware RCC 8,39 Go téléchargé, interrompu, repris et
  vérifié (ustar, 16 entrées)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:00:21 +01:00
yann64andClaude Opus 5.5 95704f9882 core: client API Majestic, modèles et CLI check
- libopenpu : validation VIN, modèles JSON (getAvailableUpdate, devices),
  classification ecuType -> type/guide, sélection des mises à jour
- couche Transport abstraite + implémentation libcurl (proxy env, redirections,
  streaming, timeout d'inactivité)
- tolérance au EOF TLS sans close_notify de la passerelle Majestic, limitée
  aux corps délimités par la fermeture (ni Content-Length ni chunked)
- openpu-cli : check / raw-devices / raw-updates
- tests doctest (VIN, parsing, classification, client API avec faux transport),
  fixtures dont une capture réelle anonymisée (NAC wave 2)
- qualité : presets CMake (debug, asan, tidy), .clang-tidy, tools/check.sh
  (tests, ASan/UBSan, valgrind, clang-tidy, cppcheck)
- validé contre l'API réelle sur 3 véhicules (NAC w4, RCC, NAC w2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 17:45:27 +01:00
yann64andClaude Opus 5.5 660a420a3e chore: forcer les fins de ligne LF
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 17:32:10 +01:00
yann64andClaude Opus 5.5 f1cd91210d docs: analyse de Peugeot Update 1.6.1 et squelette du dépôt
- API Majestic (devices, getAvailableUpdate, téléchargements Range/licence)
- déroulé fonctionnel et machine à états de l'app d'origine
- format de la clé USB (FAT32, license/, extraction tar)
- extracteur asar minimal en lecture seule (tools/asar_extract.py)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 17:31:57 +01:00