-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·44 lines (41 loc) · 949 Bytes
/
build.sh
File metadata and controls
executable file
·44 lines (41 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
set -e
# Help text
function usage() {
echo "Usage: ./build.sh [command]"
echo ""
echo "Commands:"
echo " build Build the binary for the current platform"
echo " release Cross-compile for all platforms and zip outputs"
echo " clean Remove build artifacts"
echo " version Show version metadata"
echo " help Show this help message"
echo ""
}
# Run commands from the root Makefile
case "$1" in
build)
echo "📦 Building presto..."
make build
;;
release)
echo "🚀 Building release artifacts for all platforms..."
make release
;;
clean)
echo "🧹 Cleaning..."
make clean
;;
version)
echo "🔖 Version Info:"
make version
;;
help|"")
usage
;;
*)
echo "❌ Unknown command: $1"
usage
exit 1
;;
esac