mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
Update lollms_installer.iss
This commit is contained in:
parent
e0076f1faa
commit
9d6f0e0caf
@ -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 +
|
||||
|
Loading…
Reference in New Issue
Block a user