mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-06 23:43:06 +00:00
Debug windows
This commit is contained in:
parent
d236bd6afc
commit
c98e2746bc
7
Makefile
7
Makefile
@ -30,15 +30,16 @@ all: run
|
||||
fetch:
|
||||
@echo "Fetching libcodex from GitHub Actions: ${LATEST_URL}"
|
||||
@curl -fSL --create-dirs -o $(LIBS_DIR)/codex-${OS}-${ARCH}.zip ${LATEST_URL}
|
||||
@unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
|
||||
@rm -f $(LIBS_DIR)/*.zip
|
||||
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
|
||||
rm -f $(LIBS_DIR)/*.zip
|
||||
|
||||
build:
|
||||
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go
|
||||
|
||||
run:
|
||||
ifeq ($(OS),Windows_NT)
|
||||
copy libs\libcodex.dll .
|
||||
dir /b libs
|
||||
copy .\libs\libcodex.dll .
|
||||
.\$(BIN_NAME)
|
||||
else
|
||||
./$(BIN_NAME)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user