- initApp() appelle deselectAll() au démarrage (sécurité) - Toast warning : fond jaune transparent + icône colorée - Ajout classe toast-icon pour colorer l'icône selon le type - Correction broadcast WebSocket batch delete (type mismatch) - Correction compilation Linux : service install/uninstall gated
20 lines
729 B
Rust
20 lines
729 B
Rust
//! Service Windows — Installation via NSSM (stub)
|
|
//! Phase 10: Code NSSM complet activé sur build Windows natif.
|
|
|
|
pub fn install() -> anyhow::Result<()> {
|
|
if !cfg!(windows) {
|
|
anyhow::bail!("L'installation en service est disponible uniquement sous Windows.\nCompilation Windows: cargo build --release --target x86_64-pc-windows-gnu");
|
|
}
|
|
println!("Installation du service Windows imagod-web...");
|
|
println!("(Build Windows natif requis pour l'installation NSSM automatique)");
|
|
Ok(())
|
|
}
|
|
|
|
pub fn uninstall() -> anyhow::Result<()> {
|
|
if !cfg!(windows) {
|
|
anyhow::bail!("Désinstallation disponible uniquement sous Windows");
|
|
}
|
|
println!("Désinstallation du service...");
|
|
Ok(())
|
|
}
|