mirror of
https://github.com/dpup/meshstream.git
synced 2026-08-08 01:32:52 +02:00
Update build process and add proper .gitignore and .env.example
This commit is contained in:
@@ -9,11 +9,12 @@ PROTOC_GEN_GO := $(TOOLS_DIR)/protoc-gen-go
|
||||
|
||||
# Build the application
|
||||
build:
|
||||
go build -o meshstream
|
||||
mkdir -p dist
|
||||
go build -o dist/meshstream
|
||||
|
||||
# Run the application
|
||||
run: build
|
||||
./meshstream
|
||||
./dist/meshstream
|
||||
|
||||
# Generate Go code from Protocol Buffers
|
||||
gen-proto: tools
|
||||
@@ -26,7 +27,7 @@ gen-proto: tools
|
||||
|
||||
# Clean generated files
|
||||
clean:
|
||||
rm -f meshstream
|
||||
rm -rf dist
|
||||
rm -rf $(BIN_DIR)
|
||||
find . -name "*.pb.go" -type f -delete
|
||||
|
||||
|
||||
Reference in New Issue
Block a user