File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11VERSION := $(shell git describe --tags --always)
22CONFIG_URL := https://cfg.rpchub.io/agg/op-default.json
33
4- GOLDFLAGS + = -X github.com/BlockPILabs/aggregator/version.Version=$(VERSION )
5- GOLDFLAGS + = -X github.com/BlockPILabs/aggregator/config.DefaultConfigUrl=$(CONFIG_URL )
4+ GOLDFLAGS : = -X github.com/BlockPILabs/aggregator/version.Version=$(VERSION )
5+ GO_OPLDFLAGS : = -X github.com/BlockPILabs/aggregator/config.DefaultConfigUrl=$(CONFIG_URL )
66GOFLAGS = -ldflags "$(GOLDFLAGS ) "
77
8+
89all : build
910
1011.PHONY : build
1112build :
12- go build $(GOFLAGS ) -o ./build/ ./cmd/aggregator
13+ go build -ldflags " $( GOLDFLAGS) " -o ./build/ ./cmd/aggregator
14+ build-op :
15+ go build -ldflags " $( GOLDFLAGS) $( GO_OPLDFLAGS) " -o ./build/ ./cmd/aggregator
16+ # build-windows:
17+ # CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build $(GOFLAGS) -o ./build/ ./cmd/aggregator
18+ # build-mac:
19+ # CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build $(GOFLAGS) -o ./build/ ./cmd/aggregator
1320clean :
1421 rm -rf build/*
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import (
1818var (
1919 logger = log .Module ("config" )
2020 locker = sync.Mutex {}
21- DefaultConfigUrl = ""
21+ DefaultConfigUrl = "https://cfg.rpchub.io/agg/default.json "
2222 defaultPhishingDb = "https://cfg.rpchub.io/agg/scam-addresses.json"
2323
2424 _Config = & Config {
You can’t perform that action at this time.
0 commit comments