From: Tianling Shen Date: Tue, 22 Jul 2025 13:22:55 +0000 (+0800) Subject: cloudreve: Update to 4.3.0 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5bfd9558f47eda1d85e557a3b193e674124c8dff;p=feed%2Fpackages.git cloudreve: Update to 4.3.0 Major update log: https://github.com/cloudreve/cloudreve/releases/tag/4.0.0 Updated assets build commands. Signed-off-by: Tianling Shen --- diff --git a/net/cloudreve/Makefile b/net/cloudreve/Makefile index eb8f5f9883..2189b7376f 100644 --- a/net/cloudreve/Makefile +++ b/net/cloudreve/Makefile @@ -5,13 +5,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cloudreve -PKG_VERSION:=3.8.3 +PKG_VERSION:=4.3.0 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/cloudreve/Cloudreve.git PKG_SOURCE_VERSION:=$(PKG_VERSION) -PKG_MIRROR_HASH:=3d875b1526ffa59b8201cd3b562dd254e7e807de96ddbf8bf78788f9a00deb7c +PKG_MIRROR_HASH:=53e27f3a112cdbb5315b044ce62708792e18fca3e44bcd4f793d6b0403bf14ce PKG_LICENSE:=GPL-3.0-only PKG_LICENSE_FILES:=LICENSE @@ -21,10 +21,10 @@ PKG_BUILD_DEPENDS:=golang/host node/host node-yarn/host PKG_BUILD_PARALLEL:=1 PKG_BUILD_FLAGS:=no-mips16 -GO_PKG:=github.com/cloudreve/Cloudreve/v3 +GO_PKG:=github.com/cloudreve/Cloudreve/v4 GO_PKG_LDFLAGS_X:= \ - $(GO_PKG)/pkg/conf.BackendVersion=$(PKG_VERSION) \ - $(GO_PKG)/pkg/conf.LastCommit=$(PKG_VERSION) + $(GO_PKG)/application/constants.BackendVersion=$(PKG_VERSION) \ + $(GO_PKG)/application/constants.LastCommit=$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk include ../../lang/golang/golang-package.mk @@ -47,9 +47,10 @@ define Build/Compile ( \ pushd $(PKG_BUILD_DIR)/assets ; \ yarn install ; \ + yarn version --new-version $(PKG_VERSION) --no-git-tag-version ; \ yarn run build ; \ cd .. ; \ - zip -r - assets/build > assets.zip ; \ + zip -r - assets/build > application/statics/assets.zip ; \ popd ; \ $(call GoPackage/Build/Compile) ; \ )