Update version

This commit is contained in:
Arnaud 2025-10-16 05:27:32 +02:00
parent eb164349eb
commit 648d3f916e
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F
3 changed files with 7 additions and 10 deletions

View File

@ -20,12 +20,7 @@ endif
# Configuration for fetching the right binary
OS ?= "linux"
ARCH ?= "amd64"
VERSION ?= "v0.0.17"
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
VERSION ?= "v0.0.20"
all: run
@ -35,9 +30,9 @@ fetch:
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
rm -f $(LIBS_DIR)/*.zip
# Update the path to the shared library on macOS
ifeq ($(UNAME_S),Darwin)
install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
endif
# ifeq ($(UNAME_S),Darwin)
# install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
# endif
build:
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go

2
go.mod
View File

@ -2,4 +2,4 @@ module example
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
View File

@ -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.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.20 h1:vK9jU8vafSJkMpOEHdPiQ9S8owSGUaPGVUxb7hKaIck=
github.com/codex-storage/codex-go-bindings v0.0.20/go.mod h1:8yC11Vr1Mu5sqZyQ33GaSCr0uUIbQnGkm0aWqZj62Kg=