echo Refreshing binaries from artifacts.supernet.org echo ========================================= echo Step: Removing old binaries pwd [ ! -d assets ] && \ mkdir -p assets cd assets [ -d artifacts.supernet.org ] && \ echo Removing old artifacts. && \ rm -rvf artifacts.supernet.org echo echo Step: Cloning latest binaries for build wget --recursive --no-parent https://artifacts.supernet.org/latest/ cd .. echo ========================================= echo pwd echo ========================================= echo Step: Permission +x for OSX binaries from artifacts to assets/bin/osx/ echo rm assets/artifacts.supernet.org/latest/osx/iguana #chmod +x assets/artifacts.supernet.org/latest/osx/komodo* mkdir assets/bin mkdir assets/bin/osx #mv assets/artifacts.supernet.org/latest/osx assets/bin/osx echo Moving komodo bins to assets/bin/osx wget https://supernetorg.bintray.com/binaries/kmd_osx_bins.zip checksum=`shasum -a 256 kmd_osx_bins.zip | awk '{ print $1 }'` if [ "$checksum" = "baa40ee046aa52494ea3be92be654fc61c47445277acadfd0d6c4cdc6b79bef9" ]; then echo "Checksum is correct." unzip kmd_osx_bins.zip cp -rvf kmd_osx_bins/* assets/bin/osx/. else echo "Checksum is incorrect!" exit 0 fi echo Moving legacy libs to assets/bin wget https://supernetorg.bintray.com/misc/libs_legacy_osx.zip checksum=`shasum -a 256 libs_legacy_osx.zip | awk '{ print $1 }'` if [ "$checksum" = "e9474aa243694a2d4c87fccc443e4b16a9a5172a24da76af9e5ecddd006649bb" ]; then echo "Checksum is correct." unzip libs_legacy_osx.zip cp -rvf libs_legacy_osx/* assets/bin/osx/. else echo "Checksum is incorrect!" exit 0 fi echo ========================================= echo Step: Moving Windows binaries from artifacts to assets/bin/win64/ #echo rm assets/artifacts.supernet.org/latest/windows/iguana mv assets/artifacts.supernet.org/latest/windows assets/bin/win64 echo echo ========================================= echo Step: Permissions +x for linux64 binaries from artifacts to assets/bin/linux64 echo rm assets/artifacts.supernet.org/latest/linux/iguana chmod +x assets/artifacts.supernet.org/latest/linux/komodo* echo Moving Linux bins to assets/bin mv assets/artifacts.supernet.org/latest/linux assets/bin/linux64/ echo echo ========================================= echo Step: Finished Updating binaries from artifacts echo