build: Add release number to pkg version string

This commit is contained in:
remittor
2025-12-16 08:02:18 +03:00
parent e0ecbf5145
commit 3a37ec9172
6 changed files with 12 additions and 5 deletions

View File

@@ -210,6 +210,8 @@ jobs:
PKGDIR=$GITHUB_WORKSPACE/zapret-openwrt
MKFN=$PKGDIR/luci-app-zapret/Makefile
PKGVER=$( grep -s '^PKG_VERSION:=.*' $MKFN | cut -d'=' -f2 )
PKGREL=$( grep -s '^PKG_RELEASE:=.*' $MKFN | cut -d'=' -f2 )
[ "$PKGREL" != "1" ] && PKGVER=$PKGVER-r$PKGREL
echo "PKG_VERSION = $PKGVER"
cp -vr $PKGDIR ./package/zapret-openwrt/