-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init: updated swagger hashes and added Makefile for different distrib…
…utions
- Loading branch information
1 parent
ab3c9d8
commit 4e5ba96
Showing
7 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Makefile for building go-verify-swagger for multiple platforms | ||
|
||
# Project name | ||
BINARY_NAME=go-verify-swagger | ||
|
||
# Source file | ||
SRC_FILE=main.go | ||
|
||
# Output directories | ||
OUTPUT_DIR=dist | ||
|
||
# Platforms and architectures | ||
PLATFORMS=\ | ||
darwin amd64 \ | ||
darwin arm64 \ | ||
linux amd64 \ | ||
linux arm64 \ | ||
windows amd64 \ | ||
windows arm64 | ||
|
||
# Build command | ||
build: | ||
mkdir -p $(OUTPUT_DIR) | ||
$(foreach platform_arch,$(PLATFORMS), \ | ||
$(eval GOOS=$(word 1,$(subst _, ,$(platform_arch)))) \ | ||
$(eval GOARCH=$(word 2,$(subst _, ,$(platform_arch)))) \ | ||
echo "Building for $(GOOS)/$(GOARCH)..." \ | ||
&& GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(OUTPUT_DIR)/$(BINARY_NAME)-$(GOOS)-$(GOARCH)$(if $(filter windows,$(GOOS)),.exe) $(SRC_FILE) \ | ||
;) | ||
|
||
# Clean build files | ||
clean: | ||
rm -rf $(OUTPUT_DIR) | ||
|
||
# Default target | ||
all: clean build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
SWAGGER_VERIFIER: 2024/10/22 15:40:59 main.go:91: No input file provided. Use -i to specify a file containing potential Swagger URLs. | ||
SWAGGER_VERIFIER: 2024/10/23 15:21:40 main.go:83: Verbose mode activated |