diff --git a/build.sh b/build.sh index 17248bf..1505a03 100755 --- a/build.sh +++ b/build.sh @@ -6,20 +6,21 @@ ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SRC_DIR="$ROOT_DIR/src" FRONTEND_DIR="$SRC_DIR/web" BACKEND_DIR="$SRC_DIR" +BACKEND_PKG="git.zervo.org/zervo/alpacca/cmd/alpacca" OUTPUT_DIR="$ROOT_DIR/out" -echo "๐Ÿงน Cleaning previous build..." +echo "Cleaning previous build..." rm -rf "$OUTPUT_DIR" mkdir -p "$OUTPUT_DIR" -echo "๐ŸŒ Building frontend with Bun..." +echo "Building frontend with Bun..." cd "$FRONTEND_DIR" bun install bun run build -echo "๐Ÿ“ฆ Building Go backend..." +echo "Building Go backend..." cd "$BACKEND_DIR" -go build -v -o "$OUTPUT_DIR" "$BACKEND_DIR" +go build -v -o "$OUTPUT_DIR" $BACKEND_PKG cd "$ROOT_DIR" -echo "โœ… Build completed. Output located in: $OUTPUT_DIR" \ No newline at end of file +echo "Build completed. Output located in: $OUTPUT_DIR" \ No newline at end of file