chore: initial commit of HouseholdBudgetBook (backend, frontend, desktop)
This commit is contained in:
commit
4a5db3f1f9
167 files changed
+21732
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
FRONTEND_DIR="$ROOT/frontend"
|
||||
BACKEND_DIR="$ROOT/backend"
|
||||
STATIC_DIR="$BACKEND_DIR/static"
|
||||
OUTPUT="$ROOT/household-book"
|
||||
|
||||
echo "=== 1/3 Building frontend ==="
|
||||
cd "$FRONTEND_DIR"
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm run build
|
||||
|
||||
echo "=== 2/3 Copying static files ==="
|
||||
rm -rf "$STATIC_DIR"
|
||||
mkdir -p "$STATIC_DIR"
|
||||
cp -r "$FRONTEND_DIR/dist/"* "$STATIC_DIR/"
|
||||
|
||||
echo "=== 3/3 Building Go backend ==="
|
||||
cd "$BACKEND_DIR"
|
||||
go build -o "$OUTPUT" .
|
||||
|
||||
echo "=== Done ==="
|
||||
echo "Binary: $OUTPUT"
|
||||
echo "Run: $OUTPUT -mode=prod -static=$STATIC_DIR"
|
||||
Reference in new issue
Block a user