Files
xtremflow/BUILD.md
T
MichaelandClaude Opus 5.5 3ea6fa0ae3 Serveur réécrit en Rust
Le serveur Dart (bin/) est remplacé par un serveur Rust (server/) :
tokio + axum, reqwest/rustls, SQLite embarqué via rusqlite. Même API,
mêmes routes et mêmes réponses : le front Flutter ne change pas.

La base de production est reprise telle quelle : schéma, migrations et
formats de dates (DateTime.toIso8601String de Dart) sont reproduits à
l'identique, les sessions et hachages existants restent valides.

Comportement conservé : cascade de routage, anti-SSRF, logs masqués,
rate limits, transcodage HLS/turbo.ts avec repli GPU, quotas fournisseur,
enregistrements (reprise, relances, fusion), season passes, EPG, logos de
repli, arrêt gracieux sur SIGTERM. Tests Dart portés (132 tests Rust) ;
la CI exécute fmt, test et clippy -D warnings, l'image Docker compile le
serveur dans un étage rust:1.98.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:29:57 +02:00

44 lines
1.4 KiB
Markdown

# How to Build XtremFlow as an Executable
To create a standalone `.exe` version of XtremFlow, you need to build it on your machine.
## Prerequisites
Since you are currently using Docker, you likely don't have these installed on your Windows system yet. You must install them to build the Windows executable.
1. **Install Flutter SDK**
* Download from: [flutter.dev/install/windows](https://docs.flutter.dev/get-started/install/windows)
* Extract the zip file to `C:\src\flutter` (for example).
* Add `flutter/bin` to your **System PATH**.
2. **Install Rust** (the server is written in Rust)
* Download `rustup-init.exe` from [rustup.rs](https://rustup.rs) and accept the defaults
(it installs the MSVC toolchain; Visual Studio Build Tools with the "C++ build tools"
workload are required).
3. **Verify Installation**
* Open a new terminal.
* Run `flutter doctor`.
* Ensure it says "Flutter ... channel stable".
* Run `cargo --version`.
## Building the App
Once Flutter is installed:
1. Open PowerShell in this folder.
2. Run the build script:
```powershell
.\build_release.ps1
```
## Adding FFmpeg
1. After the build finishes, open the new `dist` folder.
2. Go to `dist/ffmpeg/bin`.
3. Download `ffmpeg.exe` (from [ffmpeg.org](https://ffmpeg.org/download.html)) and place it there.
## Running
Double-click `dist/start.bat` to run the server!