Commit 30d8934f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play netbeans: fix downloading

parent 08a45519
......@@ -9,13 +9,20 @@ URL="https://netbeans.apache.org"
. $(dirname $0)/common.sh
warn_version_is_not_supported
arch=$(epm print info --debian-arch)
if [ "$VERSION" = "*" ] ; then
# It is too complex to support history
#if [ "$VERSION" = "*" ] ; then
PKGURL=$(eget --list --latest https://installers.friendsofapachenetbeans.org/ "apache-netbeans_*_$arch.deb")
else
PKGURL="https://archive.apache.org/dist/netbeans/netbeans-installers/$VERSION/apache-netbeans_${VERSION}-*_all.deb"
fi
#lse
# if [ "$VERSION" -ge 26 ] ; then
# # TODO
# PKGURL="https://github.com/Friends-of-Apache-NetBeans/netbeans-installers/releases/download/v27-build1/apache-netbeans_27-1_arm64.deb"
# else
# PKGURL="https://archive.apache.org/dist/netbeans/netbeans-installers/$VERSION/apache-netbeans_${VERSION}-*_all.deb"
# fi
#i
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