21 lines
368 B
Bash
Executable File
21 lines
368 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# build.sh - Build the MEV bot
|
|
|
|
echo "Building MEV bot..."
|
|
|
|
# Create bin directory if it doesn't exist
|
|
mkdir -p bin
|
|
|
|
# Build the application
|
|
|
|
goimports -w .
|
|
go mod tidy && go mod vendor
|
|
go build -o bin/mev-bot cmd/mev-bot/main.go
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "Build successful! Binary created at bin/mev-bot"
|
|
else
|
|
echo "Build failed!"
|
|
exit 1
|
|
fi |