0
0
mirror of https://github.com/openwrt/packages.git synced 2025-11-04 23:19:38 +00:00
Files
packages/net/cloudreve/Makefile
Tianling Shen 480d149323 cloudreve: Update to 4.9.2
> Breaking change:
> If you are using AlibabaCloud OSS storage policy, please go to the
> admin dashboard after upgrading, edit each OSS storage policy,
> fill in the correct Region in Basic info and save it, otherwise
> the storage policy will not continue to work.

Changelog:
- https://github.com/cloudreve/cloudreve/releases/tag/4.9.0
- https://github.com/cloudreve/cloudreve/releases/tag/4.9.1
- https://github.com/cloudreve/cloudreve/releases/tag/4.9.2

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-23 02:50:08 +08:00

68 lines
1.8 KiB
Makefile

# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=cloudreve
PKG_VERSION:=4.9.2
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/cloudreve/Cloudreve.git
PKG_SOURCE_VERSION:=$(PKG_VERSION)
PKG_MIRROR_HASH:=d88edc8af20a5cce662689a297123d1b4d504b0ca0499942068bdbb3c9ec8ea7
PKG_LICENSE:=GPL-3.0-only
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
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/v4
GO_PKG_LDFLAGS_X:= \
$(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
define Package/cloudreve
SECTION:=net
CATEGORY:=Network
SUBMENU:=Cloud Manager
TITLE:=A project helps you build your own cloud in minutes
URL:=https://cloudreve.org
DEPENDS:=@(aarch64||arm||i386||i686||riscv64||x86_64) +ca-bundle
endef
define Package/cloudreve/description
Self-deployed file management and sharing system, supports multiple
storage providers.
endef
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 > application/statics/assets.zip ; \
popd ; \
$(call GoPackage/Build/Compile) ; \
)
endef
define Package/cloudreve/install
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/Cloudreve $(1)/usr/bin/cloudreve
endef
$(eval $(call GoBinPackage,cloudreve))
$(eval $(call BuildPackage,cloudreve))