mirror of
https://github.com/ThisIsDara/mhr-cfw-go.git
synced 2026-05-17 21:24:36 +03:00
24 lines
480 B
Bash
24 lines
480 B
Bash
#!/bin/bash
|
|
|
|
echo "========================================"
|
|
echo " MHR-CFW Go - Build Script"
|
|
echo "========================================"
|
|
echo ""
|
|
|
|
if [ ! -f "go.mod" ]; then
|
|
echo "Error: go.mod not found"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Building mhr-cfw-go..."
|
|
go build -ldflags "-s -w" -o mhr-cfw-go ./cmd/mhr-cfw
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo ""
|
|
echo "Build FAILED!"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "Build successful: mhr-cfw-go"
|
|
echo "========================================" |