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
@@ -24,7 +24,7 @@ jobs:
|
|||||||
runner: ubuntu-24.04-arm
|
runner: ubuntu-24.04-arm
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # tags are needed for the version description
|
fetch-depth: 0 # tags are needed for the version description
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
name: ASan + UBSan
|
name: ASan + UBSan
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Dependencies
|
- name: Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|||||||
@@ -1,74 +1,73 @@
|
|||||||
# OpenPU
|
# OpenPU
|
||||||
|
|
||||||
Client libre et natif pour télécharger les mises à jour des autoradios Peugeot
|
A free and native client to download updates for Peugeot head units
|
||||||
(firmware NAC / RCC / AIO / Crony, et cartographie) et préparer la clé USB d'installation.
|
(NAC / RCC / AIO / Crony firmware, and navigation maps) and prepare the installation USB stick.
|
||||||
C'est une alternative à l'application officielle « Peugeot Update » (Windows/macOS uniquement), pour
|
It is an alternative to the official "Peugeot Update" application (Windows/macOS only), for
|
||||||
**Linux** (GTK4) et **Haiku** (Interface Kit).
|
**Linux** (GTK4) and **Haiku** (Interface Kit).
|
||||||
|
|
||||||
> Projet indépendant, sans lien avec Stellantis ni Peugeot. Les noms cités sont des marques
|
> Independent project, not affiliated with Stellantis or Peugeot. The names mentioned are
|
||||||
> de leurs propriétaires respectifs.
|
> trademarks of their respective owners.
|
||||||
|
|
||||||
- Dépôt : https://github.com/yann64/openpu (miroir : https://git.barbel.synology.me/yann64/opu)
|
- Repository: https://github.com/yann64/openpu (mirror: https://git.barbel.synology.me/yann64/opu)
|
||||||
- Licence : [MIT](LICENSE)
|
- License: [MIT](LICENSE)
|
||||||
- Historique des versions : [CHANGELOG.md](CHANGELOG.md)
|
- Release history: [CHANGELOG.md](CHANGELOG.md)
|
||||||
|
|
||||||
## État
|
## Status
|
||||||
- [x] Analyse de l'application existante : voir [`docs/analysis/`](docs/analysis/)
|
- [x] Analysis of the existing application: see [`docs/analysis/`](docs/analysis/) (in French)
|
||||||
- [x] Cœur C++ : VIN, API Majestic, téléchargement avec reprise, licence, tar, réglages, véhicules
|
- [x] C++ core: VIN, Majestic API, resumable downloads, license, tar, settings, vehicles
|
||||||
- [x] USB Linux (UDisks2 : liste, MBR + FAT32, montage, éjection) et écriture de la mise à jour
|
- [x] Linux USB support (UDisks2: listing, MBR + FAT32, mounting, ejecting) and writing the update
|
||||||
- [x] CLI `openpu-cli`
|
- [x] `openpu-cli` command-line tool
|
||||||
- [x] UI GTK4 (Linux) : parcours complet, préférences, recherche de nouvelle version
|
- [x] GTK4 UI (Linux): complete workflow, preferences, new-version check
|
||||||
- [x] Versions (`--version`, À propos, étiquettes `vX.Y.Z`, releases GitHub)
|
- [x] Versioning (`--version`, About dialog, `vX.Y.Z` tags, GitHub releases)
|
||||||
- [x] Traductions gettext (anglais, français)
|
- [x] gettext translations (English, French)
|
||||||
- [ ] USB Haiku (Storage Kit)
|
- [ ] Haiku USB support (Storage Kit)
|
||||||
- [ ] UI Haiku
|
- [ ] Haiku UI
|
||||||
- [x] Intégration continue GitHub Actions (Linux x86_64 + arm64)
|
- [x] GitHub Actions continuous integration (Linux x86_64 + arm64)
|
||||||
- [ ] Paquets Linux : `.deb`, Flatpak et AppImage ; Haiku : `.hpkg`
|
- [ ] Linux packages: `.deb`, Flatpak and AppImage; Haiku: `.hpkg`
|
||||||
- [ ] Binaires x86_64 + arm64 joints à chaque release (à partir de 1.0.0)
|
- [ ] x86_64 + arm64 binaries attached to every release (from 1.0.0 on)
|
||||||
|
|
||||||
## Architecture
|
## 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/cli openpu-cli
|
||||||
src/ui-gtk interface gtkmm-4
|
src/ui-gtk gtkmm-4 user interface
|
||||||
src/ui-haiku interface BeAPI
|
src/ui-haiku BeAPI user interface
|
||||||
po/ traductions (gettext)
|
po/ translations (gettext)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Compiler (Linux / WSL)
|
## Building (Linux / WSL)
|
||||||
```sh
|
```sh
|
||||||
sudo apt install build-essential cmake ninja-build pkg-config libcurl4-openssl-dev \
|
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 \
|
libarchive-dev nlohmann-json3-dev doctest-dev libglib2.0-dev libgtkmm-4.0-dev gettext \
|
||||||
valgrind clang-tidy cppcheck
|
valgrind clang-tidy cppcheck
|
||||||
cmake --preset debug -DOPENPU_UI_GTK=ON && cmake --build --preset debug && ctest --preset debug
|
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
|
../build-openpu/debug/src/cli/openpu-cli --version
|
||||||
tools/check.sh # tests + ASan/UBSan + valgrind + clang-tidy + cppcheck
|
tools/check.sh # tests + ASan/UBSan + valgrind + clang-tidy + cppcheck
|
||||||
|
|
||||||
# test USB de bout en bout sur une image loop (paquets udisks2 dosfstools mtools)
|
# end-to-end USB test on a loop image (packages udisks2 dosfstools mtools)
|
||||||
sudo tools/dev-polkit.sh install # WSL/CI uniquement : polkit sans agent
|
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
|
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 à
|
When running from the build tree, `OPENPU_LOCALEDIR=../build-openpu/debug/locale` lets the
|
||||||
l'interface de trouver ses traductions.
|
interface find its translations.
|
||||||
|
|
||||||
## Versions
|
## Versioning
|
||||||
- La version de référence est `project(openpu VERSION x.y.z)` dans `CMakeLists.txt`. À chaque
|
- The reference version is `project(openpu VERSION x.y.z)` in `CMakeLists.txt`. On every build,
|
||||||
compilation, `git describe` produit la description affichée (par exemple `0.2.0+3.g1a2b3c4.dirty`).
|
`git describe` produces the displayed description (for example `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
|
- A published version is an annotated `vX.Y.Z` tag with a GitHub release, which the application
|
||||||
l'application consulte pour proposer les nouvelles versions. Le script
|
checks to offer new versions. `tools/release.sh X.Y.Z` bumps the version, dates the CHANGELOG,
|
||||||
`tools/release.sh X.Y.Z` monte la version, date le CHANGELOG, commite, étiquette, pousse vers
|
commits, tags, pushes to every remote and creates the release.
|
||||||
tous les remotes et crée la release.
|
|
||||||
|
|
||||||
## Traductions
|
## Translations
|
||||||
Les textes sources sont en anglais et la traduction passe par gettext (`po/<langue>.po`). Pour
|
Source strings are in English and translations use gettext (`po/<language>.po`). To add a
|
||||||
ajouter une langue :
|
language:
|
||||||
1. mettre à jour le modèle avec `cmake --build <build> --target pot`, ou
|
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` si gettext n'est
|
`python3 tools/extract_strings.py po/openpu.pot src/ui-gtk/main_window.cpp` if gettext is not
|
||||||
pas installé ;
|
installed;
|
||||||
2. copier `po/openpu.pot` en `po/<langue>.po` et le traduire ;
|
2. copy `po/openpu.pot` to `po/<language>.po` and translate it;
|
||||||
3. ajouter la langue dans `po/LINGUAS` et dans la liste du dialogue Préférences.
|
3. add the language to `po/LINGUAS` and to the list in the Preferences dialog.
|
||||||
|
|
||||||
## Outils
|
## Tools
|
||||||
- `tools/asar_extract.py` : extracteur asar minimal, en lecture seule, pour étudier l'app de référence.
|
- `tools/asar_extract.py`: minimal, read-only asar extractor used to study the reference
|
||||||
Les sources extraites restent **hors du dépôt**.
|
application. Extracted sources stay **outside the repository**.
|
||||||
Reference in new issue
Block a user