From 597ace43bae878d524e3419dba7f949e34eaf35d Mon Sep 17 00:00:00 2001 From: Jayden Lee <41176085+tkxkd0159@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:14:56 +0900 Subject: [PATCH] build: use curl instead of wget on MacOS (#284) * fix: use curl instead of wget on MacOS * add CHANGELOG --- CHANGELOG.md | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe6b3c64..661fdff5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (build) [\#237](https://github.com/Finschia/finschia/pull/237) rearrange Dockerfile and Makefile commands * (build) [\#241](https://github.com/Finschia/finschia/pull/241) Update golang version to 1.20 * (build) [\#259](https://github.com/Finschia/finschia/pull/259) change default build to be compiled as static binary +* (build) [\#284](https://github.com/Finschia/finschia/pull/284) use curl instead of wget on MacOS ### Docs * (docs) [\#281](https://github.com/Finschia/finschia/pull/281) Update guide for static build on CentOS diff --git a/Makefile b/Makefile index acebeb22..5542267b 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ ifeq ($(LINK_STATICALLY),true) @mkdir -p $(TEMPDIR)/lib ifeq (",$(wildcard $(TEMPDIR)/lib/libwasmvm*.a)") ifeq ($(OS_NAME),darwin) - wget https://github.com/Finschia/wasmvm/releases/download/$(WASMVM_VERSION)/libwasmvmstatic_darwin.a -O $(TEMPDIR)/lib/libwasmvmstatic_darwin.a + curl -L https://github.com/Finschia/wasmvm/releases/download/$(WASMVM_VERSION)/libwasmvmstatic_darwin.a -o $(TEMPDIR)/lib/libwasmvmstatic_darwin.a else ifeq ($(ARCH),amd64) wget https://github.com/Finschia/wasmvm/releases/download/$(WASMVM_VERSION)/libwasmvm_muslc.x86_64.a -O $(TEMPDIR)/lib/libwasmvm_muslc.a