Commit 0ca97ac7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: rearrange PKGURL using, replace epm tool eget with just eget

parent e25202ae
......@@ -9,7 +9,6 @@ TIPS="Run 'epm play 64gram=<version>' to install the version of the 64Gram Teleg
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://github.com/TDesktop-x64/tdesktop/releases "${PKGNAME}_${VERSION}_linux.zip") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/TDesktop-x64/tdesktop/releases ${PKGNAME}_${VERSION}_linux.zip) || fatal "Can't get package URL"
epm --install pack $PKGNAME "$PKGURL"
......@@ -15,18 +15,17 @@ if ! is_command wine ; then
fi
warn_version_is_not_supported
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
case $pkgtype in
deb)
epm install "https://www.aimp.ru/?do=download.file&id=26"
;;
rpm)
epm $repack install "https://www.aimp.ru/?do=download.file&id=32"
PKGURL="https://www.aimp.ru/?do=download.file&id=26"
;;
*)
fatal "Unsupported $pkgtype"
PKGURL="https://www.aimp.ru/?do=download.file&id=32"
;;
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm $repack install "$PKGURL"
......@@ -41,7 +41,7 @@ PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch '' '_')"
# lib.req: WARNING: /usr/bin/anydesk: library libpangox-1.0.so.0 not found
#[ "$(epm print info -s)" = "alt" ] && PKGMASK="os-specific/rhel8/$(epm print constructname $PKGNAME "*" $arch)"
PKGURL="$(epm tool eget --list --latest https://download.anydesk.com/linux/ ./$PKGMASK)" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://download.anydesk.com/linux/ ./$PKGMASK)" || fatal "Can't get package URL"
epm $repack install "$PKGURL" || exit
......
......@@ -20,7 +20,7 @@ URL="https://xn--80akicokc0aablc.xn--p1ai/%D1%81%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D
# parse vendor site
tmpfile=$(mktemp)
trap "rm -f $tmpfile" EXIT
epm tool eget -q -O- "$URL" | grep -A200 "Ассистент для LINUX" >$tmpfile
eget -q -O- "$URL" | grep -A200 "Ассистент для LINUX" >$tmpfile
url_by_text()
{
......
......@@ -22,7 +22,7 @@ if [ "$VERSION" != "*" ] ; then
[ "$PKGNAME" = "atom-beta" ] && VERSION="$VERSION-beta0"
PKGURL="https://github.com/atom/atom/releases/download/v$VERSION/atom-$arch.$pkgtype"
else
PKGURL=$(epm tool eget --list https://github.com/atom/atom/releases/ "atom-$arch.$pkgtype" | grep $notbeta -- "-beta" | head -n1) || fatal "Can't get package URL"
PKGURL=$(eget --list https://github.com/atom/atom/releases/ "atom-$arch.$pkgtype" | grep $notbeta -- "-beta" | head -n1) || fatal "Can't get package URL"
fi
epm install "$PKGURL"
......@@ -13,12 +13,12 @@ case $pkgtype in
rpm)
mask="balena-etcher-${VERSION}.x86_64.rpm"
;;
deb)
*)
mask="balena-etcher_${VERSION}_amd64.deb"
;;
esac
PKGURL=$(epm tool eget --list --latest https://github.com/balena-io/etcher/releases $mask) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/balena-io/etcher/releases $mask) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -15,7 +15,7 @@ case $pkgtype in
rpm)
PKGURL="https://dl.bitrix24.com/b24/bitrix24_desktop.rpm"
;;
deb)
*)
PKGURL="https://dl.bitrix24.com/b24/bitrix24_desktop.deb"
;;
esac
......
......@@ -21,7 +21,7 @@ esac
#https://github.com/bitwarden/clients/releases/download/desktop-v2023.4.0/Bitwarden-2023.4.0-amd64.deb
#https://github.com/bitwarden/clients/releases/download/desktop-v2023.4.0/Bitwarden-2023.4.0-x86_64.rpm
PKGURL=$(epm tool eget --list --latest https://github.com/bitwarden/clients/releases $(epm print constructname Bitwarden "$VERSION*" $arch $pkgtype "-" "-")) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/bitwarden/clients/releases $(epm print constructname Bitwarden "$VERSION*" $arch $pkgtype "-" "-")) || fatal "Can't get package URL"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
......
......@@ -11,7 +11,7 @@ URL="https://www.bitwig.com"
if [ "$VERSION" = "*" ] ; then
PKGURL="https://www.bitwig.com/dl/?id=533&os=installer_linux"
else
PKGURL="https://downloads.bitwig.com/5.0.4/bitwig-studio-5.0.4.deb"
PKGURL="https://downloads.bitwig.com/$VERSION/bitwig-studio-$VERSION.deb"
fi
epm install $PKGURL
......@@ -24,14 +24,14 @@ repack='--repack'
# hack to fix short name issue
[ "$VERSION" = "*" ] && VERSION="[[:digit:]]*"
PKGURL=$(epm tool eget --list --latest https://github.com/brave/brave-browser/releases "$(epm print constructname $PKGNAME "$VERSION")")
PKGURL=$(eget --list --latest https://github.com/brave/brave-browser/releases $(epm print constructname $PKGNAME "$VERSION"))
if [ -z "$PKGURL" ] ; then
# force use beta if can't get stable version
if [ "$PKGNAME" = "$BASEPKGNAME" ] ; then
TOREMOVEPKG=$PKGNAME
PKGNAME=$BASEPKGNAME-beta
PKGURL=$(epm tool eget --list --latest https://github.com/brave/brave-browser/releases "$(epm print constructname $PKGNAME "$VERSION")")
PKGURL=$(eget --list --latest https://github.com/brave/brave-browser/releases "$(epm print constructname $PKGNAME "$VERSION")")
[ -n "$PKGURL" ] || fatal "Can't get package URL"
echo "Force switching from $TOREMOVEPKG to $PKGNAME ... "
......
......@@ -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=$(epm tool eget --list --latest https://github.com/lencx/ChatGPT/releases/ "ChatGPT_${VERSION}_linux_x86_64.deb") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/lencx/ChatGPT/releases/ "ChatGPT_${VERSION}_linux_x86_64.deb") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -8,16 +8,16 @@ URL="https://www.google.com/chrome/"
. $(dirname $0)/common.sh
#arch=$(epm print info --distro-arch)
#pkgtype=$(epm print info -p)
_channel="stable"
repack=''
arch=amd64
pkgtype=deb
# we have workaround for their postinstall script, so always repack rpm package
[ "$(epm print info -p)" = "deb" ] || repack='--repack'
PKG="https://dl.google.com/linux/direct/google-chrome-stable_current_$arch.$pkgtype"
if [ "$VERSION" = "*" ] ; then
PKGURL="https://dl.google.com/linux/direct/google-chrome-stable_current_$arch.$pkgtype"
else
PKGURL="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-${_channel}/google-chrome-${_channel}_${VERSION}-1_amd64.deb"
fi
epm install $repack "$PKG"
epm install $repack "$PKGURL"
......@@ -14,6 +14,6 @@ DESCRIPTION="Chromium with GOST support from the official site"
arch=amd64
pkgtype=deb
PKGURL=$(epm tool eget --list --latest https://github.com/deemru/chromium-gost/releases "chromium-gost-$VERSION-linux-$arch.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/deemru/chromium-gost/releases "chromium-gost-$VERSION-linux-$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -11,7 +11,7 @@ URL="https://clipgrab.org/"
if [ "$VERSION" != "*" ] ; then
PKGURL="https://download.clipgrab.org/ClipGrab-$VERSION-x86_64.AppImage"
else
PKGURL="$(eget --list --latest https://clipgrab.org/ "ClipGrab-*-x86_64.AppImage")"
PKGURL="$(eget --list --latest https://clipgrab.org/ "ClipGrab-*-x86_64.AppImage")" || fatal "Can't get package URL"
fi
epm install $PKGURL
......@@ -30,7 +30,7 @@ case "$arch-$pkgtype" in
esac
PKGURL=$(epm tool eget --list --latest https://github.com/VSCodium/vscodium/releases $(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype)) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/VSCodium/vscodium/releases $(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype)) || fatal "Can't get package URL"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
......
......@@ -9,7 +9,8 @@ URL="https://www.commfort.com/ru/article-commfort-linux.shtml"
. $(dirname $0)/common.sh
warn_version_is_not_supported
VERSION="$(epm tool eget -O- https://www.commfort.com/ru/download.shtml | grep "Версия .* от .* г." | head -n2 | tail -n1 | sed -e 's|.*Версия ||' -e 's| от .*||')"
VERSION="$(eget -O- https://www.commfort.com/ru/download.shtml | grep "Версия .* от .* г." | head -n2 | tail -n1 | sed -e 's|.*Версия ||' -e 's| от .*||')"
[ -n "$VERSION" ] || fatal "Can't get version."
# TODO: check: https://www.commfort.com/download/commfort_client.msi
......
......@@ -17,7 +17,7 @@ get_jetbrains_url()
;;
esac
epm tool eget -O- "https://data.services.jetbrains.com/products/releases?code=$CODE&latest=true&type=release" | epm --inscript tool json -b | \
eget -O- "https://data.services.jetbrains.com/products/releases?code=$CODE&latest=true&type=release" | epm --inscript tool json -b | \
grep '"'$CODE'",0,"downloads","'$OS'","link"' | sed -e 's|.*[[:space:]]||' | sed -e 's|"||g'
}
......
......@@ -22,5 +22,5 @@ esac
#pkgtype="$(epm print info -p)"
PKGURL="$(eget --list --latest https://cuda-z.sourceforge.net/ "$file" )"
PKGURL="$(eget --list --latest https://cuda-z.sourceforge.net/ "$file" )" || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
......@@ -7,11 +7,11 @@ DESCRIPTION="Discord from the official site"
. $(dirname $0)/common.sh
if [ "$VERSION" != "*" ] ; then
PKGURL="https://dl.discordapp.net/apps/linux/$VERSION/discord-$VERSION.deb"
else
if [ "$VERSION" = "*" ] ; then
# workaround against curl can't get filename: https://github.com/curl/curl/issues/8461
PKGURL="$(eget --get-real-url "https://discord.com/api/download?platform=linux&format=deb")"
PKGURL="$(eget --get-real-url "https://discord.com/api/download?platform=linux&format=deb")" || fatal "Can't get package URL"
else
PKGURL="https://dl.discordapp.net/apps/linux/$VERSION/discord-$VERSION.deb"
fi
epm install "$PKGURL"
......@@ -12,14 +12,14 @@ case $pkgtype in
rpm)
mask="DJV2-${VERSION}.x86_64.rpm"
;;
deb)
*)
mask="DJV2_${VERSION}_amd64.deb"
;;
esac
arch=amd64
PKGURL=$(epm tool eget --list --latest https://github.com/darbyjohnston/DJV/releases $mask) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/darbyjohnston/DJV/releases $mask) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -15,7 +15,7 @@ case $pkgtype in
rpm)
PKGURL="https://desktop.docker.com/linux/main/amd64/139021/docker-desktop-4.28.0-x86_64.rpm"
;;
deb)
*)
PKGURL="https://desktop.docker.com/linux/main/amd64/139021/docker-desktop-4.28.0-amd64.deb"
;;
esac
......
......@@ -10,6 +10,6 @@ DESCRIPTION="diagrams.net desktop"
arch=amd64
pkgtype=deb
PKGURL=$(epm tool eget --list --latest https://github.com/jgraph/drawio-desktop/releases "drawio-$arch-$VERSION.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/jgraph/drawio-desktop/releases "drawio-$arch-$VERSION.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -15,6 +15,6 @@ file="DuckStation-x64.AppImage"
# TODO: preview, previous-latest
SELECTOR="preview"
PKGURL=$(epm tool eget --list https://github.com/stenzek/duckstation/releases $file | grep "/$SELECTOR/") || fatal "Can't get package URL"
PKGURL=$(eget --list https://github.com/stenzek/duckstation/releases $file | grep "/$SELECTOR/") || fatal "Can't get package URL"
epm pack --install "$PKGNAME" "$PKGURL"
......@@ -15,7 +15,7 @@ pkgtype="$(epm print info -p)"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
#PKG=$(epm tool eget --list --latest https://www.duplicati.com/download "duplicati-*$pkgtype") || fatal "Can't get package URL"
PKG=$(epm tool eget -O /dev/stdout https://updates.duplicati.com/beta/latest-installers.js | grep -i -o -E '"url": "(.+)"' | cut -d'"' -f4 | grep "duplicati.*$pkgtype")
#PKG=$(eget --list --latest https://www.duplicati.com/download "duplicati-*$pkgtype") || fatal "Can't get package URL"
PKGURL="$(eget -O /dev/stdout https://updates.duplicati.com/beta/latest-installers.js | grep -i -o -E '"url": "(.+)"' | cut -d'"' -f4 | grep "duplicati.*$pkgtype")"
epm install $repack "$PKG"
epm install $repack "$PKGURL"
......@@ -10,21 +10,20 @@ DESCRIPTION="EAGLE (EDA software) from the official site"
warn_version_is_not_supported
VERSION=9.6.2
IPFSHASH=Qmd38jJnTnUMUeJuKSDBGesqXF3SxEahUVZc6NUPyMKgj1
PKGURL="https://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_${VERSION}_English_Linux_64bit.tar.gz"
IPFSURL="ipfs://Qmd38jJnTnUMUeJuKSDBGesqXF3SxEahUVZc6NUPyMKgj1?filename=Autodesk_EAGLE_9.6.2_English_Linux_64bit.tar.gz"
# use temp dir
PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
if ! epm tool eget $PKGURL ; then
echo "It is possible you are blocked from USA, trying get from IPFS ..."
pkgname=$(basename $PKGURL)
epm tool eget -O $pkgname https://dhash.ru/ipfs/$IPFSHASH || fatal "Can't get $pkgname from IPFS."
if ! eget --check-site $PKGURL ; then
echo "It is possible you are blocked from USA, trying via IPFS ..."
PKGURL="$IPFSURL"
fi
epm install --repack *.tar.gz || exit
epm install --repack $PKGURL || exit
echo
echo "
......
......@@ -13,7 +13,7 @@ URL="https://element.io/"
arch="amd64"
PKGURL=$(epm tool eget --list --latest https://packages.element.io/debian/pool/main/e/element-desktop/index.html $(epm print constructname $PKGNAME "$VERSION" $arch "deb")) || fatal "Can't get package URL"
epm install --repack "$PKGURL"
mask="$(epm print constructname $PKGNAME "$VERSION" $arch "deb")"
PKGURL=$(eget --list --latest https://packages.element.io/debian/pool/main/e/element-desktop/index.html "$mask") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -35,7 +35,7 @@ esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
epm install $repack "$PKGURL" || exit
echo
echo "Note: run
......
......@@ -9,6 +9,7 @@ URL="https://express.ms/"
. $(dirname $0)/common.sh
warn_version_is_not_supported
PKG="https://express.ms/download/deb"
epm install $PKG
PKGURL="https://express.ms/download/deb"
epm install $PKGURL
......@@ -8,7 +8,8 @@ DESCRIPTION="FAR2L Portable from the official site"
. $(dirname $0)/common.sh
warn_version_is_not_supported
PKGURL=$(epm tool eget --list --latest https://github.com/spvkgn/far2l-portable/releases "far2l_x86_64.AppImage.tar")
PKGURL=$(eget --list --latest https://github.com/spvkgn/far2l-portable/releases "far2l_x86_64.AppImage.tar")
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm --install pack $PKGNAME "$PKGURL"
......@@ -19,16 +19,13 @@ case "$pkgtype" in
rpm)
file="${PKGNAME}_${VERSION}_linux_x86_64.$pkgtype"
;;
deb)
file="${PKGNAME}_${VERSION}_linux_amd64.$pkgtype"
;;
*)
pkgtype="deb"
file="${PKGNAME}_${VERSION}_linux_amd64.$pkgtype"
;;
esac
PKGURL=$(epm tool eget --list --latest https://github.com/Figma-Linux/figma-linux/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/Figma-Linux/figma-linux/releases $file) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -8,7 +8,8 @@ DESCRIPTION="FlyView Client from the official site"
. $(dirname $0)/common.sh
warn_version_is_not_supported
#PKG="$(epm tool eget --list --latest https://flyviewvms.ru/downloads/ "flyview-client*linux64.deb")"
PKG="https://flyviewvms.ru/distro/flyview-client.deb"
epm install $PKG
#PKG="$(eget --list --latest https://flyviewvms.ru/downloads/ "flyview-client*linux64.deb")"
PKGURL="https://flyviewvms.ru/distro/flyview-client.deb"
epm install $PKGURL
......@@ -8,10 +8,11 @@ DESCRIPTION="FlyView (Ipera) Server from the official site"
. $(dirname $0)/common.sh
warn_version_is_not_supported
#PKG="$(epm tool eget --list --latest https://flyviewvms.ru/downloads/ "flyview-server*linux64.deb")"
PKG="https://flyviewvms.ru/distro/flyview-server.deb"
epm install $PKG || exit
#PKG="$(eget --list --latest https://flyviewvms.ru/downloads/ "flyview-server*linux64.deb")"
PKGURL="https://flyviewvms.ru/distro/flyview-server.deb"
epm install $PKGURL || exit
echo
echo "
......
......@@ -18,7 +18,7 @@ case $pkgtype in
;;
esac
PKGURL="$(epm tool eget --list --latest https://www.freeoffice.com/ru/download/applications $file)" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://www.freeoffice.com/ru/download/applications $file)" || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -30,10 +30,11 @@ case $pkgtype in
rpm)
#epm $repack install "https://www.geogebra.net/linux/rpm/$arch/$(epm print constructname $PKGNAME "$VERSION" $arch)"
#http://www.geogebra.net/linux/rpm/x86_64/geogebra-classic-6.0.666.0-202109211234.x86_64.rpm
epm $repack install "ipfs://Qmc6KzDcverDKJptZd6ffJMqyYbKKcuwdHitB6EAEw2C6n?filename=geogebra-classic-6.0.666.0-202109211234.x86_64.rpm"
PKGURL="ipfs://Qmc6KzDcverDKJptZd6ffJMqyYbKKcuwdHitB6EAEw2C6n?filename=geogebra-classic-6.0.666.0-202109211234.x86_64.rpm"
;;
*)
fatal "Unsupported $pkgtype"
;;
esac
epm $repack install "$PKGURL"
......@@ -8,12 +8,14 @@ URL="https://www.guardant.ru/support/users/download/1223/"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] && VERSION="$(basename $(epm tool eget --list --latest https://download.guardant.ru/LM/Linux/ '*/'))"
[ "$VERSION" = "*" ] && VERSION="$(basename $(eget --list --latest https://download.guardant.ru/LM/Linux/ '*/'))"
[ -n "$VERSION" ] || fatal "Can't get version."
shortarch=x64
pkgtype="$(epm print info -p)"
# there are incorrect version in the package name
case "$pkgtype" in
rpm)
file="glds-*.x86_64.rpm"
......@@ -26,7 +28,7 @@ case "$pkgtype" in
;;
esac
PKGURL=$(epm tool eget --list --latest https://download.guardant.ru/LM/Linux/$VERSION/$shortarch/ "$file") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://download.guardant.ru/LM/Linux/$VERSION/$shortarch/ "$file") || fatal "Can't get package URL"
repack=''
[ "$pkgtype" = "rpm" ] && repack='--repack'
......
......@@ -13,6 +13,6 @@ URL="https://www.perforce.com/products/hansoft"
VERSION="${VERSION/\./_}"
PKG="https://cache.hansoft.com/hansoft_${VERSION}_x64.deb"
PKGURL="https://cache.hansoft.com/hansoft_${VERSION}_x64.deb"
epm install $PKG
epm install "$PKGURL"
......@@ -33,14 +33,14 @@ PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
pkgname=$(basename $PKGURL)
if ! epm tool eget $PKGURL ; then
if ! eget --check-site $PKGURL ; then
echo "It is possible you are blocked from USA, trying get from IPFS ..."
epm tool eget -O $pkgname https://dhash.ru/ipfs/$IPFSHASH || fatal "Can't get $pkgname from IPFS."
pkgname=$(basename $PKGURL)
PKGURL="ipfs://$IPFSHASH?filename=$pkgname"
fi
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack $pkgname || exit
epm install $repack $PKGURL
......@@ -20,7 +20,6 @@ esac
pkgtype=deb
PKG=$(epm tool eget --list --latest https://github.com/4gray/iptvnator/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/4gray/iptvnator/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKG"
epm install "$PKGURL"
......@@ -12,10 +12,9 @@ warn_version_is_not_supported
# https://github.com/nagygergo/jetbrains-toolbox-install/blob/master/jetbrains-toolbox.sh
URL=$(epm tool eget -O- "https://data.services.jetbrains.com/products?code=TBA&release.type=eap%2Crc%2Crelease&fields=distributions%2Clink%2Cname%2Creleases" | epm --inscript tool json -b | grep '0,"releases",0,"downloads","linux","link"' | sed -e 's|.*[[:space:]]||')
PKGURL=$(eget -O- "https://data.services.jetbrains.com/products?code=TBA&release.type=eap%2Crc%2Crelease&fields=distributions%2Clink%2Cname%2Creleases" | epm --inscript tool json -b | grep '0,"releases",0,"downloads","linux","link"' | sed -e 's|.*[[:space:]]||')
#https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.25.12627.tar.gz
# eval for drop quotes
eval epm pack --install $PKGNAME $URL
eval epm pack --install $PKGNAME $PKGURL
......@@ -9,6 +9,7 @@ URL="https://www.kyoceradocumentsolutions.eu/en/support/downloads.name-L2V1L2VuL
. $(dirname $0)/common.sh
warn_version_is_not_supported
URL="https://www.kyoceradocumentsolutions.de/content/download-center/de/drivers/all/SANE_Driver_zip.download.zip"
epm pack --install $PKGNAME "$URL"
PKGURL="https://www.kyoceradocumentsolutions.de/content/download-center/de/drivers/all/SANE_Driver_zip.download.zip"
epm pack --install $PKGNAME "$PKGURL"
......@@ -10,6 +10,6 @@ URL="https://www.kyoceradocumentsolutions.eu/en/support/downloads.html"
warn_version_is_not_supported
URL="https://www.kyoceradocumentsolutions.eu/content/download-center/eu/drivers/all/Linux_Universal_Driver_zip.download.zip"
PKGURL="https://www.kyoceradocumentsolutions.eu/content/download-center/eu/drivers/all/Linux_Universal_Driver_zip.download.zip"
epm pack --install kyodialog "$URL"
epm pack --install kyodialog "$PKGURL"
......@@ -13,21 +13,19 @@ arch=x86_64
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKG="https://rpm.librewolf.net/pool/librewolf$VERSION.rpm"
;;
deb)
PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
PKGURL="https://rpm.librewolf.net/pool/librewolf$VERSION.rpm"
;;
*)
fatal "Package target $pkgtype is not supported yet"
PKGURL="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
;;
esac
if ! is_glibc_enough 2.35 ; then
PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
# use deb package for old glibc
PKGURL="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
fi
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKG"
epm install $repack "$PKGURL"
......@@ -29,5 +29,6 @@ if ! is_glibc_enough 2.34 ; then
fi
# https://icons8.ru/lunacy
epm install "https://lcdn.icons8.com/setup/$file"
PKGURL="https://lcdn.icons8.com/setup/$file"
epm install $PKGURL
......@@ -20,7 +20,7 @@ is_stdcpp_enough "11.0" || VERSION="4.1.0"
PKGURL="$(eget --list --latest https://mango3d.io/downloads/ "LycheeSlicer-$VERSION.deb")"
# restore missed CDN for the latest release
PKGURL=$(echo $PKGURL | sed -e 's|mango-lychee.nyc3.digitaloceanspaces.com|mango-lychee.nyc3.cdn.digitaloceanspaces.com|')
PKGURL="$(echo $PKGURL | sed -e 's|mango-lychee.nyc3.digitaloceanspaces.com|mango-lychee.nyc3.cdn.digitaloceanspaces.com|')"
if ! eget --check-url "$PKGURL" ; then
# all previous versions return url to cdn with broken SSL (SSL connection broken only with wget or works only in a browser):
......@@ -29,7 +29,7 @@ if ! eget --check-url "$PKGURL" ; then
if epm assure curl ; then
export EGET_BACKEND=curl
else
PKGURL=$(echo $PKGURL | sed -e 's|mango-lychee.nyc3.cdn|mango-lychee.nyc3|')
PKGURL="$(echo $PKGURL | sed -e 's|mango-lychee.nyc3.cdn|mango-lychee.nyc3|')"
fi
fi
......
......@@ -17,7 +17,7 @@ if [ "$VERSION" = "*" ] ; then
fi
PKGURL="https://hb.bizmrg.com/agent-www/linux/x64/agent.tar.xz"
epm pack --install "$PKGURL" $VERSION
epm pack --install $PKGNAME "$PKGURL" $VERSION
#PKGURL="$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/agent | epm --inscript tool json -b | grep '\["channel-map",0,"download","url"\]' | head -n1 | sed -e 's|.*"\(.*\)"$|\1|' )" || fatal "Can't get URL"
......
......@@ -13,6 +13,6 @@ URL="https://www.getmailspring.com/"
arch=amd64
pkgtype=deb
PKGURL=$(epm tool eget --list --latest https://github.com/Foundry376/Mailspring/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/Foundry376/Mailspring/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -12,13 +12,13 @@ PKG=''
repack=''
# Strict supported list
case $(epm print info -e) in
AstraLinuxCE/*|Debian/9|Ubuntu/20)
AstraLinuxCE/*|Debian/9|Ubuntu/18)
PKG="master-pdf-editor-$VERSION-qt5.9.x86_64.deb"
;;
AstraLinuxSE/1.7*|Debian/*|Ubuntu/*)
PKG="master-pdf-editor-$VERSION-qt5.x86_64.deb"
;;
RedOS/*|AlterOS/*|ALTLinux/*)
RedOS/*|AlterOS/*|ALTLinux/*|CentOS/*|RockyLinux/*)
PKG="master-pdf-editor-$VERSION-qt5.x86_64.rpm"
repack='--repack'
;;
......@@ -27,6 +27,7 @@ esac
if [ -z "$PKG" ] ; then
case $(epm print info -p) in
rpm)
repack='--repack'
PKG="master-pdf-editor-$VERSION-qt5.x86_64.rpm"
;;
*)
......@@ -35,6 +36,6 @@ if [ -z "$PKG" ] ; then
esac
fi
PKGURL=$(epm tool eget --list --latest https://code-industry.ru/get-master-pdf-editor-for-linux/ $PKG)
PKGURL=$(eget --list --latest https://code-industry.ru/get-master-pdf-editor-for-linux/ $PKG) || fatal "Can't get package URL"
epm $repack install "$PKGURL"
......@@ -21,7 +21,7 @@ case "$arch" in
;;
esac
PKGURL=$(epm tool eget --list --latest https://github.com/mattermost/desktop/releases $(epm print constructname $PKGNAME "$VERSION*" $arch "deb")) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/mattermost/desktop/releases $(epm print constructname $PKGNAME "$VERSION*" $arch "deb")) || fatal "Can't get package URL"
epm install --repack "$PKGURL"
......@@ -11,7 +11,7 @@ URL="https://github.com/PurpleHorrorRus/Meridius"
if [ "$VERSION" != "*" ] ; then
PKGURL="https://github.com/PurpleHorrorRus/Meridius/releases/download/v$VERSION/meridius-$VERSION.tar.gz"
else
PKGURL=$(epm tool eget --list --latest https://github.com/PurpleHorrorRus/Meridius/releases "$PKGNAME-*.tar.gz") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/PurpleHorrorRus/Meridius/releases "$PKGNAME-*.tar.gz") || fatal "Can't get package URL"
fi
epm install "$PKGURL"
......@@ -8,7 +8,8 @@ URL="https://mobirise.com"
. $(dirname $0)/common.sh
# https://mobihtml.ru/
epm install "https://download.mobirise.com/MobiriseSetup.deb"
warn_version_is_not_supported
PKGURL="https://download.mobirise.com/MobiriseSetup.deb"
epm install "$PKGURL"
......@@ -17,6 +17,6 @@ epm assure xdg-desktop-menu xdg-utils
# https://preset.myoffice-app.ru/myoffice-standard-home-edition-2.3.0-x86_64.rpm
# https://preset.myoffice-app.ru/myoffice-standard-home-edition_2.3.0_amd64.deb
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" "" "" "" "[-_]")"
PKGURL="$(epm tool eget --list --latest https://myoffice.ru/products/standard-home-edition/ "$PKGMASK")" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://myoffice.ru/products/standard-home-edition/ "$PKGMASK")" || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -8,7 +8,7 @@ URL="https://neovide.dev/"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://github.com/neovide/neovide/releases $PKGNAME.AppImage) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/neovide/neovide/releases $PKGNAME.AppImage) || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -11,7 +11,7 @@ URL="https://netbeans.apache.org"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION="$(epm tool eget --list https://dlcdn.apache.org/netbeans/netbeans-installers/* | tail -n1 | xargs basename)"
VERSION="$(eget --list https://dlcdn.apache.org/netbeans/netbeans-installers/* | tail -n1 | xargs basename)"
fi
pkgtype=$(epm print info -p)
......
......@@ -12,6 +12,6 @@ arch=amd64
pkgtype=deb
# https://github.com/vkbo/novelWriter/releases/download/v2.0.7/novelwriter_2.0.7_all.deb
PKGURL=$(epm tool eget --list --latest https://github.com/vkbo/novelWriter/releases "novelwriter_${VERSION}_all.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/vkbo/novelWriter/releases "novelwriter_${VERSION}_all.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -9,6 +9,6 @@ URL="https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/"
. $(dirname $0)/common.sh
# https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/download/0.85.0/0.85.0-linux-x64.zip
PKGURL=$(epm tool eget --list --latest https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases "${VERSION}-linux-x64.zip") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases "${VERSION}-linux-x64.zip") || fatal "Can't get package URL"
epm pack --install $PKGNAME $PKGURL
......@@ -11,6 +11,6 @@ URL="https://obsidian.md"
arch=amd64
pkgtype=deb
PKGURL=$(epm tool eget --list --latest https://github.com/obsidianmd/obsidian-releases/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/obsidianmd/obsidian-releases/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -11,7 +11,7 @@ URL="https://github.com/pachca/pachca-desktop"
arch="$(epm print info --debian-arch)"
file="${PKGNAME}_${VERSION}_$arch.deb"
PKGURL=$(epm tool eget --list --latest https://github.com/pachca/pachca-desktop/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/pachca/pachca-desktop/releases $file) || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -11,6 +11,6 @@ URL="https://github.com/PCSX2/pcsx2/releases"
# https://github.com/PCSX2/pcsx2/releases/download/v1.7.4767/pcsx2-v1.7.4767-linux-appimage-x64-Qt.AppImage
file="pcsx2-v${VERSION}-linux-appimage-x64-Qt.AppImage"
PKGURL=$(epm tool eget --list --latest https://github.com/PCSX2/pcsx2/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/PCSX2/pcsx2/releases $file) || fatal "Can't get package URL"
epm pack --install "$PKGNAME" "$PKGURL"
......@@ -33,5 +33,5 @@ repack=''
PKGMASK="$(epm print constructname $PKGNAME "$VERSION.ga" $arch)"
PKGURL="$(epm tool eget --list --latest https://pencil.evolus.vn/Downloads.html $PKGMASK)" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://pencil.evolus.vn/Downloads.html $PKGMASK)" || fatal "Can't get package URL"
epm $repack install "$PKGURL"
......@@ -14,7 +14,7 @@ PKGURL="https://dl.piktomir.ru/PiktoMir-x86_64.AppImage"
# hack: original AppImage have no version
cd_to_temp_dir
epm tool eget "$PKGURL" || fatal
eget "$PKGURL" || fatal
newname="$PKGNAME-0.1.AppImage"
mv -v *.AppImage $newname
......
......@@ -17,7 +17,7 @@ fi
# TODO: get from grep '^###Scripts version ' PortWINE/data_from_portwine/changelog_eng | head -n1
###Scripts version 2172###
#VERSION="$(epm tool eget -O- https://api.github.com/repos/Castro-Fidel/PortWINE/commits/HEAD | grep '"message": "Scripts version' | sed -e 's|.*Scripts version ||' -e 's|".*||' )"
#VERSION="$(eget -O- https://api.github.com/repos/Castro-Fidel/PortWINE/commits/HEAD | grep '"message": "Scripts version' | sed -e 's|.*Scripts version ||' -e 's|".*||' )"
#epm pack --install $PKGNAME https://github.com/Castro-Fidel/PortWINE/archive/refs/heads/master.tar.gz $VERSION
epm play i586-fix
......
......@@ -26,7 +26,7 @@ case $(epm print info -e) in
;;
esac
PKGURL=$(epm tool eget --list --latest $BASEURL $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest $BASEURL $file) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -24,7 +24,7 @@ esac
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
PKGURL=$(epm tool eget --list --latest https://github.com/prateekmedia/pstube/releases "$PKGNAME-$VERSION-$arch.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/prateekmedia/pstube/releases "$PKGNAME-$VERSION-$arch.$pkgtype") || fatal "Can't get package URL"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
......
......@@ -39,7 +39,7 @@ case $(epm print info -e) in
;;
esac
PKGURL="$(epm tool eget --list --latest -U "$URLBASE" "$mask")"
PKGURL="$(eget --list --latest -U "$URLBASE" "$mask")"
# install with scripts (need for install icons and associations)
# see /etc/eepm/pkgallowscripts.list
......
......@@ -26,6 +26,6 @@ case $pkgtype-$arch in
;;
esac
PKGURL=$(epm tool eget --list --latest https://www.realvnc.com/en/connect/download/vnc/ $PKG)
PKGURL=$(eget --list --latest https://www.realvnc.com/en/connect/download/vnc/ $PKG) || fatal "Can't get package URL"
epm $repack install $PKGURL
......@@ -32,6 +32,6 @@ case $pkgtype-$arch in
;;
esac
PKGURL=$(epm tool eget --list --latest https://www.realvnc.com/en/connect/download/viewer/ $PKG)
PKGURL=$(eget --list --latest https://www.realvnc.com/en/connect/download/viewer/ $PKG) || fatal "Can't get package URL"
epm $repack install $PKGURL
......@@ -17,7 +17,7 @@ case "$(epm print info -a)" in
arch="armv7l" ;;
esac
PKGURL=$(epm tool eget --list --latest https://www.reaper.fm/download.php "*$arch.tar.xz")
PKGURL=$(eget --list --latest https://www.reaper.fm/download.php "*$arch.tar.xz")
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm pack --install reaper "$PKGURL"
\ No newline at end of file
epm pack --install reaper "$PKGURL"
......@@ -15,7 +15,7 @@ case $pkgtype in
rpm)
mask="ridoclnx-1.0-4.4.x86_64.rpm"
;;
deb)
*)
mask="ridoclnx_1.0.4.4.deb"
;;
esac
......
......@@ -11,6 +11,6 @@ URL="https://github.com/RocketChat/Rocket.Chat.Electron"
arch=amd64
pkgtype=deb
PKGURL=$(epm tool eget --list --latest https://github.com/RocketChat/Rocket.Chat.Electron/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/RocketChat/Rocket.Chat.Electron/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -10,6 +10,6 @@ URL="https://rpcs3.net/download"
file="rpcs3-v${VERSION}-*-*_linux64.AppImage"
PKGURL=$(epm tool eget --list --latest https://github.com/RPCS3/rpcs3-binaries-linux/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/RPCS3/rpcs3-binaries-linux/releases $file) || fatal "Can't get package URL"
epm pack --install "$PKGNAME" "$PKGURL"
......@@ -41,6 +41,6 @@ case $(epm print info -e) in
esac
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype "-" "-")"
PKGURL="$(epm tool eget --list https://www.rstudio.com/products/rstudio/download/ $PKGMASK | grep $PKGFILTER)" || fatal "Can't get package URL"
PKGURL="$(eget --list https://www.rstudio.com/products/rstudio/download/ $PKGMASK | grep $PKGFILTER)" || fatal "Can't get package URL"
epm install $repack "$PKGURL"
......@@ -21,7 +21,7 @@ else
MASK="$PKGNAME-$VERSION-$arch.$pkgtype"
fi
PKGURL=$(epm tool eget --list --latest https://github.com/rustdesk/rustdesk/releases "$MASK") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/rustdesk/rustdesk/releases "$MASK") || fatal "Can't get package URL"
epm install $PKGURL || exit
cat <<EOF
......
......@@ -8,6 +8,6 @@ URL="https://sidequestvr.com/"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest "https://github.com/SideQuestVR/SideQuest/releases/" "*.tar.xz") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest "https://github.com/SideQuestVR/SideQuest/releases/" "SideQuest-$VERSION.tar.xz") || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
......@@ -12,12 +12,12 @@ DOWNURL="https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop"
# https://github.com/signalapp/Signal-Desktop/issues/3506
# old way
#PKGURL=$(epm tool eget --list --latest https://mirror.cs.uchicago.edu/signal/pool/main/s/signal-desktop/ "${PKGNAME}_${VERSION}_amd64.deb")
#PKGURL=$(eget --list --latest https://mirror.cs.uchicago.edu/signal/pool/main/s/signal-desktop/ "${PKGNAME}_${VERSION}_amd64.deb")
#file="$(basename $PKGURL)"
#[ "$VERSION" = "*" ] && VERSION="$(epm tool eget --list --latest https://github.com/signalapp/Signal-Desktop/releases/ v$VERSION.tar.gz | sed -e 's|^v\(.*\)\.tar\.gz|\1|')"
[ "$VERSION" = "*" ] && VERSION="$(epm tool eget -O- https://api.github.com/repos/signalapp/Signal-Desktop/releases | grep '"name": "v[0-9]*\.[0-9]*\.[0-9]*"' | head -n1 | sed -e 's|.* "v\(.*\)".*|\1|')" #'
#file="$(epm tool eget -O- https://updates.signal.org/desktop/apt/dists/xenial/main/binary-amd64/Packages.gz | zcat | grep Filename | sed 's_Filename: _https://updates.signal.org/desktop/apt/_')"
#[ "$VERSION" = "*" ] && VERSION="$(eget --list --latest https://github.com/signalapp/Signal-Desktop/releases/ v$VERSION.tar.gz | sed -e 's|^v\(.*\)\.tar\.gz|\1|')"
[ "$VERSION" = "*" ] && VERSION="$(eget -O- https://api.github.com/repos/signalapp/Signal-Desktop/releases | grep '"name": "v[0-9]*\.[0-9]*\.[0-9]*"' | head -n1 | sed -e 's|.* "v\(.*\)".*|\1|')" #'
#file="$(eget -O- https://updates.signal.org/desktop/apt/dists/xenial/main/binary-amd64/Packages.gz | zcat | grep Filename | sed 's_Filename: _https://updates.signal.org/desktop/apt/_')"
[ -n "$VERSION" ] || fatal "Can't retrieve the latest version for $PKGNAME."
# signal-desktop_5.63.1_amd64.deb
......
......@@ -12,7 +12,7 @@ arch=x86_64
pkgtype=rpm
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype)"
PKG="$(epm tool eget --list --latest https://slack.com/downloads/instructions/fedora $PKGMASK)" || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://slack.com/downloads/instructions/fedora $PKGMASK)" || fatal "Can't get package URL"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm install --repack "$PKG"
epm install --repack "$PKGURL"
......@@ -18,7 +18,7 @@ case $arch in
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
PKGURL=$(epm tool eget --list --latest https://github.com/bromagosa/Snap4Arduino/releases "Snap4Arduino_desktop-gnu-$arch_*.tar.gz") #"
PKGURL=$(eget --list --latest https://github.com/bromagosa/Snap4Arduino/releases "Snap4Arduino_desktop-gnu-$arch_*.tar.gz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
......@@ -8,5 +8,5 @@ URL="https://spotify.com"
. $(dirname $0)/common.sh
# epm uses eget to download * names
epm install "https://repository-origin.spotify.com/pool/non-free/s/spotify-client/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)"
PKGURL="https://repository-origin.spotify.com/pool/non-free/s/spotify-client/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)" || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -13,7 +13,7 @@ URL="https://sputnik-lab.com/api-updates/updates/apps/meta?channel=b2c-distrs-on
url_by_id_content()
{
local id_content="$1"
epm tool eget -q -O- "$URL" | grep -A6 "$id_content" | tail -n1 | sed -e 's|.*"url": "||' -e 's|".*||'
eget -q -O- "$URL" | grep -A6 "$id_content" | tail -n1 | sed -e 's|.*"url": "||' -e 's|".*||'
}
case "$(epm print info -e)" in
......
......@@ -21,7 +21,7 @@ case "$arch" in
;;
esac
PKGURL=$(epm tool eget --list --latest https://www.sublimetext.com/download_thanks "sublime_text_build_${VERSION}_$arch.tar.xz") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://www.sublimetext.com/download_thanks "sublime_text_build_${VERSION}_$arch.tar.xz") || fatal "Can't get package URL"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm pack $PKGNAME "$PKGURL" || exit
......
......@@ -10,7 +10,7 @@ URL="https://synology.com"
[ "$VERSION" = "*" ] && VERSION="[0-9]*"
urldir="$(epm tool eget --list https://archive.synology.com/download/Utility/ChatClient "/$VERSION-*" | head -n1)"
urldir="$(eget --list https://archive.synology.com/download/Utility/ChatClient "/$VERSION-*" | head -n1)"
[ -n "$urldir" ] || fatal "Can't get dir for $VERSION version on https://archive.synology.com/download/Utility/ChatClient"
# use temp dir
......@@ -19,7 +19,6 @@ trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
# fix spaces in the package name
epm tool eget -O $PKGNAME.deb "$urldir/Synology*.deb"
eget -O $PKGNAME.deb "$urldir/Synology*.deb"
epm install $PKGNAME.deb
......@@ -14,8 +14,9 @@ is_stdcpp_enough "11.0" || VERSION="3.2.1"
[ "$VERSION" = "*" ] && VERSION="[0-9]*" || VERSION="$(echo "$VERSION" | sed -e 's|^7|3|')"
urldir="$(epm tool eget --list https://archive.synology.com/download/Utility/SynologyDriveClient "/$VERSION-*" | head -n1)"
urldir="$(eget --list https://archive.synology.com/download/Utility/SynologyDriveClient "/$VERSION-*" | head -n1)"
[ -n "$urldir" ] || fatal "Can't get dir for $VERSION version on https://archive.synology.com/download/Utility/SynologyDriveClient"
epm install "$urldir/$PKGNAME-*.x86_64.deb"
PKGURL="$urldir/$PKGNAME-*.x86_64.deb"
epm install "$PKGURL"
......@@ -21,7 +21,7 @@ if [ "$VERSION" = "*" ] ; then
fi
PKGURL=$(epm tool eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION*.tar.xz") #"
PKGURL=$(eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION*.tar.xz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm --install pack $PKGNAME "$PKGURL"
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://todoist.com/linux_app/appimage"
epm install $PKGURL
epm install "$PKGURL"
......@@ -27,10 +27,9 @@ esac
# https://github.com/tonkeeper/tonkeeper-web/releases/download/v3.7.1/tonkeeper_3.7.1_amd64.deb
# https://github.com/tonkeeper/tonkeeper-web/releases/download/v3.7.1/Tonkeeper-3.7.1-1.x86_64.rpm
PKGURL=$(epm tool eget --list --latest https://github.com/tonkeeper/tonkeeper-web/releases $(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype)) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/tonkeeper/tonkeeper-web/releases $(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype)) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL" || exit
epm install $repack "$PKGURL"
......@@ -15,6 +15,6 @@ fi
[ "$VERSION" != "*" ] && VERSION="$VERSION-1.1"
PKG=$(epm tool eget --list --latest https://github.com/clickot/ungoogled-chromium-binaries/releases ungoogled-chromium_${VERSION}_linux.tar.xz) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/clickot/ungoogled-chromium-binaries/releases ungoogled-chromium_${VERSION}_linux.tar.xz) || fatal "Can't get package URL"
epm install "$PKG"
epm install "$PKGURL"
......@@ -8,6 +8,6 @@ URL="https://benchmark.unigine.com/heaven"
. $(dirname $0)/common.sh
PKGURL="$(eget --list --latest https://benchmark.unigine.com/heaven "Unigine_Heaven-$VERSION.run")"
PKGURL="$(eget --list --latest https://benchmark.unigine.com/heaven "Unigine_Heaven-$VERSION.run")" || fatal "Can't get package URL"
epm pack --install $PKGNAME $PKGURL
epm pack --install $PKGNAME "$PKGURL"
......@@ -9,6 +9,6 @@ URL="https://benchmark.unigine.com/superposition"
. $(dirname $0)/common.sh
# https://assets.unigine.com/d/Unigine_superposition-4.0.run
PKGURL=$(eget --list --latest https://benchmark.unigine.com/superposition "Unigine_Superposition-$VERSION.run")
PKGURL=$(eget --list --latest https://benchmark.unigine.com/superposition "Unigine_Superposition-$VERSION.run") || fatal "Can't get package URL"
epm pack --install $PKGNAME $PKGURL
epm pack --install $PKGNAME "$PKGURL"
......@@ -9,6 +9,6 @@ URL="https://benchmark.unigine.com/valley"
. $(dirname $0)/common.sh
# https://assets.unigine.com/d/Unigine_valley-4.0.run
PKGURL=$(eget --list --latest https://benchmark.unigine.com/valley "Unigine_Valley-$VERSION.run")
PKGURL=$(eget --list --latest https://benchmark.unigine.com/valley "Unigine_Valley-$VERSION.run") || fatal "Can't get package URL"
epm pack --install $PKGNAME $PKGURL
epm pack --install $PKGNAME "$PKGURL"
......@@ -22,7 +22,7 @@ case $vendor in
else
VERSION="3.3.0"
fi
PKGURL=https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_$arch/unityhub-amd64-$VERSION.deb
PKGURL="https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_$arch/unityhub-amd64-$VERSION.deb"
epm install --repack "$PKGURL"
exit
;;
......
......@@ -8,6 +8,6 @@ URL="https://github.com/upscayl/upscayl"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://github.com/upscayl/upscayl/releases "upscayl-$VERSION-linux.AppImage")
PKGURL=$(eget --list --latest https://github.com/upscayl/upscayl/releases "upscayl-$VERSION-linux.AppImage") || fatal "Can't get package URL"
epm install $PKGURL
epm install "$PKGURL"
......@@ -11,7 +11,8 @@ URL="https://vinteo.com"
arch=amd64
pkgtype=deb
[ "$VERSION" = "*" ] && VERSION="$(epm tool eget --list --latest https://download.vinteo.com/VinteoClient/linux/3.* | xargs basename)"
[ "$VERSION" = "*" ] && VERSION="$(eget --list --latest https://download.vinteo.com/VinteoClient/linux/3.* | xargs basename)"
[ -n "$VERSION" ] || fatal "Can't get version"
# use rpm, but not for ALT
[ "$(epm print info -p)" = "rpm" ] && [ "$(epm print info -s)" != "alt" ] && pkgtype=rpm
......
......@@ -21,4 +21,4 @@ fi
PKGURL="https://download.virtualbox.org/virtualbox/$VERSION/Oracle_VM_VirtualBox_Extension_Pack-$VERSION.vbox-extpack"
epm pack --install $PKGNAME $PKGURL
epm pack --install $PKGNAME "$PKGURL"
#!/bin/sh
BASEPKGNAME=vivaldi
PRODUCTALT="stable snapshot"
VERSION="$2"
......@@ -36,11 +35,11 @@ if [ "$PKGNAME" = "$BASEPKGNAME-snapshot" ] ; then
# https://help.vivaldi.com/desktop/install-update/install-snapshots-on-non-deb-rpm-distros/
DEBARCH=$arch
if [ "$VERSION" = "*" ] ; then
VERSION=$(epm tool eget -O- "https://repo.vivaldi.com/archive/deb/dists/stable/main/binary-$DEBARCH/Packages.gz" | gzip -d | grep -A6 -x "Package: $PKGNAME" | sed -n 's/^Version: \(\([0-9]\+\.\)\{3\}[0-9]\+-[0-9]\+\)/\1/p' | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1) #'
VERSION=$(eget -O- "https://repo.vivaldi.com/archive/deb/dists/stable/main/binary-$DEBARCH/Packages.gz" | gzip -d | grep -A6 -x "Package: $PKGNAME" | sed -n 's/^Version: \(\([0-9]\+\.\)\{3\}[0-9]\+-[0-9]\+\)/\1/p' | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1) #'
fi
PKGURL="https://downloads.vivaldi.com/snapshot/vivaldi-snapshot_${VERSION}_$arch.deb"
else
PKGURL="$(epm tool eget --list --latest https://vivaldi.com/ru/download "$(epm print constructname $PKGNAME "$VERSION" $arch deb)")" #" || fatal
PKGURL="$(eget --list --latest https://vivaldi.com/ru/download "$(epm print constructname $PKGNAME "$VERSION" $arch deb)")" #" || fatal
fi
epm install $PKGURL || fatal
......
......@@ -19,9 +19,9 @@ case "$pkgtype" in
;;
esac
PKGURL=$(epm tool eget --list --latest "$URL" "$PKGNAME.$pkgtype")
PKGURL="$(eget --list --latest "$URL" "$PKGNAME.$pkgtype")" || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm $repack install $PKGURL
epm $repack install "$PKGURL"
......@@ -15,6 +15,6 @@ case "$arch" in
;;
esac
PKGURL=$(epm tool eget --list --latest https://desktop.userapi.com/rpm/master/ "$PKGNAME-$VERSION.$arch.rpm")
PKGURL="$(eget --list --latest https://desktop.userapi.com/rpm/master/ "$PKGNAME-$VERSION.$arch.rpm")" || fatal "Can't get package URL"
epm --repack install $PKGURL
epm install --repack "$PKGURL"
......@@ -9,4 +9,7 @@ URL="https://calls.vk.com/"
. $(dirname $0)/common.sh
warn_version_is_not_supported
epm install "https://vkcalls-native-ac.vk-apps.com/latest/vk-calls-amd64.deb" || exit
PKGURL="https://vkcalls-native-ac.vk-apps.com/latest/vk-calls-amd64.deb"
epm install "$PKGURL"
......@@ -31,5 +31,5 @@ esac
pkgtype="$(epm print info -p)"
PKGURL="$(eget --list --latest https://www.hamrick.com/alternate-versions.html "$file*.$pkgtype" )"
PKGURL="$(eget --list --latest https://www.hamrick.com/alternate-versions.html "$file*.$pkgtype" )" || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -11,7 +11,6 @@ URL="https://github.com/nroduit/Weasis"
arch="$(epm print info --debian-arch)"
file="weasis_$VERSION-1_$arch.deb"
PKGURL=$(epm tool eget --list --latest https://github.com/nroduit/Weasis/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/nroduit/Weasis/releases $file) || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -24,7 +24,7 @@ esac
pkgtype=AppImage
PKGURL=$(epm tool eget --list --latest https://github.com/SpacingBat3/WebCord/releases "WebCord-$VERSION-$arch.$pkgtype")
PKGURL=$(eget --list --latest https://github.com/SpacingBat3/WebCord/releases "WebCord-$VERSION-$arch.$pkgtype")
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -8,6 +8,6 @@ URL="https://github.com/yar229/WebDavMailRuCloud"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://github.com/yar229/WebDavMailRuCloud/releases "WebDAVCloudMailRu-${VERSION}-dotNet6.zip") || fatal
PKGURL=$(eget --list --latest https://github.com/yar229/WebDavMailRuCloud/releases "WebDAVCloudMailRu-${VERSION}-dotNet6.zip") || fatal
epm pack --install $PKGNAME $PKGURL
......@@ -9,6 +9,6 @@ URL="https://cyberbotics.com/"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://github.com/cyberbotics/webots/releases/"*.deb") || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/cyberbotics/webots/releases/"*.deb") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -16,6 +16,6 @@ fi
arch=x86_64
# sh: symbol lookup error: /tmp/.private/lav/.mount_whatsaxhRMDh/opt/libc/lib/x86_64-linux-gnu/libc.so.6: undefined symbol: __libc_enable_secure, version GLIBC_PRIVATE
URL=$(epm tool eget --list --latest https://github.com/eneshecan/whatsapp-for-linux/releases "$PKGNAME-$VERSION-$arch.AppImage") || fatal "Can't get package URL"
URL=$(eget --list --latest https://github.com/eneshecan/whatsapp-for-linux/releases "$PKGNAME-$VERSION-$arch.AppImage") || fatal "Can't get package URL"
epm install $URL
......@@ -14,7 +14,7 @@ URL="https://wingware.com/"
BASEURL="https://wingware.com/pub/wing-personal"
if [ "$VERSION" = "*" ] ; then
DIRVERSION="$(epm tool eget --list --latest $BASEURL/10.* | xargs basename)"
DIRVERSION="$(eget --list --latest $BASEURL/10.* | xargs basename)"
VERSION="$(echo $DIRVERSION | sed -e 's|\.[0-9]$||')"
else
# TODO: get full version from site
......@@ -33,7 +33,7 @@ case $pkgtype in
;;
esac
PKGURL="$(epm tool eget --list --latest $BASEURL/$DIRVERSION/ $mask)" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest $BASEURL/$DIRVERSION/ $mask)" || fatal "Can't get package URL"
#PKGURL="https://wingware.com/pub/wing-personal/$VERSION/$mask"
repack=''
......
......@@ -9,9 +9,10 @@ TIPS="Run epm play wpsoffice=<version> to install some specific version"
. $(dirname $0)/common.sh
# TODO: get latest version from vendor
if [ "$VERSION" = "*" ] ; then
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wps-office
pkgverstr=$(epm tool eget -O- "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=wps-office" | grep "^pkgver=")
pkgverstr=$(eget -O- "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=wps-office" | grep "^pkgver=")
eval $pkgverstr
[ -n "$pkgver" ] || pkgver=11.1.0.11664
VERSION="$pkgver.XA"
......@@ -21,19 +22,19 @@ mversion=$(echo "$VERSION" | sed -e 's|\.XA$||' -e 's|.*\.||')
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/$mversion/wps-office-${VERSION}-1.x86_64.rpm"
PKGURL="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/$mversion/wps-office-${VERSION}-1.x86_64.rpm"
;;
*)
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/$mversion/wps-office_${VERSION}_amd64.deb"
PKGURL="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/$mversion/wps-office_${VERSION}_amd64.deb"
;;
esac
repack=''
case "$(epm print info -s)" in
alt)
# See in the package scripts: find /home/*/.config/Kingsoft/Office.conf
epm install --repack $PKG
exit
repack='--repack'
;;
esac
epm install "$PKG"
epm install $repack "$PKGURL"
......@@ -9,4 +9,7 @@ URL="https://www.xnview.com/en/xnconvert/"
. $(dirname $0)/common.sh
warn_version_is_not_supported
epm install https://download.xnview.com/XnConvert-linux-x64.deb
PKGURL="https://download.xnview.com/XnConvert-linux-x64.deb"
epm install "$PKGURL"
......@@ -9,4 +9,7 @@ URL="https://xnview.com/"
. $(dirname $0)/common.sh
warn_version_is_not_supported
epm install https://download.xnview.com/XnViewMP-linux-x64.deb
PKGURL="https://download.xnview.com/XnViewMP-linux-x64.deb"
epm install "$PKGURL"
......@@ -20,10 +20,12 @@ repack=''
if [ "$(epm print info -p)" = "rpm" ] ; then
# https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/yandex-browser-stable-23.1.1.1114-1.x86_64.rpm
[ "$BRANCH" = "corporate" ] && BRANCH="stable"
epm install --repack "$URL/rpm/$BRANCH/x86_64/$(epm print constructname $PKGNAME "$VERSION*" x86_64 rpm)" || exit
PKGURL="$URL/rpm/$BRANCH/x86_64/$(epm print constructname $PKGNAME "$VERSION*" x86_64 rpm)" || fatal "Can't get package URL"
epm install --repack "$PKGURL" || exit
else
# https://repo.yandex.ru/yandex-browser/deb/pool/main/y/yandex-browser-beta/yandex-browser-beta_23.5.4.682-1_amd64.deb
epm install "$URL/deb/pool/main/y/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)" || exit
PKGURL="$URL/deb/pool/main/y/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)"
epm install "$PKGURL" || exit
fi
# TODO: use needed version
......
......@@ -15,7 +15,9 @@ warn_version_is_not_supported
# https://repo.yandex.ru/yandex-disk/yandex-disk_latest_i386.deb
# https://repo.yandex.ru/yandex-disk/yandex-disk-latest.i386.rpm
# epm uses eget to download * names
epm install "https://repo.yandex.ru/yandex-disk/$(epm print constructname $PKGNAME "latest")" || exit
PKGURL="https://repo.yandex.ru/yandex-disk/$(epm print constructname $PKGNAME "latest")" || fatal "Can't get package URL"
epm install "$PKGURL" || exit
# Install also tray indicator
if [ "$(epm print info -s)" = "alt" ] ; then
......
......@@ -10,6 +10,7 @@ URL="https://yandex.ru/support/messenger/index.html"
warn_version_is_not_supported
# they publish it on Yandex Disk only (without direct download)
PKGURL="ipfs://Qma7e4MpopXpeoNnTsCXxx92q1oTrgJmz1aHjecvcEBNWx?filename=Yandex_Messenger_2.155.0_amd64.deb"
epm install --repack $PKGURL
\ No newline at end of file
epm install --repack "$PKGURL"
......@@ -24,6 +24,6 @@ case "$arch" in
;;
esac
PKGURL=$(epm tool eget --list --latest https://github.com/cucumber-sp/yandex-music-linux/releases "yandex-music_${VERSION}_${arch}.deb")
PKGURL=$(eget --list --latest https://github.com/cucumber-sp/yandex-music-linux/releases "yandex-music_${VERSION}_${arch}.deb") || fatal "Can't get package URL"
epm install $PKGURL
epm install "$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=$(epm tool eget --list --latest https://github.com/dedpnd/yaradio-yamusic/releases "${PKGNAME}_${VERSION}_$arch.deb")
PKGURL=$(eget --list --latest https://github.com/dedpnd/yaradio-yamusic/releases "${PKGNAME}_${VERSION}_$arch.deb")
epm install $PKGURL
epm install "$PKGURL"
......@@ -8,6 +8,6 @@ URL="https://github.com/th-ch/youtube-music"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://github.com/th-ch/youtube-music/releases/ "YouTube-Music-$VERSION.AppImage")
PKGURL="$(eget --list --latest https://github.com/th-ch/youtube-music/releases/ "YouTube-Music-$VERSION.AppImage")"
epm install $PKGURL
epm install "$PKGURL"
......@@ -11,8 +11,8 @@ URL="https://github.com/yuzu-emu/yuzu-mainline/releases"
[ "$VERSION" = "*" ] || VERSION="$VERSION-*"
# Closed by Nintendo
#PKGURL=$(epm tool eget --list --latest https://github.com/yuzu-emu/yuzu-mainline/releases "$PKGNAME-$VERSION.AppImage")
#PKGURL=$(eget --list --latest https://github.com/yuzu-emu/yuzu-mainline/releases "$PKGNAME-$VERSION.AppImage")
# https://github.com/yuzu-emu/yuzu-mainline/releases/download/mainline-0-1733/yuzu-mainline-20240303-7ffac53c9.AppImage
PKGURL="ipfs://QmVQ9La5aqL89mm6PkiYfBn5nF9NyhFsuWyaesY3k9JsUN?filename=yuzu-mainline-20240303-7ffac53c9.AppImage"
epm install $PKGURL
epm install "$PKGURL"
......@@ -49,6 +49,6 @@ if [ "$VERSION" = "*" ] ; then
fi
# hack with --compressed due broken answer from the server
PKGURL="$(eget --compressed --list --latest https://download.zerotier.com/RELEASES/$VERSION/dist/$dv/${PKGNAME}[-_]$VERSION*$arch.$pkg)"
PKGURL="$(eget --compressed --list --latest https://download.zerotier.com/RELEASES/$VERSION/dist/$dv/${PKGNAME}[-_]$VERSION*$arch.$pkg)" || fatal "Can't get package URL"
epm install --scripts $PKGURL
epm install --scripts "$PKGURL"
......@@ -26,4 +26,5 @@ repack=''
[ "$(epm print info -s)" = "alt" ] && repack="--repack"
# TODO: there are more complex distro dependent url
epm install $repack "https://zoom.us/client/$VERSION/zoom_$arch.$(epm print info -p)"
PKGURL="https://zoom.us/client/$VERSION/zoom_$arch.$(epm print info -p)"
epm install $repack "$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