From 03bc1d2cc876889a10a0cf772cc91010767aa3cb Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Sun, 28 Feb 2021 12:10:14 +0800 Subject: [PATCH] baidupcs-web: add missing rice dependency Fix: #291 Signed-off-by: Tianling Shen --- package/ctcgfw/baidupcs-web/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/ctcgfw/baidupcs-web/Makefile b/package/ctcgfw/baidupcs-web/Makefile index 5effe1cbc6..0e47da766f 100644 --- a/package/ctcgfw/baidupcs-web/Makefile +++ b/package/ctcgfw/baidupcs-web/Makefile @@ -43,6 +43,15 @@ define Package/$(PKG_NAME)/description BaiduPCS-Web is a web controller for BaiduPCS-Go endef +define Build/Compile +( \ + GOOS=$$$$(go env GOOS) GOARCH=$$$$(go env GOARCH) go get -v github.com/GeertJohan/go.rice/rice/... ; \ + cd $(PKG_BUILD_DIR)/internal/pcsweb ; \ + "$$$$(go env GOPATH)/bin/rice" embed-go ; \ + $(call GoPackage/Build/Compile) ; \ +) +endef + define Package/$(PKG_NAME)/install $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) $(INSTALL_DIR) $(1)/usr/bin