FIX: đã sửa build_windows.bat

This commit is contained in:
2026-08-08 09:21:55 +07:00
parent 3f35b84535
commit bc759dd99a
2 changed files with 23 additions and 2 deletions
+17 -2
View File
@@ -41,7 +41,17 @@ if errorlevel 1 exit /b 1
pip install --no-deps "pedalboard>=0.8.0"
echo [4/6] Precompile JS...
npm install --no-audit --no-fund >nul 2>nul
npm install --no-audit --no-fund
if errorlevel 1 (
echo npm install that bai - kiem tra internet / package.json
pause
exit /b 1
)
if not exist "node_modules\@babel\cli\bin\babel.js" (
echo THIEU @babel/cli trong node_modules - npm install khong hoan tat
pause
exit /b 1
)
node node_modules/@babel/cli/bin/babel.js app/static/js/app.jsx --config-file ./babel.config.json -o app/static/js/app.precompiled.js
if errorlevel 1 exit /b 1
@@ -52,7 +62,12 @@ if not exist "src-tauri\binaries" mkdir "src-tauri\binaries"
copy /y dist\daw_engine.exe "src-tauri\binaries\daw_engine-x86_64-pc-windows-msvc.exe" >nul
echo [6/6] Build Tauri installer...
npm install -D @tauri-apps/cli@^2 >nul 2>nul
npm install -D @tauri-apps/cli@^2
if errorlevel 1 (
echo npm install tauri-cli that bai
pause
exit /b 1
)
call npx tauri build
echo.