Binance has versioned binaries at (https://github.com/binance/desktop/releases). (Someone else already mentioned Oct 2021.) The checksums match the text files at (https://ftp.binance.com/electron-desktop/linux/production/binance-amd64-linux-deb-sha256.txt). So check()
function can be removed.
If desired, can use a prepare()
function to notify users whether a new version is available:
prepare() {
binancechecksums=$(curl -Ssf "https://ftp.binance.com/electron-desktop/linux/production/binance-amd64-linux-deb-sha256.txt")
if [[ "${sha256sums[0]}" != "$binancechecksums" ]] ; then
echo "New version of binance is available:"
echo " https://github.com/binance/desktop/releases"
fi
}
Pinned Comments
metaanon commented on 2021-05-13 07:29 (UTC) (edited on 2021-05-13 08:08 (UTC) by metaanon)
Binance don't version their binaries. They simply replace the binance-amd64-linux.deb with a newer version. This means you will correctly receive a validity check error as the deb file no longer matches with the SHA sum.
Please confirm the latest Binance version and then mark this package as out of date.
Unless Binance change their release strategy or someone can come up with a clever solution, it is what it is.