-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from tonutils/test
Print version + domain setup improvements
- Loading branch information
Showing
5 changed files
with
34 additions
and
26 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.PHONY: all build | ||
|
||
ver := $(shell git log -1 --pretty=format:"%h-%as") | ||
|
||
build: | ||
go build -ldflags "-w -s -X main.GitCommit=$(ver)" -o build/tonutils-reverse-proxy cmd/proxy/main.go | ||
|
||
all: | ||
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X main.GitCommit=$(ver)" -o build/tonutils-reverse-proxy-linux-amd64 cmd/proxy/main.go | ||
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X main.GitCommit=$(ver)" -o build/tonutils-reverse-proxy-linux-arm64 cmd/proxy/main.go | ||
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X main.GitCommit=$(ver)" -o build/tonutils-reverse-proxy-windows-x64.exe cmd/proxy/main.go | ||
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X main.GitCommit=$(ver)" -o build/tonutils-reverse-proxy-mac-amd64 cmd/proxy/main.go | ||
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w -X main.GitCommit=$(ver)" -o build/tonutils-reverse-proxy-mac-arm64 cmd/proxy/main.go |
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