* Initial implementation
* Multiple fixes and improvemens
* Better `curl` retries timing
* Remove unused `TARGETOS` and `TARGETVARIANT` vars; add the version fetch fallback code to the build scripts
* Move the fallback code before the var usage
* Use double braces to make the code compatible with the `set -u`
---------
Co-authored-by: Konstantin Koval
* Include MagicWand library.
* Remove duplication.
* Limit dynamic libraries in the release build.
* Use cp -a instead of -r.
* Use bash instead of sh.