Commit 155cb2e9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play.d/common.sh: implement install_pkgurl and install_pack_pkgurl and use…

epm play.d/common.sh: implement install_pkgurl and install_pack_pkgurl and use it (repack rpm packages for any distro)
parent 58743d9d
......@@ -9,6 +9,7 @@ URL="https://1c-connect.com"
. $(dirname $0)/common.sh
warn_version_is_not_supported
PKGURL="https://updates.1c-connect.com/desktop/distribs/1C-Connect-Linux-x64.tar.gz"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -25,7 +25,4 @@ case $pkgtype in
;;
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm $repack install "$PKGURL"
install_pkgurl
......@@ -19,10 +19,6 @@ case $arch in
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
# we have workaround for their postinstall script, so always repack rpm package
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
# rpm packages have a release in their names
[ "$(epm print info -p)" = "rpm" ] && [ "$VERSION" != "*" ] && VERSION="$VERSION-1"
......@@ -43,7 +39,7 @@ PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch '' '_')"
PKGURL="$(eget --list --latest https://download.anydesk.com/linux/ "./$PKGMASK")" || fatal "Can't get package URL"
epm $repack install "$PKGURL" || exit
install_pkgurl
echo
echo "Note: run
......
......@@ -25,4 +25,4 @@ else
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"
install_pkgurl
......@@ -14,4 +14,6 @@ VERSION="0.27.5"
# https://audiorelay.net/downloads
# TODO: https://api.audiorelay.net/downloads
epm install "https://dl.audiorelay.net/setups/linux/audiorelay-$VERSION.deb"
PKGURL="https://dl.audiorelay.net/setups/linux/audiorelay-$VERSION.deb"
install_pkgurl
......@@ -20,7 +20,4 @@ esac
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'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -20,7 +20,4 @@ case $pkgtype in
;;
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -23,8 +23,5 @@ esac
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'
epm install $repack "$PKGURL" || exit
install_pkgurl
......@@ -14,4 +14,4 @@ else
PKGURL="https://downloads.bitwig.com/$VERSION/bitwig-studio-$VERSION.deb"
fi
epm install $PKGURL
install_pkgurl
......@@ -8,16 +8,9 @@ DESCRIPTION="Brave browser from the official site"
. $(dirname $0)/common.sh
repack=''
# we have workaround for their postinstall script, so always repack rpm package
#[ "$(epm print info -p)" = "deb" ] || repack='--repack'
# repack for deb too, they have broken dependency on brave-keyring
repack='--repack'
# brave-browser-beta-1.51.105-1.x86_64.rpm
# brave-browser-beta_1.51.105_amd64.deb
# rpm packages have a release in their names
[ "$(epm print info -p)" = "rpm" ] && [ "$VERSION" != "*" ] && VERSION="$VERSION-1"
......@@ -26,12 +19,13 @@ repack='--repack'
PKGURL=$(eget --list --latest https://github.com/brave/brave-browser/releases $(epm print constructname $PKGNAME "$VERSION"))
# some hack
if [ -z "$PKGURL" ] ; then
# force use beta if can't get stable version
if [ "$PKGNAME" = "$BASEPKGNAME" ] ; then
TOREMOVEPKG=$PKGNAME
override_pkgname "$BASEPKGNAME-beta"
PKGURL=$(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 ... "
......@@ -41,4 +35,7 @@ if [ -z "$PKGURL" ] ; then
fi
fi
epm $repack install "$PKGURL"
# we have workaround for their postinstall script, so always repack rpm package
# repack for deb too, they have broken dependency on brave-keyring
# install_pkgurl
epm install --repack "$PKGURL"
......@@ -14,7 +14,7 @@ warn_version_is_not_supported
VERSION="2022.3.1"
PKGURL="ipfs://Qma8WF8iPwgKNPM6UdZHWse4q1cTnPAvjMRkGsbbWYi18w?filename=cascadeur-linux.tgz"
# TODO: ask license
epm pack --install $PKGNAME "$PKGURL" "$VERSION"
install_pack_pkgurl "$VERSION"
exit
# (liblapack.so.3)
......@@ -25,5 +25,4 @@ VERSION=$(echo "$page" | grep 'main-download__info-version' | sed -e 's|.*<div c
PKGURL="https://cdn.cascadeur.com/builds/linux/$BUILDID/cascadeur-linux_$VERSION.tgz"
# TODO: ask license
epm pack --install $PKGNAME "$PKGURL" "$VERSION"
install_pack_pkgurl "$VERSION"
......@@ -13,4 +13,4 @@ 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") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -10,17 +10,12 @@ DESCRIPTION='' # echo " Remote desktop support for google-chrome & chromium" &&
echo "Note: It is not tested yet."
#arch=$(epm print info --distro-arch)
#pkgtype=$(epm print info -p)
repack=''
arch=amd64
pkgtype=deb
# we have workaround for their postinstall script, so always repack rpm package
[ "$(epm print info -p)" = "deb" ] || repack='--repack'
PKGURL="https://dl.google.com/linux/direct/${PKGNAME}_current_$arch.$pkgtype"
PKG="https://dl.google.com/linux/direct/${PKGNAME}_current_$arch.$pkgtype"
epm install $repack "$PKG" || exit
install_pkgurl
echo '
You need run
......
......@@ -9,10 +9,6 @@ URL="https://www.google.com/chrome/"
. $(dirname $0)/common.sh
_channel="stable"
repack=''
# we have workaround for their postinstall script, so always repack rpm package
[ "$(epm print info -p)" = "deb" ] || repack='--repack'
if [ "$VERSION" = "*" ] ; then
PKGURL="https://dl.google.com/linux/direct/google-chrome-stable_current_$arch.$pkgtype"
......@@ -20,4 +16,4 @@ 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 "$PKGURL"
install_pkgurl
......@@ -10,10 +10,9 @@ DESCRIPTION="Chromium with GOST support from the official site"
. $(dirname $0)/common.sh
#arch=$(epm print info --distro-arch)
#pkgtype=$(epm print info -p)
arch=amd64
pkgtype=deb
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"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://www.jetbrains.com/clion/"
PKGURL="$(get_jetbrains_pkgurl CL cpp)"
epm install $PKGURL
install_pkgurl
......@@ -14,4 +14,4 @@ else
PKGURL="$(eget --list --latest https://clipgrab.org/ "ClipGrab-*-x86_64.AppImage")" || fatal "Can't get package URL"
fi
epm install $PKGURL
install_pkgurl
......@@ -26,16 +26,13 @@ esac
pkgtype="$(epm print info -p)"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
if [ "$VERSION" != "*" ] ; then
URL="https://update.code.visualstudio.com/$VERSION/linux-$pkgtype-$arch/stable"
PKGURL="https://update.code.visualstudio.com/$VERSION/linux-$pkgtype-$arch/stable"
else
URL="https://code.visualstudio.com/sha/download?build=stable&os=linux-$pkgtype-$arch"
PKGURL="https://code.visualstudio.com/sha/download?build=stable&os=linux-$pkgtype-$arch"
fi
epm install $repack "$URL" || exit
install_pkgurl
echo
echo "NOTE: VS Code is a proprietary build. We recommend you to use open source editors: Codium, Atom."
......@@ -30,10 +30,8 @@ case "$arch-$pkgtype" in
esac
PKGURL="$(eget --list --latest https://github.com/VSCodium/vscodium/releases "$(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype)")" || fatal "Can't get package URL"
mask="$(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype)"
PKGURL="$(eget --list --latest https://github.com/VSCodium/vscodium/releases "$mask")" || fatal "Can't get package URL"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
epm install $repack "$PKGURL" || exit
install_pkgurl
......@@ -14,6 +14,6 @@ VERSION="$(eget -O- https://www.commfort.com/ru/download.shtml | grep "Верс
[ -n "$VERSION" ] || fatal "Can't get version."
# TODO: check: https://www.commfort.com/download/commfort_client.msi
INSTALLURL="https://www.commfort.com/download/commfort_client_wine.exe"
PKGURL="https://www.commfort.com/download/commfort_client_wine.exe"
epm pack --install $PKGNAME $INSTALLURL $VERSION
install_pack_pkgurl $VERSION
......@@ -104,6 +104,37 @@ override_pkgname()
export EEPM_INTERNAL_PKGNAME="$PKGNAME"
}
# epm install $PKGURL
install_pkgurl()
{
local repack=''
local pkgtype="$(epm print info -p)"
# we have workaround for their postinstall script, so always repack rpm package
# TODO: repack for deb systems too
[ "$pkgtype" = "rpm" ] && repack='--repack'
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm install $repack "$PKGURL" "$@" || exit
}
# epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl()
{
local repack=''
local pkgtype="$(epm print info -p)"
# we have workaround for their postinstall script, so always repack rpm package
# TODO: repack for deb systems too
[ "$pkgtype" = "rpm" ] && repack='--repack'
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm pack $repack --install $PKGNAME "$PKGURL" "$@"
}
get_latest_version()
{
local ver
......
......@@ -20,7 +20,6 @@ case "$arch" in
;;
esac
#pkgtype="$(epm print info -p)"
PKGURL="$(eget --list --latest https://cuda-z.sourceforge.net/ "$file" )" || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -20,4 +20,4 @@ case $pkgtype in
;;
esac
epm install "$PKGURL"
install_pkgurl
......@@ -14,4 +14,4 @@ else
PKGURL="https://dl.discordapp.net/apps/linux/$VERSION/discord-$VERSION.deb"
fi
epm install "$PKGURL"
install_pkgurl
......@@ -21,7 +21,4 @@ arch=amd64
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'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -20,10 +20,9 @@ case $pkgtype in
;;
esac
repack=''
if [ "$(epm print info -s)" = "alt" ] ; then
PKGURL="https://desktop.docker.com/linux/main/amd64/139021/docker-desktop-4.28.0-amd64.deb"
repack='--repack'
fi
# TODO: rpm and deb packages has diffent binaries
#if [ "$(epm print info -s)" = "alt" ] ; then
# PKGURL="https://desktop.docker.com/linux/main/amd64/139021/docker-desktop-4.28.0-amd64.deb"
#fi
epm install $repack "$PKGURL"
install_pkgurl
......@@ -12,4 +12,4 @@ pkgtype=deb
PKGURL=$(eget --list --latest https://github.com/jgraph/drawio-desktop/releases "drawio-$arch-$VERSION.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -17,4 +17,4 @@ SELECTOR="preview"
PKGURL=$(eget --list https://github.com/stenzek/duckstation/releases $file | grep "/$SELECTOR/") || fatal "Can't get package URL"
epm pack --install "$PKGNAME" "$PKGURL"
install_pack_pkgurl
......@@ -12,10 +12,7 @@ warn_version_is_not_supported
pkgtype="$(epm print info -p)"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
#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 "$PKGURL"
install_pkgurl
......@@ -13,20 +13,9 @@ VERSION=9.6.2
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 ! eget --check-site $PKGURL ; then
echo "It is possible you are blocked from USA, trying via IPFS ..."
PKGURL="$IPFSURL"
fi
epm install --repack $PKGURL || exit
echo
echo "
Run via
$ eagle
"
install_pkgurl
......@@ -8,4 +8,6 @@ DESCRIPTION="Microsoft Edge browser (dev) from the official site"
. $(dirname $0)/common.sh
epm install "https://packages.microsoft.com/repos/edge/pool/main/m/$PKGNAME/${PKGNAME}_${VERSION}-[12]_amd64.deb"
PKGURL="https://packages.microsoft.com/repos/edge/pool/main/m/$PKGNAME/${PKGNAME}_${VERSION}-[12]_amd64.deb"
install_pkgurl
......@@ -16,4 +16,4 @@ arch="amd64"
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"
install_pkgurl
......@@ -24,10 +24,7 @@ case "$pkgtype-$arch" in
;;
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL" || exit
install_pkgurl
echo
echo "Note: run
......
......@@ -24,7 +24,4 @@ case "$pkgtype-$arch" in
;;
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm pack $repack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -24,7 +24,4 @@ case "$pkgtype-$arch" in
;;
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm pack $repack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://express.ms/download/deb"
epm install $PKGURL
install_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
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"
install_pack_pkgurl
......@@ -27,8 +27,5 @@ esac
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'
epm install $repack "$PKGURL" || exit
install_pkgurl
......@@ -14,4 +14,4 @@ arch=x86_64
VERSION="*"
PKGURL="https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-$VERSION.en-US.linux-$arch.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -13,4 +13,4 @@ warn_version_is_not_supported
VERSION=32.0.0.465
PKGURL="https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux.x86_64.tar.gz"
epm pack --install $PKGNAME $PKGURL "$VERSION"
install_pack_pkgurl "$VERSION"
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
#PKG="$(eget --list --latest https://flyviewvms.ru/downloads/ "flyview-client*linux64.deb")"
PKGURL="https://flyviewvms.ru/distro/flyview-client.deb"
epm install $PKGURL
install_pkgurl
......@@ -12,7 +12,7 @@ warn_version_is_not_supported
#PKG="$(eget --list --latest https://flyviewvms.ru/downloads/ "flyview-server*linux64.deb")"
PKGURL="https://flyviewvms.ru/distro/flyview-server.deb"
epm install $PKGURL || exit
install_pkgurl
echo
echo "
......
......@@ -20,7 +20,4 @@ esac
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'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -11,4 +11,4 @@ URL="http://freeplane.sourceforge.net"
[ "$VERSION" = "*" ] && VERSION="$(eget -O- https://sourceforge.net/projects/$PKGNAME/best_release.json | sed -e 's|.*freeplane_bin-||g' -e 's|\.zip.*||')"
PKGURL="https://download.sourceforge.net/project/freeplane/freeplane%20stable/freeplane_$VERSION~upstream-1_all.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -20,15 +20,12 @@ esac
pkgtype="$(epm print info -p)"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
case $pkgtype in
#deb)
# epm install "https://www.geogebra.net/linux/pool/main/g/geogebra-classic/$(epm print constructname $PKGNAME "$VERSION" $arch)"
# ;;
rpm)
#epm $repack install "https://www.geogebra.net/linux/rpm/$arch/$(epm print constructname $PKGNAME "$VERSION" $arch)"
#PKGURL="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
PKGURL="ipfs://Qmc6KzDcverDKJptZd6ffJMqyYbKKcuwdHitB6EAEw2C6n?filename=geogebra-classic-6.0.666.0-202109211234.x86_64.rpm"
;;
......@@ -37,4 +34,4 @@ case $pkgtype in
;;
esac
epm $repack install "$PKGURL"
install_pkgurl
......@@ -20,8 +20,4 @@ case $pkgtype in
;;
esac
if [ "$(epm print info -s)" = "alt" ] ; then
repack="--repack"
fi
epm install $repack "$PKGURL"
install_pkgurl
......@@ -25,13 +25,8 @@ case "$arch" in
;;
esac
repack=''
case $(epm print info -e) in
ALTLinux/*)
repack='--repack'
;;
esac
# https://docs.gitlab.com/runner/install/linux-manually.html
# https://gitlab-runner-downloads.s3.amazonaws.com/latest/index.html
epm install $repack "https://gitlab-runner-downloads.s3.amazonaws.com/latest/$pkg/gitlab-runner_${arch}.$pkg"
PKGURL="https://gitlab-runner-downloads.s3.amazonaws.com/latest/$pkg/gitlab-runner_${arch}.$pkg"
install_pkgurl
......@@ -30,10 +30,7 @@ esac
PKGURL=$(eget --list --latest https://download.guardant.ru/LM/Linux/$VERSION/$shortarch/ "$file") || fatal "Can't get package URL"
repack=''
[ "$pkgtype" = "rpm" ] && repack='--repack'
epm pack $PKGNAME $repack --install "$PKGURL" "$VERSION" || exit
install_pack_pkgurl "$VERSION"
cat <<EOF
......
......@@ -15,4 +15,4 @@ VERSION="${VERSION/\./_}"
PKGURL="https://cache.hansoft.com/hansoft_${VERSION}_x64.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -18,4 +18,4 @@ fi
# https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-$VERSION-plugin.run
PKGURL="https://developers.hp.com/sites/default/files/hplip-$VERSION-plugin.run"
epm pack --install $PKGNAME $PKGURL
install_pack_pkgurl
......@@ -40,7 +40,4 @@ if ! eget --check-site $PKGURL ; then
PKGURL="ipfs://$IPFSHASH?filename=$pkgname"
fi
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack $PKGURL
install_pkgurl
......@@ -16,4 +16,5 @@ fi
# TODO: install from snap
#PKGURL="https://icq-www.hb.bizmrg.com/linux/x64/icq.tar.xz"
PKGURL="https://hb.bizmrg.com/icq-www/linux/x64/packages/$VERSION/icq-${VERSION}_64bit.tar.xz"
epm install --repack "$PKGURL"
install_pkgurl
......@@ -10,5 +10,4 @@ URL="https://www.jetbrains.com/idea/"
PKGURL="$(get_jetbrains_pkgurl IIC idea)"
epm install $PKGURL
install_pkgurl
......@@ -10,5 +10,5 @@ URL="https://www.jetbrains.com/idea/"
PKGURL="$(get_jetbrains_pkgurl IIU idea)"
epm install $PKGURL
install_pkgurl
......@@ -22,4 +22,4 @@ pkgtype=deb
PKGURL=$(eget --list --latest https://github.com/4gray/iptvnator/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -12,9 +12,8 @@ warn_version_is_not_supported
# https://github.com/nagygergo/jetbrains-toolbox-install/blob/master/jetbrains-toolbox.sh
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
#https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.25.12627.tar.gz
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:]]||' -e 's|"||g' )
# eval for drop quotes
eval epm pack --install $PKGNAME $PKGURL
install_pack_pkgurl
......@@ -10,4 +10,4 @@ URL="https://joplinapp.org/"
PKGURL="$(eget --list --latest https://github.com/laurent22/joplin/releases/ "Joplin-$VERSION.AppImage")"
epm install $PKGURL
install_pkgurl
......@@ -33,4 +33,5 @@ else
fi
VERSION="$(echo "$PKGURL" | sed -e 's|.*download/v||' -e 's|%2Bk3s1.*||' -e 's|+k3s1.*||' -e 's|-.*||')"
epm pack --install $PKGNAME "$PKGURL" $VERSION
install_pack_pkgurl $VERSION
......@@ -14,4 +14,6 @@ PKGURL="https://app.ktalk.ru/system/dist/download/linux"
# curl can't get filename: https://github.com/curl/curl/issues/8461
epm assure wget || fatal
EGET_BACKEND=wget epm pack --install $PKGNAME $PKGURL
export EGET_BACKEND=wget
install_pack_pkgurl
......@@ -39,4 +39,5 @@ esac
PKGURL="$(eget --list --latest https://github.com/ipfs/kubo/releases "${BASEPKGNAME}_v${VERSION}$file")"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://www.kyoceradocumentsolutions.de/content/download-center/de/drivers/all/SANE_Driver_zip.download.zip"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://www.kyoceradocumentsolutions.eu/content/download-center/eu/drivers/all/Linux_Universal_Driver_zip.download.zip"
epm pack --install kyodialog "$PKGURL"
install_pack_pkgurl
......@@ -27,7 +27,4 @@ if ! is_glibc_enough 2.35 ; then
PKGURL="https://deb.librewolf.net/pool/focal/librewolf-$VERSION-[0-9].$arch.deb"
fi
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -11,6 +11,5 @@ URL="https://github.com/visualfc/liteide"
archbit="$(epm print info -b)"
PKGURL=$(eget --list --latest https://github.com/visualfc/liteide/releases "liteidex$VERSION.linux$archbit-qt5*-system.tar.gz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -27,14 +27,8 @@ case $pkgtype in
;;
esac
repack=''
case $(epm print info -s) in
alt)
repack="--repack"
esac
# https://www.lecad.ru/?download=&kcccount=https://www.lecad.ru/wp-content/uploads/lithium-ecad_1.7.5_amd64.deb
# https://www.lecad.ru/?download=&kcccount=https://www.lecad.ru/wp-content/uploads/lithium_ecad-1.7.5-0.x86_64.rpm
PKGURL="$(eget --list --latest https://www.lecad.ru/actual-version/ "$mask")"
epm $repack install "$PKGURL"
install_pkgurl
......@@ -11,4 +11,4 @@ URL="https://github.com/logseq/logseq"
# https://github.com/logseq/logseq/releases/download/0.9.5/Logseq-linux-x64-0.9.5.AppImage
PKGURL=$(eget --list https://github.com/logseq/logseq/releases/ "Logseq-linux-x64-$VERSION.AppImage" | grep -v nightly | head -n1) || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -31,4 +31,4 @@ fi
# https://icons8.ru/lunacy
PKGURL="https://lcdn.icons8.com/setup/$file"
epm install $PKGURL
install_pkgurl
......@@ -33,4 +33,4 @@ if ! eget --check-url "$PKGURL" ; then
fi
fi
epm install $PKGURL
install_pkgurl
......@@ -17,7 +17,7 @@ if [ "$VERSION" = "*" ] ; then
fi
PKGURL="https://hb.bizmrg.com/agent-www/linux/x64/agent.tar.xz"
epm pack --install $PKGNAME "$PKGURL" $VERSION
install_pack_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"
......
......@@ -15,4 +15,4 @@ pkgtype=deb
PKGURL=$(eget --list --latest https://github.com/Foundry376/Mailspring/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -9,7 +9,6 @@ URL="https://master-pdf-editor.ru/"
. $(dirname $0)/common.sh
PKG=''
repack=''
# Strict supported list
case $(epm print info -e) in
AstraLinuxCE/*|Debian/9|Ubuntu/18)
......@@ -20,14 +19,12 @@ case $(epm print info -e) in
;;
RedOS/*|AlterOS/*|ALTLinux/*|CentOS/*|RockyLinux/*)
PKG="master-pdf-editor-$VERSION-qt5.x86_64.rpm"
repack='--repack'
;;
esac
if [ -z "$PKG" ] ; then
case $(epm print info -p) in
rpm)
repack='--repack'
PKG="master-pdf-editor-$VERSION-qt5.x86_64.rpm"
;;
*)
......@@ -38,4 +35,4 @@ fi
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"
install_pkgurl
......@@ -23,5 +23,5 @@ esac
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"
install_pkgurl
......@@ -14,4 +14,4 @@ else
PKGURL=$(eget --list --latest https://github.com/PurpleHorrorRus/Meridius/releases "$PKGNAME-*.tar.gz") || fatal "Can't get package URL"
fi
epm install "$PKGURL"
install_pkgurl
......@@ -11,5 +11,6 @@ URL="https://www.minecraft.net/en-us/download"
warn_version_is_not_supported
# https://www.minecraft.net/en-us/download
epm install "https://launcher.mojang.com/download/Minecraft.deb"
PKGURL="https://launcher.mojang.com/download/Minecraft.deb"
install_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://download.mobirise.com/MobiriseSetup.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://mytonwallet.app/"
PKGURL=$(eget --list --latest https://github.com/mytonwalletorg/mytonwallet/releases "MyTonWallet-x86_64.AppImage") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -10,5 +10,5 @@ URL="https://neovide.dev/"
PKGURL=$(eget --list --latest https://github.com/neovide/neovide/releases "$PKGNAME.AppImage") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -26,4 +26,5 @@ esac
# epm install "https://dlcdn.apache.org/netbeans/netbeans-installers/$VERSION/$mask"
PKGURL="https://archive.apache.org/dist/netbeans/netbeans-installers/$VERSION/$mask"
epm install "$PKGURL"
install_pkgurl
......@@ -17,4 +17,4 @@ pkgtype=deb
# https://github.com/vkbo/novelWriter/releases/download/v2.0.7/novelwriter_2.0.7_all.deb
PKGURL=$(eget --list --latest https://github.com/vkbo/novelWriter/releases "novelwriter_${VERSION}_all.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -11,4 +11,4 @@ URL="https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/"
# https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/download/0.85.0/0.85.0-linux-x64.zip
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
install_pack_pkgurl
......@@ -13,4 +13,4 @@ pkgtype=deb
PKGURL=$(eget --list --latest https://github.com/obsidianmd/obsidian-releases/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -44,5 +44,4 @@ fi
#PKGURL="https://download.onlyoffice.com/install/desktop/editors/linux/"
#PKGURL="$(eget --list --latest https://github.com/ONLYOFFICE/DesktopEditors/releases $(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype))"
# use --repack to apply repack script for all platforms
epm install --repack "$PKGURL"
install_pkgurl
......@@ -18,11 +18,9 @@ if [ "$(epm print info -p)" = "rpm" ] ; then
pkgname="${PKGNAME/-/_}"
# they put all branch here (rpm only): https://rpm.opera.com/rpm/
[ "$(epm print info -s)" = "alt" ] && repack='--repack' || repack=''
PKGURL="https://rpm.opera.com/rpm/$pkgname-$VERSION-linux-release-x64-signed.rpm"
epm install $repack "$PKGURL"
exit
else
PKGURL="https://deb.opera.com/opera-developer/pool/non-free/o/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION" $arch deb)"
fi
PKGURL="https://deb.opera.com/opera-developer/pool/non-free/o/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION" $arch deb)"
epm install "$PKGURL"
install_pkgurl
......@@ -13,5 +13,5 @@ file="${PKGNAME}_${VERSION}_$arch.deb"
PKGURL=$(eget --list --latest https://github.com/pachca/pachca-desktop/releases "$file") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -20,4 +20,4 @@ case $VERSION in
;;
esac
epm install $PKGURL
install_pkgurl
......@@ -36,7 +36,7 @@ case $(epm print info -e) in
# ;;
esac
epm pack --install $PKGNAME "$PKGURL" || exit
install_pack_pkgurl
#PKGURL="https://drivers.pantum.ru/userfiles/files/download/%E9%A9%B1%E5%8A%A8%E6%96%87%E4%BB%B6/%E6%A0%87%E7%AD%BE%E6%9C%BA/Linux/linux_pantum.7z"
......
......@@ -13,4 +13,4 @@ file="pcsx2-v${VERSION}-linux-appimage-x64-Qt.AppImage"
PKGURL=$(eget --list --latest https://github.com/PCSX2/pcsx2/releases "$file") || fatal "Can't get package URL"
epm pack --install "$PKGNAME" "$PKGURL"
install_pack_pkgurl
......@@ -21,10 +21,6 @@ case $arch in
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
# we have workaround for their postinstall script, so always repack rpm package
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
# current links:
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil-3.1.1.ga.x86_64.rpm
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil-3.1.1.ga.i686.rpm
......@@ -34,4 +30,5 @@ repack=''
mask="$(epm print constructname $PKGNAME "$VERSION.ga" $arch)"
PKGURL="$(eget --list --latest https://pencil.evolus.vn/Downloads.html "$mask")" || fatal "Can't get package URL"
epm $repack install "$PKGURL"
install_pkgurl
......@@ -9,9 +9,10 @@ URL="https://www.pfu.ricoh.com/global/scanners/fi/dl/agree/ubuntu-64-221-sp.html
. $(dirname $0)/common.sh
warn_version_is_not_supported
VERSION=2.2.1
# check URL to upgrade the version
PKGURL="https://origin.pfultd.com/downloads/IMAGE/driver/ubuntu/221/pfusp-ubuntu_2.2.1_amd64.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -22,8 +22,7 @@ fi
BASEURL=https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/redhat/rhel-8Workstation-x86_64
#BASEURL=https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/fedora/fedora-38Workstation-x86_64
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
pkgarch='x86_64'
epm $repack install $BASEURL/pgadmin4-server-$VERSION.*.$pkgarch.rpm $BASEURL/pgadmin4-desktop-$VERSION.*.$pkgarch.rpm
PKGURL="$BASEURL/pgadmin4-server-$VERSION.*.$pkgarch.rpm $BASEURL/pgadmin4-desktop-$VERSION.*.$pkgarch.rpm"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://www.jetbrains.com/phpstorm/"
PKGURL="$(get_jetbrains_pkgurl PS webide)"
epm install $PKGURL
install_pkgurl
......@@ -11,4 +11,4 @@ URL="https://www.plex.tv/"
# https://api.snapcraft.io/api/v1/snaps/download/qc6MFRM433ZhI1XjVzErdHivhSOhlpf0_37.snap
PKGURL="$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/plex-desktop | epm --inscript tool json -b | grep '\["channel-map",0,"download","url"\]' | head -n1 | sed -e 's|.*"\(.*\)"$|\1|' )" || fatal "Can't get URL"
epm install "$PKGURL"
install_pkgurl
......@@ -10,7 +10,6 @@ URL="https://safing.io/"
warn_version_is_not_supported
repack=''
pkgtype="$(epm print info -p)"
case "$pkgtype" in
......@@ -21,10 +20,6 @@ case "$pkgtype" in
;;
esac
if [ "$(epm print info -s)" = "alt" ] ; then
repack="--repack"
fi
PKGURL="https://updates.safing.io/latest/linux_amd64/packages/portmaster-installer.$pkgtype"
epm install $repack "$PKGURL"
install_pkgurl
......@@ -7,19 +7,14 @@ DESCRIPTION='PortProton (from the repository if the package is there, or from th
. $(dirname $0)/common.sh
res=0
if ! epm install portproton ; then
PKGURL="$(eget --list --latest https://github.com/Castro-Fidel/PortProton_dpkg/releases "portproton_${VERSION}amd64.deb")"
epm install $PKGURL
res=$?
install_pkgurl
fi
# TODO: get from grep '^###Scripts version ' PortWINE/data_from_portwine/changelog_eng | head -n1
###Scripts version 2172###
#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
exit $res
......@@ -19,4 +19,4 @@ esac
PKGURL="https://dl.pstmn.io/download/latest/linux_$arch"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -28,8 +28,4 @@ esac
PKGURL=$(eget --list --latest $BASEURL "$file") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL" || exit
install_pkgurl
......@@ -26,8 +26,4 @@ arch=x86_64
# https://github.com/prateekmedia/pstube/releases/download/2.6.0/pstube-linux-2.6.0-x86_64.deb
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'
epm install $repack "$PKGURL" || exit
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://www.jetbrains.com/ru-ru/pycharm/"
PKGURL="$(get_jetbrains_pkgurl PCP python)"
epm install "$PKGURL"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://www.jetbrains.com/ru-ru/pycharm/"
PKGURL="$(get_jetbrains_pkgurl PCC python)"
epm install $PKGURL
install_pkgurl
......@@ -16,9 +16,6 @@ fi
pkgtype="$(epm print info -p)"
arch="$(epm print info -a)"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
case $pkgtype-$arch in
rpm-x86_64)
mask="VNC-Server-$VERSION-Linux-x64.rpm"
......@@ -33,4 +30,4 @@ esac
PKGURL=$(eget --list --latest https://www.realvnc.com/en/connect/download/vnc/ "$mask") || fatal "Can't get package URL"
epm $repack install $PKGURL
install_pkgurl
......@@ -16,9 +16,6 @@ fi
pkgtype="$(epm print info -p)"
arch="$(epm print info -a)"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
case $pkgtype-$arch in
rpm-x86_64)
PKG="VNC-Viewer-$VERSION-Linux-x64.rpm"
......@@ -41,4 +38,4 @@ esac
# https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-7.10.0-Linux-x64.rpm
PKGURL=$(eget --list --latest https://www.realvnc.com/en/connect/download/viewer/ "$PKG") || fatal "Can't get package URL"
epm $repack install $PKGURL
install_pkgurl
......@@ -17,7 +17,6 @@ case "$(epm print info -a)" in
arch="armv7l" ;;
esac
PKGURL=$(eget --list --latest https://www.reaper.fm/download.php "*$arch.tar.xz")
[ -n "$PKGURL" ] || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://www.reaper.fm/download.php "*$arch.tar.xz")
epm pack --install reaper "$PKGURL"
install_pack_pkgurl
......@@ -13,4 +13,4 @@ warn_version_is_not_supported
# https://www.rememberthemilk.com/services/linux/
PKGURL="https://www.rememberthemilk.com/services/linux/download/?os=ubuntu_64&subtype=1.3.11"
epm install "$PKGURL"
install_pkgurl
......@@ -22,7 +22,4 @@ esac
PKGURL="https://ridoclnx.com/download/$mask"
# for add /usr/bin/ridoclnx
repack='--repack'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -13,4 +13,4 @@ pkgtype=deb
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"
install_pkgurl
......@@ -13,4 +13,4 @@ file="rpcs3-v${VERSION}-*-*_linux64.AppImage"
PKGURL=$(eget --list --latest https://github.com/RPCS3/rpcs3-binaries-linux/releases "$file") || fatal "Can't get package URL"
epm pack --install "$PKGNAME" "$PKGURL"
install_pack_pkgurl
......@@ -24,8 +24,6 @@ esac
#case "$distr" in
#case
repack=''
case $(epm print info -e) in
Ubuntu/20.*|Debian/11)
PKGFILTER="focal"
......@@ -53,7 +51,6 @@ case $(epm print info -e) in
;;
ALTLinux/*)
PKGFILTER="rhel8"
repack='--repack'
;;
*)
fatal "Unsupported distro $(epm print info -e). Ask application vendor for a support."
......@@ -65,4 +62,4 @@ VERSION="${VERSION/+/-}"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype "-" "-")"
PKGURL="$(eget --list https://www.rstudio.com/products/rstudio/download/ "$PKGMASK" | grep "$PKGFILTER")" || fatal "Can't get package URL"
epm install $repack "$PKGURL"
install_pkgurl
......@@ -7,7 +7,7 @@ DESCRIPTION="RuDesktop for Linux from the official site"
URL="https://rudesktop.ru/"
pkgname="$PKGNAME"
repack=''
# FIXME: uses global epm
# change package name (like on the site)
case "$(epm print info -s)" in
......@@ -16,7 +16,6 @@ case "$(epm print info -s)" in
;;
alt)
pkgname=rudesktop-alt
repack='--repack'
;;
osnova)
PKGNAME=rudesktop-astra
......@@ -38,7 +37,7 @@ case "$(epm print info -p)" in
esac
PKGURL="https://rudesktop.ru/download/$PKGNAME-amd64.$pkgtype"
epm install $repack $PKGURL || exit
install_pkgurl
echo
echo "Note: run
......
......@@ -12,5 +12,5 @@ warn_version_is_not_supported
PKGURL="https://www.rupost.ru/desktop/download/linux/"
epm install $PKGURL
install_pkgurl
......@@ -22,7 +22,7 @@ else
fi
PKGURL=$(eget --list --latest https://github.com/rustdesk/rustdesk/releases "$MASK") || fatal "Can't get package URL"
epm install $PKGURL || exit
install_pkgurl
cat <<EOF
......
......@@ -28,4 +28,4 @@ esac
PKGURL="https://www.psn-web.net/cs-im/Japan/Scanner/cojp/data_cmns/linux/$file"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -21,9 +21,6 @@ case $arch in
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
#https://st.mycdn.me/static/sferum/latest/sferum-i386.deb
#https://st.mycdn.me/static/sferum/latest/sferum-amd64.deb
#https://st.mycdn.me/static/sferum/latest/sferum-i686.rpm
......@@ -31,4 +28,6 @@ repack=''
# can't use constructname due '-' before arch
#epm install "https://st.mycdn.me/static/sferum/latest/$(epm print constructname $PKGNAME '' $arch '' '-')"
epm $repack install "https://st.mycdn.me/static/sferum/latest/$PKGNAME-$arch.$(epm print info -p)"
PKGURL="https://st.mycdn.me/static/sferum/latest/$PKGNAME-$arch.$(epm print info -p)"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://sidequestvr.com/"
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"
install_pack_pkgurl
......@@ -26,4 +26,4 @@ file=signal-desktop_${VERSION}_amd64.deb
#PKGURL="https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/$file"
PKGURL="https://updates.signal.org/desktop/apt/pool/s/signal-desktop/$file"
epm install "$PKGURL"
install_pkgurl
......@@ -12,4 +12,4 @@ SNAPNAME="singularityapp"
# https://api.snapcraft.io/api/v1/snaps/download/qc6MFRM433ZhI1XjVzErdHivhSOhlpf0_37.snap
PKGURL="$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/$SNAPNAME | epm --inscript tool json -b | grep '\["channel-map",0,"download","url"\]' | head -n1 | sed -e 's|.*"\(.*\)"$|\1|' )" || fatal "Can't get URL"
epm install "$PKGURL"
install_pkgurl
......@@ -15,4 +15,4 @@ pkgtype=deb
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=skypeforlinux-stable-bin
PKGURL="https://repo.skype.com/deb/pool/main/s/${PKGNAME}/${PKGNAME}_${VERSION}_amd64.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -14,6 +14,5 @@ pkgtype=rpm
# https://downloads.slack-edge.com/desktop-releases/linux/x64/4.37.94/slack-4.37.94-0.1.el8.x86_64.rpm
mask="$(epm print constructname $PKGNAME "$VERSION-[.09]*" $arch $pkgtype)"
PKGURL="$(eget --list --latest https://slack.com/downloads/instructions/fedora "$mask")" || fatal "Can't get package URL"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm install --repack "$PKGURL"
install_pkgurl
......@@ -19,6 +19,5 @@ case $arch in
esac
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"
install_pack_pkgurl
......@@ -9,4 +9,5 @@ URL="https://spotify.com"
. $(dirname $0)/common.sh
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"
install_pkgurl
......@@ -22,9 +22,8 @@ case "$arch" in
esac
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
install_pack_pkgurl
echo
echo "NOTE: Sublime Text 4 is a proprietary software. We recommend to use open source editors: Codium, VS Code, Atom."
......@@ -29,4 +29,4 @@ esac
URL="$(eget -4 --list --latest https://www.sweethome3d.com/download.jsp SweetHome3D-$VERSION-linux-$arch.tgz/download)"
PKGURL="$(echo "$URL" | sed -e "s|https*://sourceforge.net/projects/sweethome3d/files|https://download.sourceforge.net/project/sweethome3d|" -e 's|/download$||' )"
epm install "$PKGURL"
install_pkgurl
......@@ -18,7 +18,8 @@ PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
PKGURL="$PKGNAME.deb"
# fix spaces in the package name
eget -O $PKGNAME.deb "$urldir/Synology*.deb"
eget -O $PKGURL "$urldir/Synology*.deb"
epm install $PKGNAME.deb
install_pkgurl
......@@ -19,4 +19,4 @@ urldir="$(eget --list https://archive.synology.com/download/Utility/SynologyDriv
PKGURL="$urldir/$PKGNAME-*.x86_64.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -25,4 +25,4 @@ case "$(epm print info -s)" in
;;
esac
epm install $PKGURL
install_pkgurl
......@@ -21,5 +21,6 @@ case "$arch" in
;;
esac
# epm uses eget to download * names
epm install "https://download.tamtam.chat/latest/TamTam-$arch.deb"
PKGURL="https://download.tamtam.chat/latest/TamTam-$arch.deb"
install_pkgurl
......@@ -9,7 +9,6 @@ DESCRIPTION="Microsoft Teams for Linux from the archive.org of the official site
. $(dirname $0)/common.sh
repack=''
pkgtype="$(epm print info -p)"
# archive.org have only deb packages
......@@ -26,14 +25,10 @@ else
[ "$VERSION" = "*" ] && VERSION="[0-9]*" || VERSION="$VERSION-1"
fi
if [ "$(epm print info -s)" = "alt" ] ; then
repack="--repack"
fi
# rpm and deb contains the same binaries
# $ diff -ru teams-1.5.00.23861-1.x86_64 teams_1.5.00.23861_amd64
ARCHIVEORG=https://web.archive.org/web/20221130114832if_
PKGURL="$ARCHIVEORG/$URL/$(epm print constructname teams "$VERSION" $arch $pkgtype)"
# epm uses eget to download * names
epm install $repack "$ARCHIVEORG/$URL/$(epm print constructname teams "$VERSION" $arch $pkgtype)"
install_pkgurl
......@@ -13,4 +13,4 @@ URL="https://www.teamspeak.com/"
PKGURL="https://files.teamspeak-services.com/releases/client/$VERSION/TeamSpeak3-Client-linux_amd64-$VERSION.run"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -13,4 +13,4 @@ URL="https://www.teamspeak.com/"
PKGURL="https://files.teamspeak-services.com/pre_releases/client/$VERSION/teamspeak-client.tar.gz"
epm pack --install $PKGNAME "$PKGURL" $VERSION
install_pack_pkgurl $VERSION
......@@ -17,11 +17,10 @@ arch=$(epm print info --distro-arch)
# TODO: version support
# https://dl.teamviewer.com/download/linux/version_15x/teamviewer_15.51.5.x86_64.rpm
repack=''
[ "$(epm print info -p)" = "deb" ] || repack='--repack'
# epm uses eget to download * names
epm $repack install "https://download.teamviewer.com/download/linux/$(epm print constructname $PKGNAME)" || exit
PKGURL="https://download.teamviewer.com/download/linux/$(epm print constructname $PKGNAME)"
install_pkgurl
cat <<EOF
......
......@@ -24,9 +24,8 @@ fi
PKGURL=$(eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION.tar.xz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
# override PKGNAME for beta version
echo "$PKGURL" | grep -q "beta.tar.xz" && override_pkgname "$BASEPKGNAME-beta"
epm --install pack $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -36,7 +36,4 @@ esac
PKGURL="https://www.cendio.com/downloads/clients/$file"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://todoist.com/linux_app/appimage"
epm install "$PKGURL"
install_pkgurl
......@@ -26,7 +26,4 @@ esac
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"
install_pkgurl
......@@ -11,24 +11,24 @@ URL="https://trueconf.ru"
[ "$VERSION" = "*" ] && VERSION="[0-9]*"
epmopt=''
distrversion=$(epm print info -v)
case "$(epm print info -e)" in
ALTLinux/p10|ALTLinux/Sisyphus)
URL="https://mirror.trueconf.ru/altlinux/p10/x86_64/RPMS.non-free/trueconf-server-${VERSION}*.x86_64.rpm"
PKGURL="https://mirror.trueconf.ru/altlinux/p10/x86_64/RPMS.non-free/trueconf-server-${VERSION}*.x86_64.rpm"
;;
ALTLinux/p9)
URL="https://mirror.trueconf.ru/altlinux/p9/x86_64/RPMS.non-free/trueconf-${VERSION}*.x86_64.rpm"
PKGURL="https://mirror.trueconf.ru/altlinux/p9/x86_64/RPMS.non-free/trueconf-${VERSION}*.x86_64.rpm"
;;
AstraLinuxSE/1.7*)
URL="https://mirror.trueconf.ru/astra17/pool/non-free/t/trueconf-server/trueconf_server_${VERSION}*_amd64.deb"
PKGURL="https://mirror.trueconf.ru/astra17/pool/non-free/t/trueconf-server/trueconf_server_${VERSION}*_amd64.deb"
;;
RedOS/7.*)
URL="https://mirror.trueconf.ru/redos/$distrversion/x86_64/release/trueconf-server-${VERSION}*.x86_64.rpm"
PKGURL="https://mirror.trueconf.ru/redos/$distrversion/x86_64/release/trueconf-server-${VERSION}*.x86_64.rpm"
;;
*)
fatal "$(epm print info -e) is not supported"
esac
# TODO: repack?
# --repack includes --noscripts
epm install $epmopt "$URL" || exit
epm install "$PKGURL" || exit
......@@ -17,4 +17,4 @@ fi
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 "$PKGURL"
install_pkgurl
......@@ -32,7 +32,4 @@ esac
PKGURL="https://www.unifiedremote.com/download/$file"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://benchmark.unigine.com/heaven"
PKGURL="$(eget --list --latest https://benchmark.unigine.com/heaven "Unigine_Heaven-$VERSION.run")" || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
install_pack_pkgurl
......@@ -11,4 +11,4 @@ URL="https://benchmark.unigine.com/superposition"
# https://assets.unigine.com/d/Unigine_superposition-4.0.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"
install_pack_pkgurl
......@@ -11,4 +11,4 @@ URL="https://benchmark.unigine.com/valley"
# https://assets.unigine.com/d/Unigine_valley-4.0.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"
install_pack_pkgurl
......@@ -23,7 +23,7 @@ case $vendor in
VERSION="3.3.0"
fi
PKGURL="https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_$arch/unityhub-amd64-$VERSION.deb"
epm install --repack "$PKGURL"
install_pkgurl
exit
;;
esac
......@@ -44,4 +44,3 @@ esac
epm update
epm install $PKGNAME
......@@ -13,4 +13,4 @@ URL="https://github.com/upscayl/upscayl"
PKGURL=$(eget --list --latest https://github.com/upscayl/upscayl/releases "upscayl-$VERSION-linux.AppImage") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -14,7 +14,4 @@ mask="dhcoapp-noffmpeg-linux-$arch.deb"
PKGURL=$(eget --list --latest https://github.com/aclap-dev/vdhcoapp/releases/ "$mask") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://download.cdn.viber.com/desktop/Linux/viber.AppImage"
epm install "$PKGURL"
install_pkgurl
......@@ -26,4 +26,4 @@ case "$(epm print info -d)" in
;;
esac
epm install "$PKGURL"
install_pkgurl
......@@ -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"
install_pack_pkgurl
......@@ -45,7 +45,7 @@ if [ "$VERSION" = "*" ] ; then
[ -n "$VERSION" ] || fatal "Can't get version for $PKGNAME"
fi
epm pack --install $PKGNAME "$PKGURL" $VERSION || exit
install_pack_pkgurl $VERSION
echo
echo "Note: run
......
......@@ -41,7 +41,8 @@ if [ "$PKGNAME" = "$BASEPKGNAME-snapshot" ] ; then
else
PKGURL="$(eget --list --latest https://vivaldi.com/ru/download "$(epm print constructname $PKGNAME "$VERSION" $arch deb)")" #" || fatal
fi
epm install $PKGURL || fatal
install_pkgurl
#UPDATEFFMPEG=$(epm ql $PKGNAME | grep update-ffmpeg) || fatal
#epm pack --install $PKGNAME-codecs-ffmpeg-extra $UPDATEFFMPEG
......@@ -21,7 +21,4 @@ esac
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"
install_pkgurl
......@@ -17,4 +17,4 @@ esac
PKGURL="$(eget --list --latest https://desktop.userapi.com/rpm/master/ "$PKGNAME-$VERSION.$arch.rpm")" || fatal "Can't get package URL"
epm install --repack "$PKGURL"
install_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://vkcalls-native-ac.vk-apps.com/latest/vk-calls-amd64.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -15,4 +15,4 @@ VERSION="1.0"
PKGURL="https://vkteams-www.hb.bizmrg.com/linux/x64/vkteams.tar.xz"
epm pack --install $PKGNAME "$PKGURL" "$VERSION"
install_pack_pkgurl "$VERSION"
......@@ -32,4 +32,5 @@ esac
pkgtype="$(epm print info -p)"
PKGURL="$(eget --list --latest https://www.hamrick.com/alternate-versions.html "$file*.$pkgtype" )" || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -13,4 +13,4 @@ file="weasis_$VERSION-1_$arch.deb"
PKGURL=$(eget --list --latest https://github.com/nroduit/Weasis/releases "$file") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -25,6 +25,5 @@ esac
pkgtype=AppImage
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"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://github.com/yar229/WebDavMailRuCloud"
PKGURL=$(eget --list --latest https://github.com/yar229/WebDavMailRuCloud/releases "WebDAVCloudMailRu-${VERSION}-dotNet6.zip") || fatal
epm pack --install $PKGNAME $PKGURL
install_pack_pkgurl
......@@ -11,4 +11,4 @@ URL="https://cyberbotics.com/"
PKGURL=$(eget --list --latest https://github.com/cyberbotics/webots/releases/"*.deb") || fatal "Can't get package URL"
epm install "$PKGURL"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://www.jetbrains.com/webstorm/"
PKGURL="$(get_jetbrains_pkgurl WS webstorm)"
epm install $PKGURL
install_pkgurl
......@@ -16,6 +16,7 @@ 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=$(eget --list --latest https://github.com/eneshecan/whatsapp-for-linux/releases "$PKGNAME-$VERSION-$arch.AppImage") || fatal "Can't get package URL"
epm install $URL
PKGURL=$(eget --list --latest https://github.com/eneshecan/whatsapp-for-linux/releases "$PKGNAME-$VERSION-$arch.AppImage") || fatal "Can't get package URL"
install_pkgurl
......@@ -36,7 +36,4 @@ esac
PKGURL="$(eget --list --latest $BASEURL/$DIRVERSION/ "$mask")" || fatal "Can't get package URL"
#PKGURL="https://wingware.com/pub/wing-personal/$VERSION/$mask"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
install_pkgurl
......@@ -29,12 +29,4 @@ case $pkgtype in
;;
esac
repack=''
case "$(epm print info -s)" in
alt)
# See in the package scripts: find /home/*/.config/Kingsoft/Office.conf
repack='--repack'
;;
esac
epm install $repack "$PKGURL"
install_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://download.xnview.com/XnConvert-linux-x64.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -12,4 +12,4 @@ warn_version_is_not_supported
PKGURL="https://download.xnview.com/XnViewMP-linux-x64.deb"
epm install "$PKGURL"
install_pkgurl
......@@ -24,7 +24,4 @@ esac
PKGURL=$(eget --list --latest https://xod.io/ "$mask") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack="--repack"
epm $repack install "$PKGURL"
install_pkgurl
......@@ -14,20 +14,17 @@ TIPS="Run 'epm play yandex-browser=beta' to install beta version of the browser.
URL="https://repo.yandex.ru/yandex-browser"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--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"
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
PKGURL="$URL/deb/pool/main/y/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)"
epm install "$PKGURL" || exit
fi
install_pkgurl
# TODO: use needed version
if [ "$(epm print info -s)" = "alt" ] ; then
epm install ffmpeg-plugin-browser
......
......@@ -17,7 +17,8 @@ warn_version_is_not_supported
# epm uses eget to download * names
PKGURL="https://repo.yandex.ru/yandex-disk/$(epm print constructname $PKGNAME "latest")" || fatal "Can't get package URL"
epm install "$PKGURL" || exit
install_pkgurl
# Install also tray indicator
if [ "$(epm print info -s)" = "alt" ] ; then
......
......@@ -13,4 +13,4 @@ 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"
install_pkgurl
......@@ -26,4 +26,4 @@ esac
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"
install_pkgurl
......@@ -12,4 +12,4 @@ 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")
epm install "$PKGURL"
install_pkgurl
......@@ -10,4 +10,4 @@ URL="https://github.com/th-ch/youtube-music"
PKGURL="$(eget --list --latest https://github.com/th-ch/youtube-music/releases/ "YouTube-Music-$VERSION.AppImage")"
epm install "$PKGURL"
install_pkgurl
......@@ -15,4 +15,4 @@ URL="https://github.com/yuzu-emu/yuzu-mainline/releases"
# 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"
install_pkgurl
......@@ -51,4 +51,5 @@ 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)" || fatal "Can't get package URL"
# TODO: install_pkgurl
epm install --scripts "$PKGURL"
......@@ -22,9 +22,7 @@ case $arch in
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack="--repack"
# TODO: there are more complex distro dependent url
PKGURL="https://zoom.us/client/$VERSION/zoom_$arch.$(epm print info -p)"
epm install $repack "$PKGURL"
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