Fix build script
Fix build script go syntax, And remove the emoji stuffs (didn't like it)
This commit is contained in:
parent
ceb12659f9
commit
47263ae585
1 changed files with 6 additions and 5 deletions
11
build.sh
11
build.sh
|
@ -6,20 +6,21 @@ ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
SRC_DIR="$ROOT_DIR/src"
|
SRC_DIR="$ROOT_DIR/src"
|
||||||
FRONTEND_DIR="$SRC_DIR/web"
|
FRONTEND_DIR="$SRC_DIR/web"
|
||||||
BACKEND_DIR="$SRC_DIR"
|
BACKEND_DIR="$SRC_DIR"
|
||||||
|
BACKEND_PKG="git.zervo.org/zervo/alpacca/cmd/alpacca"
|
||||||
OUTPUT_DIR="$ROOT_DIR/out"
|
OUTPUT_DIR="$ROOT_DIR/out"
|
||||||
|
|
||||||
echo "🧹 Cleaning previous build..."
|
echo "Cleaning previous build..."
|
||||||
rm -rf "$OUTPUT_DIR"
|
rm -rf "$OUTPUT_DIR"
|
||||||
mkdir -p "$OUTPUT_DIR"
|
mkdir -p "$OUTPUT_DIR"
|
||||||
|
|
||||||
echo "🌐 Building frontend with Bun..."
|
echo "Building frontend with Bun..."
|
||||||
cd "$FRONTEND_DIR"
|
cd "$FRONTEND_DIR"
|
||||||
bun install
|
bun install
|
||||||
bun run build
|
bun run build
|
||||||
|
|
||||||
echo "📦 Building Go backend..."
|
echo "Building Go backend..."
|
||||||
cd "$BACKEND_DIR"
|
cd "$BACKEND_DIR"
|
||||||
go build -v -o "$OUTPUT_DIR" "$BACKEND_DIR"
|
go build -v -o "$OUTPUT_DIR" $BACKEND_PKG
|
||||||
|
|
||||||
cd "$ROOT_DIR"
|
cd "$ROOT_DIR"
|
||||||
echo "✅ Build completed. Output located in: $OUTPUT_DIR"
|
echo "Build completed. Output located in: $OUTPUT_DIR"
|
Loading…
Add table
Reference in a new issue