Skip to content

Commit

Permalink
更新 PKG_Version_Get.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
smdx committed Nov 23, 2024
1 parent d4e67f0 commit aaa1ecf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/PKG_Version_Get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
# Package Version Output to Env
adguardhome_version=$(grep -oP 'PKG_VERSION:=\K[^ ]+' feeds/kenzo/adguardhome/Makefile)
mosdns_version=$(grep -oP 'PKG_VERSION:=\K[^ ]+' package/mosdns/mosdns/Makefile)
smartdns_version=$(grep -oP 'PKG_VERSION:=\K[^ ]+' feeds/kenzo/luci-app-smartdns/Makefile)
mosdns_release=$(grep -oP 'PKG_RELEASE:=\K[^ ]+' package/mosdns/mosdns/Makefile)
smartdns_version=$(grep -oP 'PKG_VERSION:=\K[^ ]+' feeds/kenzo/smartdns/Makefile)
smartdns_release=$(grep -oP 'PKG_RELEASE:=\K[^ ]+' feeds/kenzo/smartdns/Makefile)
passwall_version=$(grep -oP 'PKG_VERSION:=\K[^ ]+' feeds/small/luci-app-passwall/Makefile)
passwall_release=$(grep -oP 'PKG_RELEASE:=\K[^ ]+' feeds/small/luci-app-passwall/Makefile)
passwall2_version=$(grep -oP 'PKG_VERSION:=\K[^ ]+' feeds/small/luci-app-passwall2/Makefile)
passwall2_release=$(grep -oP 'PKG_RELEASE:=\K[^ ]+' feeds/small/luci-app-passwall2/Makefile)
openclash_version=$(grep -oP 'PKG_VERSION:=\K[^ ]+' feeds/small/luci-app-openclash/Makefile)
store_version=$(grep -oP 'PKG_VERSION:=\K[^ ]+' feeds/kenzo/luci-app-store/Makefile)
echo "adguardhome=$adguardhome_version" >> $GITHUB_ENV
echo "mosdns=$mosdns_version" >> $GITHUB_ENV
echo "smartdns=$smartdns_version" >> $GITHUB_ENV
echo "mosdns=${mosdns_version}-${mosdns_release}" >> $GITHUB_ENV
echo "smartdns=Release ${smartdns_version}-${smartdns_release}" >> $GITHUB_ENV
echo "passwall_version=${passwall_version}-${passwall_release}" >> $GITHUB_ENV
echo "passwall2_version=${passwall2_version}-${passwall_release}" >> $GITHUB_ENV
echo "openclash=$openclash_version" >> $GITHUB_ENV
Expand Down

0 comments on commit aaa1ecf

Please sign in to comment.