embed version into local install and local run as well

This commit is contained in:
Vladislav Yarmak
2021-03-13 04:34:24 +02:00
parent 4ddd1284fb
commit 4f72e317fc
2 changed files with 6 additions and 3 deletions

View File

@@ -60,9 +60,12 @@ fmt:
go fmt ./...
run:
go run .
go run $(LDFLAGS) .
.PHONY: clean all native fmt \
install:
go install $(BUILDOPTS) $(LDFLAGS) .
.PHONY: clean all native fmt install \
bin-native \
bin-linux-amd64 \
bin-linux-386 \

View File

@@ -44,7 +44,7 @@ Pre-built binaries available on [releases](https://github.com/Snawoot/hola-proxy
Alternatively, you may install hola-proxy from source. Run within source directory
```
go install
make install
```
#### Docker