-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
executable file
·24 lines (20 loc) · 776 Bytes
/
Copy pathbuild.bat
File metadata and controls
executable file
·24 lines (20 loc) · 776 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
@echo off
echo ============================================
echo Building CodexManagerGo
echo ============================================
echo [1/2] Compiling Official Version (No DevTools, No Console)...
wails build -clean -ldflags="-s -w -H=windowsgui" -o CodexManagerGo.exe
if errorlevel 1 (
echo BUILD FAILED
exit /b 1
)
echo [2/2] Copying migration files...
if not exist "%~dp0build\bin\migrations" mkdir "%~dp0build\bin\migrations"
copy "%~dp0migrations\*.sql" "%~dp0build\bin\migrations\" >nul
copy /y "%~dp0build\bin\CodexManagerGo.exe" "%~dp0" >nul
echo.
echo ============================================
echo Build Complete!
echo ============================================
echo Official Version:
dir "%~dp0CodexManagerGo.exe" | findstr /C:".exe"