docs: README entièrement en anglais ; ci: actions/checkout@v5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
This commit is contained in:
1 parent
2ce6ddde46
commit
82f968dbec
2 files changed
+51
-52
No files matched your search
@@ -1,74 +1,73 @@
|
||||
# OpenPU
|
||||
|
||||
Client libre et natif pour télécharger les mises à jour des autoradios Peugeot
|
||||
(firmware NAC / RCC / AIO / Crony, et cartographie) et préparer la clé USB d'installation.
|
||||
C'est une alternative à l'application officielle « Peugeot Update » (Windows/macOS uniquement), pour
|
||||
**Linux** (GTK4) et **Haiku** (Interface Kit).
|
||||
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).
|
||||
|
||||
> Projet indépendant, sans lien avec Stellantis ni Peugeot. Les noms cités sont des marques
|
||||
> de leurs propriétaires respectifs.
|
||||
> Independent project, not affiliated with Stellantis or Peugeot. The names mentioned are
|
||||
> trademarks of their respective owners.
|
||||
|
||||
- Dépôt : https://github.com/yann64/openpu (miroir : https://git.barbel.synology.me/yann64/opu)
|
||||
- Licence : [MIT](LICENSE)
|
||||
- Historique des versions : [CHANGELOG.md](CHANGELOG.md)
|
||||
- Repository: https://github.com/yann64/openpu (mirror: https://git.barbel.synology.me/yann64/opu)
|
||||
- License: [MIT](LICENSE)
|
||||
- Release history: [CHANGELOG.md](CHANGELOG.md)
|
||||
|
||||
## État
|
||||
- [x] Analyse de l'application existante : voir [`docs/analysis/`](docs/analysis/)
|
||||
- [x] Cœur C++ : VIN, API Majestic, téléchargement avec reprise, licence, tar, réglages, véhicules
|
||||
- [x] USB Linux (UDisks2 : liste, MBR + FAT32, montage, éjection) et écriture de la mise à jour
|
||||
- [x] CLI `openpu-cli`
|
||||
- [x] UI GTK4 (Linux) : parcours complet, préférences, recherche de nouvelle version
|
||||
- [x] Versions (`--version`, À propos, étiquettes `vX.Y.Z`, releases GitHub)
|
||||
- [x] Traductions gettext (anglais, français)
|
||||
- [ ] USB Haiku (Storage Kit)
|
||||
- [ ] UI Haiku
|
||||
- [x] Intégration continue GitHub Actions (Linux x86_64 + arm64)
|
||||
- [ ] Paquets Linux : `.deb`, Flatpak et AppImage ; Haiku : `.hpkg`
|
||||
- [ ] Binaires x86_64 + arm64 joints à chaque release (à partir de 1.0.0)
|
||||
## Status
|
||||
- [x] Analysis of the existing application: see [`docs/analysis/`](docs/analysis/) (in French)
|
||||
- [x] C++ core: VIN, Majestic API, resumable downloads, license, tar, settings, vehicles
|
||||
- [x] Linux USB support (UDisks2: listing, MBR + FAT32, mounting, ejecting) and writing the update
|
||||
- [x] `openpu-cli` command-line tool
|
||||
- [x] GTK4 UI (Linux): complete workflow, preferences, new-version check
|
||||
- [x] Versioning (`--version`, About dialog, `vX.Y.Z` tags, GitHub releases)
|
||||
- [x] gettext translations (English, French)
|
||||
- [ ] Haiku USB support (Storage Kit)
|
||||
- [ ] Haiku UI
|
||||
- [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)
|
||||
|
||||
## Architecture
|
||||
```
|
||||
src/core libopenpu : API Majestic, téléchargement avec reprise, tar, USB (UDisks2 / Haiku Storage Kit)
|
||||
src/core libopenpu: Majestic API, resumable downloads, tar, USB (UDisks2 / Haiku Storage Kit)
|
||||
src/cli openpu-cli
|
||||
src/ui-gtk interface gtkmm-4
|
||||
src/ui-haiku interface BeAPI
|
||||
po/ traductions (gettext)
|
||||
src/ui-gtk gtkmm-4 user interface
|
||||
src/ui-haiku BeAPI user interface
|
||||
po/ translations (gettext)
|
||||
```
|
||||
|
||||
## Compiler (Linux / WSL)
|
||||
## Building (Linux / WSL)
|
||||
```sh
|
||||
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 # interface graphique
|
||||
../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
|
||||
|
||||
# test USB de bout en bout sur une image loop (paquets udisks2 dosfstools mtools)
|
||||
sudo tools/dev-polkit.sh install # WSL/CI uniquement : polkit sans agent
|
||||
# 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
|
||||
```
|
||||
Depuis l'arborescence de compilation, `OPENPU_LOCALEDIR=../build-openpu/debug/locale` permet à
|
||||
l'interface de trouver ses traductions.
|
||||
When running from the build tree, `OPENPU_LOCALEDIR=../build-openpu/debug/locale` lets the
|
||||
interface find its translations.
|
||||
|
||||
## Versions
|
||||
- La version de référence est `project(openpu VERSION x.y.z)` dans `CMakeLists.txt`. À chaque
|
||||
compilation, `git describe` produit la description affichée (par exemple `0.2.0+3.g1a2b3c4.dirty`).
|
||||
- Une version publiée est une étiquette annotée `vX.Y.Z` accompagnée d'une release GitHub, que
|
||||
l'application consulte pour proposer les nouvelles versions. Le script
|
||||
`tools/release.sh X.Y.Z` monte la version, date le CHANGELOG, commite, étiquette, pousse vers
|
||||
tous les remotes et crée la release.
|
||||
## Versioning
|
||||
- The reference version is `project(openpu VERSION x.y.z)` in `CMakeLists.txt`. On every build,
|
||||
`git describe` produces the displayed description (for example `0.2.0+3.g1a2b3c4.dirty`).
|
||||
- A published version is an annotated `vX.Y.Z` tag with a GitHub release, which the application
|
||||
checks to offer new versions. `tools/release.sh X.Y.Z` bumps the version, dates the CHANGELOG,
|
||||
commits, tags, pushes to every remote and creates the release.
|
||||
|
||||
## Traductions
|
||||
Les textes sources sont en anglais et la traduction passe par gettext (`po/<langue>.po`). Pour
|
||||
ajouter une langue :
|
||||
1. mettre à jour le modèle avec `cmake --build <build> --target pot`, ou
|
||||
`python3 tools/extract_strings.py po/openpu.pot src/ui-gtk/main_window.cpp` si gettext n'est
|
||||
pas installé ;
|
||||
2. copier `po/openpu.pot` en `po/<langue>.po` et le traduire ;
|
||||
3. ajouter la langue dans `po/LINGUAS` et dans la liste du dialogue Préférences.
|
||||
## Translations
|
||||
Source strings are in English and translations use gettext (`po/<language>.po`). To add a
|
||||
language:
|
||||
1. update the template with `cmake --build <build> --target pot`, or with
|
||||
`python3 tools/extract_strings.py po/openpu.pot src/ui-gtk/main_window.cpp` if gettext is not
|
||||
installed;
|
||||
2. copy `po/openpu.pot` to `po/<language>.po` and translate it;
|
||||
3. add the language to `po/LINGUAS` and to the list in the Preferences dialog.
|
||||
|
||||
## Outils
|
||||
- `tools/asar_extract.py` : extracteur asar minimal, en lecture seule, pour étudier l'app de référence.
|
||||
Les sources extraites restent **hors du dépôt**.
|
||||
## Tools
|
||||
- `tools/asar_extract.py`: minimal, read-only asar extractor used to study the reference
|
||||
application. Extracted sources stay **outside the repository**.
|
||||
Reference in new issue
Block a user