cloudreve: Update to 4.3.0
authorTianling Shen <cnsztl@immortalwrt.org>
Tue, 22 Jul 2025 13:22:55 +0000 (21:22 +0800)
committerTianling Shen <cnsztl@gmail.com>
Tue, 22 Jul 2025 17:52:25 +0000 (01:52 +0800)
Major update log: https://github.com/cloudreve/cloudreve/releases/tag/4.0.0

Updated assets build commands.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
net/cloudreve/Makefile

index eb8f5f9883aae4120b84c66d99a500b1f1ec0a5d..2189b7376fad9599e570383f43987e167ab1f4d2 100644 (file)
@@ -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) ; \
        )