Commit 570ff3a5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play eagle: add downloading workaround via IPFS

parent 265525a9
......@@ -19,9 +19,16 @@ fi
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
VERSION=9.6.2
IPFSHASH=Qmd38jJnTnUMUeJuKSDBGesqXF3SxEahUVZc6NUPyMKgj1
PKGURL="https://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_${VERSION}_English_Linux_64bit.tar.gz"
epm install --repack "$PKGURL"
if ! epm install --repack "$PKGURL" ; then
echo "It is possible you are blocked from USA, trying get from IPFS ..."
pkgname=$(basename $PKGURL)
$EGET -O $pkgname http://dhash.ru/ipfs/$IPFSHASH || fatal "Can't get $pkgname from IPFS."
epm install --repack $pkgname || exit
rm -fv $pkgname
fi
echo
echo "
......
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