-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_release.bat
More file actions
40 lines (32 loc) · 1.17 KB
/
Copy pathbuild_release.bat
File metadata and controls
40 lines (32 loc) · 1.17 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
39
40
@echo off
chcp 65001 >nul
setlocal EnableExtensions
cd /d "%~dp0"
if not exist ".venv-build\Scripts\python.exe" (
echo Не найдено окружение .venv-build. Создайте его на Python 3.11/3.12.
exit /b 1
)
set "PY=.venv-build\Scripts\python.exe"
echo [1/5] Создание значка программы...
"%PY%" scripts\create_icon.py
if errorlevel 1 exit /b 1
echo [2/5] Загрузка и проверка FFmpeg и HTDemucs...
"%PY%" scripts\prepare_build_assets.py
if errorlevel 1 exit /b 1
echo [3/5] Сборка автономной программы...
set "STEMFLOW_FFMPEG_DIR=%CD%\vendor\ffmpeg"
"%PY%" -m PyInstaller --noconfirm --clean StemFlow.spec
if errorlevel 1 exit /b 1
echo [4/5] Поиск Inno Setup...
set "ISCC=%ProgramFiles(x86)%\Inno Setup 6\ISCC.exe"
if not exist "%ISCC%" set "ISCC=%LocalAppData%\Programs\Inno Setup 6\ISCC.exe"
if not exist "%ISCC%" (
echo Inno Setup не найден. Установите: winget install JRSoftware.InnoSetup
exit /b 1
)
echo [5/5] Сборка StemFlow-Setup.exe...
"%ISCC%" installer\StemFlow.iss
if errorlevel 1 exit /b 1
echo.
echo Готово: release\StemFlow-Setup.exe
exit /b 0