forked from Akegarasu/lora-scripts
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathrun_gui.bat
More file actions
38 lines (34 loc) · 1.24 KB
/
Copy pathrun_gui.bat
File metadata and controls
38 lines (34 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
chcp 65001 >nul 2>&1
cd /d "%~dp0"
:: =============================================================================
:: Stable entrypoints (do not rename — portable 7z / user shortcuts bind here)
::
:: Portable layout:
:: python_embeded\ + Next-Trainer\gui.py
:: Prefer Next-Trainer\scripts\portable\launch_portable.bat (updates with git/7z)
:: Fallback: run_gui_portable.bat at package root (old releases)
::
:: Source checkout:
:: run_gui_source.bat -> install-cn.ps1 on first run
:: =============================================================================
if exist "python_embeded\python.exe" if exist "Next-Trainer\gui.py" (
if exist "Next-Trainer\scripts\portable\launch_portable.bat" (
call "%~dp0Next-Trainer\scripts\portable\launch_portable.bat" %*
exit /b %errorlevel%
)
if exist "run_gui_portable.bat" (
call "%~dp0run_gui_portable.bat" %*
exit /b %errorlevel%
)
echo [ERROR] Portable launcher missing. Update Next-Trainer or re-download the release 7z.
pause
exit /b 1
)
if exist "run_gui_source.bat" (
call "%~dp0run_gui_source.bat" %*
exit /b %errorlevel%
)
echo [ERROR] No launcher found. Please make sure the package is fully extracted.
pause
exit /b 1