Commit 90f7c36b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play.d: use get_github_url to avoid GitHub API call when version is known

parent b7c08a3e
......@@ -9,6 +9,6 @@ TIPS="Run 'epm play 64gram=<version>' to install the version of the 64Gram Teleg
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest https://github.com/TDesktop-x64/tdesktop/releases "${PKGNAME}_${VERSION}_linux.zip")
PKGURL=$(get_github_url "https://github.com/TDesktop-x64/tdesktop/" "${PKGNAME}_${VERSION}_linux.zip")
epm --install pack $PKGNAME "$PKGURL"
......@@ -8,6 +8,6 @@ URL="https://anilabx.xyz"
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest https://github.com/AniLabX/AniLabXMAX/releases "AniLabXMAX_v${VERSION}_linux64")
PKGURL=$(get_github_url "https://github.com/AniLabX/AniLabXMAX/" "AniLabXMAX_v${VERSION}_linux64")
install_pack_pkgurl
......@@ -8,6 +8,6 @@ URL="https://github.com/pavloniym/anilibrix"
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest https://github.com/pavloniym/anilibrix/releases "AniLibrix-linux-x86_64-$VERSION.AppImage")
PKGURL=$(get_github_url "https://github.com/pavloniym/anilibrix/" "AniLibrix-linux-x86_64-$VERSION.AppImage")
install_pkgurl
\ No newline at end of file
......@@ -8,7 +8,7 @@ URL="https://www.arduino.cc/en/software"
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest https://github.com/arduino/arduino-ide/releases "${PKGNAME}_${VERSION}_Linux_64bit.AppImage")
PKGURL=$(get_github_url "https://github.com/arduino/arduino-ide/" "${PKGNAME}_${VERSION}_Linux_64bit.AppImage")
install_pkgurl
......@@ -11,6 +11,6 @@ URL="https://github.com/lencx/ChatGPT"
is_openssl_enough 3 || fatal "There is no needed OpenSSL 3 in the system."
# https://github.com/lencx/ChatGPT/releases/download/v1.0.0/ChatGPT_1.0.0_linux_x86_64.deb
PKGURL="$(eget --list --latest https://github.com/lencx/ChatGPT/releases/ "ChatGPT_${VERSION}_linux_x86_64.deb")"
PKGURL="$(get_github_url "https://github.com/lencx/ChatGPT/" "ChatGPT_${VERSION}_linux_x86_64.deb")"
install_pkgurl
......@@ -11,6 +11,6 @@ URL="https://github.com/jgraph/drawio-desktop/releases"
arch=amd64
pkgtype=deb
PKGURL=$(eget --list --latest https://github.com/jgraph/drawio-desktop/releases "drawio-$arch-$VERSION.$pkgtype")
PKGURL=$(get_github_url "https://github.com/jgraph/drawio-desktop/" "drawio-$arch-$VERSION.$pkgtype")
install_pkgurl
......@@ -8,6 +8,6 @@ URL="https://github.com/shiftkey/desktop"
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest https://github.com/shiftkey/desktop/releases "GitHubDesktop-linux-x86_64-$VERSION-linux1.AppImage")
PKGURL=$(get_github_url "https://github.com/shiftkey/desktop/" "GitHubDesktop-linux-x86_64-$VERSION-linux1.AppImage")
install_pkgurl
......@@ -12,6 +12,6 @@ arch="$(epm print info --debian-arch)"
pkgtype=deb
PKGURL=$(eget --list --latest https://github.com/Milkshiift/GoofCord/releases "GoofCord-$VERSION-linux-$arch.$pkgtype")
PKGURL=$(get_github_url "https://github.com/Milkshiift/GoofCord/" "GoofCord-$VERSION-linux-$arch.$pkgtype")
install_pkgurl
......@@ -8,7 +8,7 @@ URL="https://murglar.app"
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest https://github.com/badmannersteam/murglar-downloads/releases "Murglar-Desktop-$VERSION-linux-x64.appimage")
PKGURL=$(get_github_url "https://github.com/badmannersteam/murglar-downloads/" "Murglar-Desktop-$VERSION-linux-x64.appimage")
install_pkgurl
......@@ -9,7 +9,7 @@ URL="https://github.com/SoftFever/OrcaSlicer"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] && VERSION="[0-9]*[0-9]"
PKGURL="$(eget --list --latest "https://github.com/SoftFever/OrcaSlicer/releases/" "OrcaSlicer_Linux_V${VERSION}.AppImage")"
PKGURL="$(get_github_url "https://github.com/SoftFever/OrcaSlicer/" "OrcaSlicer_Linux_V${VERSION}.AppImage")"
install_pack_pkgurl
......@@ -30,6 +30,6 @@ arch=x86_64
# https://github.com/prateekmedia/pstube/releases/download/2.6.0/pstube-linux-2.6.0-x86_64.rpm
# https://github.com/prateekmedia/pstube/releases/download/2.6.0/pstube-linux-2.6.0-x86_64.deb
# https://github.com/prateekmedia/pstube/releases/download/3.0.0-beta/pstube-3.0.0-beta-linux-x86_64.rpm
PKGURL=$(eget --list --latest https://github.com/prateekmedia/pstube/releases "$PKGNAME-$VERSION-linux-$arch.$pkgtype")
PKGURL=$(get_github_url "https://github.com/prateekmedia/pstube/" "$PKGNAME-$VERSION-linux-$arch.$pkgtype")
install_pkgurl
......@@ -8,6 +8,6 @@ URL="https://sidequestvr.com/"
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest "https://github.com/SideQuestVR/SideQuest/releases/" "SideQuest-$VERSION.tar.xz")
PKGURL=$(get_github_url "https://github.com/SideQuestVR/SideQuest/" "SideQuest-$VERSION.tar.xz")
install_pack_pkgurl
......@@ -24,6 +24,6 @@ esac
pkgtype=AppImage
PKGURL=$(eget --list --latest https://github.com/SpacingBat3/WebCord/releases "WebCord-$VERSION-$arch.$pkgtype")
PKGURL=$(get_github_url "https://github.com/SpacingBat3/WebCord/" "WebCord-$VERSION-$arch.$pkgtype")
install_pkgurl
......@@ -9,6 +9,6 @@ URL="https://github.com/yar229/WebDavMailRuCloud"
. $(dirname $0)/common.sh
dotnet=6
PKGURL=$(eget --list --latest https://github.com/yar229/WebDavMailRuCloud/releases "WebDAVCloudMailRu-${VERSION}-dotNet$dotnet.zip")
PKGURL=$(get_github_url "https://github.com/yar229/WebDavMailRuCloud/" "WebDAVCloudMailRu-${VERSION}-dotNet$dotnet.zip")
install_pack_pkgurl
......@@ -10,6 +10,6 @@ URL="https://github.com/dedpnd/yaradio-yamusic"
arch=amd64
# https://github.com/dedpnd/yaradio-yamusic/releases/download/v1.0.6/yaradio-yamusic_1.0.6_amd64.deb
PKGURL=$(eget --list --latest https://github.com/dedpnd/yaradio-yamusic/releases "${PKGNAME}_${VERSION}_$arch.deb")
PKGURL=$(get_github_url "https://github.com/dedpnd/yaradio-yamusic/" "${PKGNAME}_${VERSION}_$arch.deb")
install_pkgurl
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