use fetch

This commit is contained in:
SANO Masatoshi 2019-06-10 17:50:28 +08:00
parent 5e2d438ba9
commit acc0aafd06

View file

@ -113,11 +113,9 @@ fi
install_roswell_bin () {
if uname -s | grep -e MSYS_NT >/dev/null; then
if [ $ROSWELL_BRANCH = release ]; then
curl -L https://github.com/roswell/roswell/releases/download/v$ROSWELL_RELEASE_VERSION/roswell_$(ROSWELL_RELEASE_VERSION)_amd64.zip \
--output /tmp/roswell.zip
fetch "https://github.com/roswell/roswell/releases/download/v$ROSWELL_RELEASE_VERSION/roswell_${ROSWELL_RELEASE_VERSION}_amd64.zip" /tmp/roswell.zip
else
curl -L "https://ci.appveyor.com/api/projects/snmsts/roswell-en89n/artifacts/Roswell-x86_64.zip?branch=master&job=Environment%3A%20MSYS2_ARCH%3Dx86_64,%20MSYS2_BITS%3D64,%20MSYSTEM%3DMINGW64,%20METHOD%3Dcross" \
--output /tmp/roswell.zip
fetch "https://ci.appveyor.com/api/projects/snmsts/roswell-en89n/artifacts/Roswell-x86_64.zip?branch=master&job=Environment%3A%20MSYS2_ARCH%3Dx86_64,%20MSYS2_BITS%3D64,%20MSYSTEM%3DMINGW64,%20METHOD%3Dcross" /tmp/roswell.zip
fi
unzip /tmp/roswell.zip -d /tmp/ >/dev/null
mkdir -p $ROSWELL_INSTALL_DIR/bin