Hi !
I would like to create something similar to a self-updater to my extension.
As I imagine it I only needs to download the new RBZ file from a ruby script and use the Sketchup.install_from_archive(downloaded_file) method.
To download the file I use open-uri. But as I write it, it freezes the UI during download. Do you know a workaround to be able to display a progress or something like that ?
Here is how the download is made :
require 'open-uri'
open('my_local_file.rbz', 'wb') do |file|
file << open('http://domaine.com/remote_file.rbz').read
end
Thanks for your answers,
And have a nice day