mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-29 19:08:09 +03:00
build: Add release number to pkg version string
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user