Skip to content

Commit a30f8f1

Browse files
committed
openlist: update GO_PKG
1 parent 17c39c7 commit a30f8f1

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

openlist/Makefile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ PKG_LICENSE:=AGPL-3.0
2121
PKG_LICENSE_FILE:=LICENSE
2222
PKG_MAINTAINER:=OpenList Team <[email protected]>
2323

24+
WEB_FILE:=$(PKG_NAME)-frontend-dist-v$(PKG_WEB_VERSION).tar.gz
2425
define 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
2829
endef
@@ -32,14 +33,14 @@ PKG_BUILD_PARALLEL:=1
3233
PKG_USE_MIPS16:=0
3334
PKG_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)'
4344
ifneq ($(CONFIG_ARCH_64BIT),y)
4445
GO_PKG_EXCLUDES:=drivers/lark
4546
endif
@@ -79,7 +80,7 @@ endif
7980

8081
define 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

Comments
 (0)