Commit c9fe2c8b authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play: hiddify: improved speed of version query (thnx @pechenovv)

parent f7ec8fdc
......@@ -12,7 +12,7 @@ if ! is_glibc_enough 2.32 ; then
fi
if [ "$VERSION" = "*" ] ; then
VERSION="$(eget --get-real-url -O- https://github.com/hiddify/hiddify-next/releases/latest | awk -F '/' '{print $(NF)}' | awk -F 'v' '{print $2}')"
VERSION="$(get_github_tag https://github.com/hiddify/hiddify-next/)"
fi
PKGURL="https://github.com/hiddify/hiddify-next/releases/download/v$VERSION/Hiddify-Debian-x64.deb"
......
......@@ -6,6 +6,9 @@ SPEC="$2"
. $(dirname $0)/common.sh
#remove garbage from version in spec
sed -i -e 's/^\(Version: [^+]*\)+.*/\1/' $SPEC
move_to_opt
add_bin_link_command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment