Load_from_url
-
@chrisglasier said:
Thanks but I am not sure I understand how this automates the extraction to the plug in folder. It seems you have to click the install button in extensions?
see: Sketchup.install_from_archive
(because we have no "slappin' ya' upside da' head" emoticon)
@chrisglasier said:
I was thinking to click a js link in my url (standalone or in wd) to pick up a plain zip file from any trusted url and extract it into one or more named local folders. Dreaming perhaps!
Your link or html button can execute a callback to Ruby that does the install, moves files around etc.
-
@tig said:
There are new API methods with the latest v8M2 to extract files/subfolders [into Plugins] from zip/rbz files.
However, if you already have ways of extracting them, then the moving to their new locations can be done with vanilla Ruby Dir and File commands...Or the extended library
FileUtils
FYI.. there is a Pure Ruby (beta) edition of the
Zlib
library that is cross-platfrom (no need to deal with compiled so/dll, Ruby version, compiler versions, etc. etc.) It is by Park Heesob (who is involved with Daniel Berger's win32-api project.)
Advertisement