19 lines
363 B
Bash
19 lines
363 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "=== Building GPT-Plus ==="
|
|
|
|
# 1. Build frontend
|
|
echo ">> Building frontend..."
|
|
cd web/frontend
|
|
npm install
|
|
npm run build
|
|
cd ../..
|
|
|
|
# 2. Build backend (embeds frontend dist)
|
|
echo ">> Building backend..."
|
|
CGO_ENABLED=1 go build -o gptplus ./cmd/gptplus/
|
|
|
|
echo "=== Build complete: ./gptplus ==="
|
|
echo "Run: ./gptplus (ensure .env exists)"
|