mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-07 16:03:11 +00:00
Update version
This commit is contained in:
parent
eb164349eb
commit
648d3f916e
13
Makefile
13
Makefile
@ -20,12 +20,7 @@ endif
|
|||||||
# Configuration for fetching the right binary
|
# Configuration for fetching the right binary
|
||||||
OS ?= "linux"
|
OS ?= "linux"
|
||||||
ARCH ?= "amd64"
|
ARCH ?= "amd64"
|
||||||
VERSION ?= "v0.0.17"
|
VERSION ?= "v0.0.20"
|
||||||
DOWNLOAD_URL ?= "https://github.com/codex-storage/codex-go-bindings/releases/latest/download/codex-${OS}-${ARCH}.zip"
|
|
||||||
|
|
||||||
ifneq ($(VERSION),)
|
|
||||||
DOWNLOAD_URL := "https://github.com/codex-storage/codex-go-bindings/releases/download/$(VERSION)/codex-${OS}-${ARCH}.zip"
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: run
|
all: run
|
||||||
|
|
||||||
@ -35,9 +30,9 @@ fetch:
|
|||||||
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
|
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
|
||||||
rm -f $(LIBS_DIR)/*.zip
|
rm -f $(LIBS_DIR)/*.zip
|
||||||
# Update the path to the shared library on macOS
|
# Update the path to the shared library on macOS
|
||||||
ifeq ($(UNAME_S),Darwin)
|
# ifeq ($(UNAME_S),Darwin)
|
||||||
install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
|
# install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
|
||||||
endif
|
# endif
|
||||||
|
|
||||||
build:
|
build:
|
||||||
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go
|
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go
|
||||||
|
|||||||
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module example
|
|||||||
|
|
||||||
go 1.25.1
|
go 1.25.1
|
||||||
|
|
||||||
require github.com/codex-storage/codex-go-bindings v0.0.19
|
require github.com/codex-storage/codex-go-bindings v0.0.20
|
||||||
|
|||||||
2
go.sum
2
go.sum
@ -18,3 +18,5 @@ github.com/codex-storage/codex-go-bindings v0.0.18 h1:0l9XEoH9O5Akg7KCJreZq5jQxd
|
|||||||
github.com/codex-storage/codex-go-bindings v0.0.18/go.mod h1:8yC11Vr1Mu5sqZyQ33GaSCr0uUIbQnGkm0aWqZj62Kg=
|
github.com/codex-storage/codex-go-bindings v0.0.18/go.mod h1:8yC11Vr1Mu5sqZyQ33GaSCr0uUIbQnGkm0aWqZj62Kg=
|
||||||
github.com/codex-storage/codex-go-bindings v0.0.19 h1:zhEhwzcavvYdfkHpB5BH+PaqYvQ4VonIKhebS1vbKh0=
|
github.com/codex-storage/codex-go-bindings v0.0.19 h1:zhEhwzcavvYdfkHpB5BH+PaqYvQ4VonIKhebS1vbKh0=
|
||||||
github.com/codex-storage/codex-go-bindings v0.0.19/go.mod h1:8yC11Vr1Mu5sqZyQ33GaSCr0uUIbQnGkm0aWqZj62Kg=
|
github.com/codex-storage/codex-go-bindings v0.0.19/go.mod h1:8yC11Vr1Mu5sqZyQ33GaSCr0uUIbQnGkm0aWqZj62Kg=
|
||||||
|
github.com/codex-storage/codex-go-bindings v0.0.20 h1:vK9jU8vafSJkMpOEHdPiQ9S8owSGUaPGVUxb7hKaIck=
|
||||||
|
github.com/codex-storage/codex-go-bindings v0.0.20/go.mod h1:8yC11Vr1Mu5sqZyQ33GaSCr0uUIbQnGkm0aWqZj62Kg=
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user