openlist: update to git HEAD

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2025-06-16 17:29:00 +08:00
parent af67011b70
commit 359b814735

View File

@ -7,27 +7,23 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=openlist
PKG_VERSION:=beta
PKG_WEB_VERSION:=rolling
PKG_WEB_VERSION:=4.0.0-rc.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \
https://codeload.github.com/OpenListTeam/OpenList/tar.gz/v$(PKG_VERSION)? \
https://codeload.github.com/OpenListTeam/OpenList/tar.gz/$(PKG_VERSION)?
PKG_HASH:=f598b191566d9e0c66ccbf37b75ec38a5e203dc92fdd76065d6efec84e9ad7e1
PKG_BUILD_DIR:=$(BUILD_DIR)/OpenList-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/OpenListTeam/OpenList.git
PKG_SOURCE_DATE:=2025-06-16
PKG_SOURCE_VERSION:=b1afadd1296c8d48fcece077be75b017bfdd2c8b
PKG_MIRROR_HASH:=02c77d60e9e2df5a86ce65e0dcac558afe27cc62f5166960457caa9147bdaaf0
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILE:=LICENSE
PKG_MAINTAINER:=sbwml <admin@cooluc.com>
define Download/$(PKG_NAME)-web
FILE:=openlist-frontend-dist-v0.0.0-f89d0c8.tar.gz
URL_FILE:=openlist-frontend-dist-v0.0.0-f89d0c8.tar.gz
URL:=https://github.com/OpenListTeam/OpenList-Frontend/releases/download/$(PKG_WEB_VERSION)/
HASH:=92895da17f0bcae74129d5bc60627fc635374828511a341d8773140913545212
FILE:=openlist-frontend-dist-v$(PKG_WEB_VERSION).tar.gz
URL:=https://github.com/OpenListTeam/OpenList-Frontend/releases/download/v$(PKG_WEB_VERSION)/
HASH:=198bb5f4b509278bd822c14f9613f12bde725c0a90e3d0535f31bf428da3d0ce
endef
PKG_BUILD_DEPENDS:=golang/host
@ -42,7 +38,7 @@ GO_PKG_LDFLAGS:= \
-X '$(GO_PKG)/internal/conf.GitAuthor=The OpenList Projects Contributors <noreply@openlist.team>' \
-X '$(GO_PKG)/internal/conf.GitCommit=tarball/$(shell echo $(PKG_HASH) | cut -c 1-7)' \
-X '$(GO_PKG)/internal/conf.Version=v$(PKG_VERSION) (OpenWrt $(ARCH_PACKAGES))' \
-X '$(GO_PKG)/internal/conf.WebVersion=$(PKG_WEB_VERSION)'
-X '$(GO_PKG)/internal/conf.WebVersion=v$(PKG_WEB_VERSION)'
ifneq ($(CONFIG_ARCH_64BIT),y)
GO_PKG_EXCLUDES:=drivers/lark
endif
@ -82,7 +78,7 @@ endif
define Build/Prepare
$(call Build/Prepare/Default)
$(TAR) --strip-components=1 -C $(PKG_BUILD_DIR)/public/dist -xzf $(DL_DIR)/openlist-frontend-dist-v0.0.0-f89d0c8.tar.gz
$(TAR) --strip-components=1 -C $(PKG_BUILD_DIR)/public/dist -xzf $(DL_DIR)/openlist-frontend-dist-v$(PKG_WEB_VERSION).tar.gz
$(SED) 's_https://docs.oplist.org/logo.png_/assets/logo.png_g' $(PKG_BUILD_DIR)/public/dist/index.html
$(SED) 's_https://docs.oplist.org/logo.svg_/assets/logo.svg_g' $(PKG_BUILD_DIR)/public/dist/index.html
endef