Files
gpt-plus-gpt/build.sh
2026-03-15 20:48:19 +08:00

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)"