@@ -21,8 +21,9 @@ PKG_LICENSE:=AGPL-3.0
2121PKG_LICENSE_FILE: =LICENSE
2222PKG_MAINTAINER: =OpenList Team <
[email protected] >
2323
24+ WEB_FILE: =$(PKG_NAME ) -frontend-dist-v$(PKG_WEB_VERSION ) .tar.gz
2425define Download/openlist-frontend
25- FILE:=openlist-frontend-dist-v $( PKG_WEB_VERSION ) .tar.gz
26+ FILE:=$( WEB_FILE )
2627 URL:=https://github.com/OpenListTeam/OpenList-Frontend/releases/download/v$(PKG_WEB_VERSION ) /
2728 HASH:=b0815850ba78fa3809a893e6fa61756a7998a19766c70bc15e3a83f26a8aa3e3
2829endef
@@ -32,14 +33,14 @@ PKG_BUILD_PARALLEL:=1
3233PKG_USE_MIPS16: =0
3334PKG_BUILD_FLAGS: =no-mips16
3435
35- GO_PKG: =github.com/OpenListTeam/OpenList
36- GO_PKG_LDFLAGS : = \
37- -X '$(GO_PKG ) /internal/conf.BuiltAt=$(shell date '+% Y-% m-% d % H:% M:% S % z') ' \
38- -X '$(GO_PKG ) /internal/conf.GoVersion=$(shell $(STAGING_DIR_HOSTPKG ) /bin/go version | sed 's/go version //') ' \
39- -X '
$(GO_PKG ) /internal/conf.GitAuthor=The OpenList Projects Contributors <
[email protected] >'
\ 40- -X '$(GO_PKG ) /internal/conf.GitCommit=tarball/$(shell echo $(PKG_HASH ) | cut -c 1-7) ' \
41- -X '$(GO_PKG ) /internal/conf.Version=v$(PKG_VERSION ) (OpenWrt $(ARCH_PACKAGES ) )' \
42- -X '$(GO_PKG ) /internal/conf.WebVersion=v$(PKG_WEB_VERSION ) '
36+ GO_PKG: =github.com/OpenListTeam/OpenList/v4
37+ GO_PKG_LDFLAGS_X : = \
38+ '$(GO_PKG ) /internal/conf.BuiltAt=$(shell date '+% Y-% m-% d % H:% M:% S % z') ' \
39+ '$(GO_PKG ) /internal/conf.GoVersion=$(shell $(STAGING_DIR_HOSTPKG ) /bin/go version | sed 's/go version //') ' \
40+ '
$(GO_PKG ) /internal/conf.GitAuthor=The OpenList Projects Contributors <
[email protected] >'
\ 41+ '$(GO_PKG ) /internal/conf.GitCommit=tarball/$(shell echo $(PKG_HASH ) | cut -c 1-7) ' \
42+ '$(GO_PKG ) /internal/conf.Version=v$(PKG_VERSION ) (OpenWrt $(ARCH_PACKAGES ) )' \
43+ '$(GO_PKG ) /internal/conf.WebVersion=v$(PKG_WEB_VERSION ) '
4344ifneq ($(CONFIG_ARCH_64BIT ) ,y)
4445 GO_PKG_EXCLUDES: =drivers/lark
4546endif
7980
8081define Build/Prepare
8182 $(call Build/Prepare/Default)
82- $(TAR ) --strip-components=1 -C $(PKG_BUILD_DIR ) /public/dist -xzf $(DL_DIR ) /openlist-frontend-dist-v $( PKG_WEB_VERSION ) .tar.gz
83+ $(TAR ) --strip-components=1 -C $(PKG_BUILD_DIR ) /public/dist -xzf $(DL_DIR ) /$( WEB_FILE )
8384 $(SED ) 's_https://docs.oplist.org/logo.png_/assets/logo.png_g' $(PKG_BUILD_DIR ) /public/dist/index.html
8485 $(SED ) 's_https://docs.oplist.org/logo.svg_/assets/logo.svg_g' $(PKG_BUILD_DIR ) /public/dist/index.html
8586 $(SED ) 's_https://docs.oplist.org/logo.png_/assets/logo.png_g' $(PKG_BUILD_DIR ) /public/dist/static/manifest.json
0 commit comments