init: 初始化项目

This commit is contained in:
0264408
2026-03-10 16:26:48 +08:00
commit 57e0ef2cf6
79 changed files with 8943 additions and 0 deletions

24
scripts/build.bat Normal file
View File

@@ -0,0 +1,24 @@
@echo off
setlocal
set BINARY=nebula-server
set OUT_DIR=dist
set WEB_DIR=web
echo Building frontend...
cd %WEB_DIR%
call pnpm run build
if %ERRORLEVEL% neq 0 (
echo Frontend build failed.
exit /b 1
)
cd ..
if not exist %OUT_DIR% mkdir %OUT_DIR%
echo Building %BINARY%...
go build -o %OUT_DIR%\%BINARY%.exe ./cmd/nebula-server/
if %ERRORLEVEL% neq 0 (
echo Build failed.
exit /b 1
)
echo Build done: %OUT_DIR%\%BINARY%.exe
endlocal