Initial sanitized code sync
This commit is contained in:
18
build.sh
Normal file
18
build.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/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)"
|
||||
Reference in New Issue
Block a user