pub fn update_from_link(link: &str) -> Result<(), Error>
Expand description

Updates the current application from the provided link.

It will validate the download and check that it contains an executable that is named the same as this program otherwise it will fail. This is to prevent the application from deleting itself without replacing itself with a proper replacement.

It will not check for platform compatibility. It is assuming that already done. Designed to work with get_link_from_latest()