diff --git a/.gitignore b/.gitignore index f72684cfd..c2381a603 100644 --- a/.gitignore +++ b/.gitignore @@ -126,3 +126,11 @@ tools/codex_windows_correction_rapport.py docs/clients/ .qw-baseline.log +docs/coordination/.loop_state/ + +# Runtime Python embedded pour l'installateur Inno Setup (local, ~11M, non versionné) +deploy/installer/python-3.12-embed/ +deploy/installer/python-3.12.8-embed-amd64.zip +# Artefacts de build installateur (EXE compilés + staging) — non versionnés +deploy/releases/*.exe +deploy/build/ diff --git a/deploy/installer/Lea.iss b/deploy/installer/Lea.iss index 261ef4398..1b8bc160e 100644 --- a/deploy/installer/Lea.iss +++ b/deploy/installer/Lea.iss @@ -144,7 +144,7 @@ Filename: "{cmd}"; \ Parameters: "/c copy /y ""{app}\Lea.bat"" ""{app}\Lea.bat.bak"" && powershell -NoProfile -ExecutionPolicy Bypass -File ""{app}\configure_embed.ps1"""; \ WorkingDir: "{app}"; \ StatusMsg: "Configuration du runtime Python embedded..."; \ - Flags: runhidden waituntilterminated skipifsilent; \ + Flags: runhidden waituntilterminated; \ Components: pythonembed ; Lancer Lea a la fin de l'installation (optionnel) @@ -243,9 +243,14 @@ begin // Essaye d'utiliser le GUID genere par Windows (via PowerShell) Guid := ''; if CreateGUIDString(Guid) then - Result := LowerCase(StringChange(StringChange(StringChange(Guid, '{', ''), '}', ''), '-', '')) + begin + StringChange(Guid, '{', ''); + StringChange(Guid, '}', ''); + StringChange(Guid, '-', ''); + Result := LowerCase(Guid); + end else - Result := IntToStr(GetTickCount); + Result := GetDateTimeString('yyyymmddhhnnss', #0, #0); // Ajoute un hash du hostname pour stabilite Hostname := GetComputerNameString(); @@ -404,8 +409,8 @@ begin // Derive ServerHost depuis ServerUrl : https://host/api/v1 -> host ServerHost := ServerUrl; - ServerHost := StringChange(ServerHost, 'https://', ''); - ServerHost := StringChange(ServerHost, 'http://', ''); + StringChange(ServerHost, 'https://', ''); + StringChange(ServerHost, 'http://', ''); SlashPos := Pos('/', ServerHost); if SlashPos > 0 then ServerHost := Copy(ServerHost, 1, SlashPos - 1);