Update lollms_installer.iss

This commit is contained in:
Saifeddine ALOUI 2024-10-08 12:24:48 +02:00 committed by GitHub
parent e0076f1faa
commit 9d6f0e0caf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -198,18 +198,14 @@ begin
if BindingScript <> '' then
begin
// Change the current working directory to {app}\lollms-webui
Exec(ExpandConstant('{app}\lollmsenv\envs\lollms_env\Scripts\python.exe'),
ExpandConstant('-c "import os; os.chdir(r''{app}\lollms-webui'')"'),
'', SW_HIDE, ewWaitUntilTerminated, ResultCode);
// Now execute the binding script
Exec(ExpandConstant('{app}\lollmsenv\envs\lollms_env\Scripts\python.exe'),
ExpandConstant('"{app}\lollms-webui\zoos\bindings_zoo\' + BindingScript + '\__init__.py"'),
// Execute the binding script in the correct directory
Exec(ExpandConstant('{cmd}'),
ExpandConstant('/c "cd /d "{app}\lollms-webui" && "{app}\lollmsenv\envs\lollms_env\Scripts\python.exe" "zoos\bindings_zoo\' + BindingScript + '\__init__.py""'),
'', SW_SHOW, ewWaitUntilTerminated, ResultCode);
end;
SaveStringToFile(ExpandConstant('{app}\lollms.bat'),
'@echo off' + #13#10 +
'call "' + ExpandConstant('{app}') + '\lollmsenv\envs\lollms_env\Scripts\activate.bat"' + #13#10 +