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 <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2025-07-22 21:22:55 +08:00
committed by Tianling Shen
parent 9689b71032
commit 5bfd9558f4

View 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) ; \
)