refactor: Extract version from tag and add to translate ipk file

This commit is contained in:
Ivan Kvashonkin
2024-11-11 21:23:25 +03:00
parent 66c7eb0ccb
commit f520270864
2 changed files with 4 additions and 11 deletions

View File

@@ -26,8 +26,11 @@ jobs:
- name: Filter IPK files - name: Filter IPK files
run: | run: |
# Извлекаем версию из тега, убирая префикс 'v'
VERSION=${GITHUB_REF#refs/tags/v}
mkdir -p ./filtered-bin mkdir -p ./filtered-bin
cp ./bin/luci-i18n-podkop-ru_*.ipk ./filtered-bin/ cp ./bin/luci-i18n-podkop-ru_*.ipk "./filtered-bin/luci-i18n-podkop-ru_${VERSION}.ipk"
cp ./bin/podkop_*.ipk ./filtered-bin/ cp ./bin/podkop_*.ipk ./filtered-bin/
cp ./bin/luci-app-podkop_*.ipk ./filtered-bin/ cp ./bin/luci-app-podkop_*.ipk ./filtered-bin/

View File

@@ -17,14 +17,4 @@ LUCI_LANGUAGES:=en ru
include $(TOPDIR)/feeds/luci/luci.mk include $(TOPDIR)/feeds/luci/luci.mk
define Package/luci-i18n-$(PKG_NAME)-$(1)
SECTION:=luci
CATEGORY:=LuCI
TITLE:=$(PKG_NAME) - $(1) translation
HIDDEN:=1
DEFAULT:=LUCI_LANG_$(1)||ALL
VERSION:=$(PKG_VERSION_TRANS)
DEPENDS:=$(PKG_NAME)
endef
# call BuildPackage - OpenWrt buildroot signature # call BuildPackage - OpenWrt buildroot signature