Add script to package binaries
This commit is contained in:
6
Makefile
6
Makefile
@@ -40,11 +40,15 @@ build: assets
|
||||
@echo "You can now execute ./pgweb"
|
||||
|
||||
release: assets
|
||||
gox \
|
||||
@echo "Building binaries..."
|
||||
@gox \
|
||||
-osarch="$(TARGETS)" \
|
||||
-ldflags "-X github.com/sosedoff/pgweb/pkg/command.GitCommit $(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime $(BUILD_TIME)" \
|
||||
-output="./bin/pgweb_{{.OS}}_{{.Arch}}"
|
||||
|
||||
@echo "\nPackaging binaries...\n"
|
||||
@./script/package.sh
|
||||
|
||||
bootstrap:
|
||||
gox -build-toolchain
|
||||
|
||||
|
||||
Reference in New Issue
Block a user