-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathrun.bat
More file actions
29 lines (26 loc) · 764 Bytes
/
run.bat
File metadata and controls
29 lines (26 loc) · 764 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
@echo off
echo ==========================================
echo Gemini-Web2API (Go Version)
echo ==========================================
echo.
:: 1. Check if exe exists, if not or if code changed, rebuild
if not exist Gemini-Web2API.exe (
echo Executable not found. Building...
go build -ldflags="-s -w" -o Gemini-Web2API.exe cmd/server/main.go
if %errorlevel% neq 0 (
echo Build failed! Please check your Go installation.
pause
exit /b
)
echo Build successful!
)
:: 2. Run the executable
echo Starting server...
echo It will automatically attempt to load cookies from your browser (Firefox/Chrome/Edge).
echo.
Gemini-Web2API.exe
if %errorlevel% neq 0 (
echo.
echo Server exited with error.
pause
)