-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_dev.bat
More file actions
33 lines (26 loc) · 827 Bytes
/
build_dev.bat
File metadata and controls
33 lines (26 loc) · 827 Bytes
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
@echo off
setlocal
:: Set MPV source directory
set MPV_SOURCE=src-tauri
:: Check if MPV DLL exists
if not exist "%MPV_SOURCE%\libmpv-2.dll" (
echo ERROR: MPV DLL not found at %MPV_SOURCE%\libmpv-2.dll
echo Please ensure libmpv-2.dll exists in the src-tauri directory
exit /b 1
)
:: Copy MPV DLL to release directory
echo Copying MPV DLL to release directory...
copy /Y "%MPV_SOURCE%\libmpv-2.dll" "src-tauri\target\release\libmpv-2.dll"
:: Generate the lib file from the DLL (if not already generated)
if not exist "%MPV_SOURCE%\libmpv-2.lib" (
echo Generating MPV lib file...
powershell -ExecutionPolicy Bypass -File "%MPV_SOURCE%\generate-lib.ps1"
)
:: Run the build
echo Building application...
npm run dev
if errorlevel 1 (
echo Build failed
exit /b 1
)
echo Build completed successfully