mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 11:36:50 +03:00
refactor: Extract version from tag and add to translate ipk file
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -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/
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user