pyRevit icon indicating copy to clipboard operation
pyRevit copied to clipboard

Install custom extension from zip-file

Open kollyboi opened this issue 6 years ago • 4 comments

I wanted to install pyRevit plus my custom extension from a zip file on the server. For this I want to create a bat-file which everyone in the company can run to install this combo by running one file. I do have my custom extension on github, but I don't want users to know the password on my site by reading the bat-file. The pyRevit-CLI tool has the option --image when cloning pyRevit, but not while adding an extension. What I want is something like this:

pyrevit detach --all
pyrevit clones forget --all
pyrevit clones delete --all --clearconfigs
pyrevit clone master  --dest="C:\Programdata\pyRevit"
pyrevit extend ui MultiTool --image="\\server\O617\617033\MultiTool-master.zip" --dest="C:\ProgramData\pyRevit\Extensions"
pyrevit configs logs verbose
pyrevit configs checkupdates enable
pyrevit configs autoupdate enable
pyrevit configs rocketmode enable
pyrevit configs filelogging disable
pyrevit configs loadbeta disable
pyrevit configs usercanupdate yes
pyrevit configs usercanextend yes
pyrevit configs usercanconfig yes
pyrevit configs colordocs enable
pyrevit attach master latest --installed --allusers

Is this possible? Am I missing something?

kollyboi avatar Jun 10 '20 07:06 kollyboi

You are absolutely right. Partly because you don't really need a special command to install an extension as a zip, although I can implement this into the pyrevit CLI

Just copy and extract the zip file and then use the command below to add the parent directory to extension search paths. Make sure the extension directory follows the name.extension format

pyrevit extensions paths add <extensions_path>

eirannejad avatar Jun 18 '20 14:06 eirannejad

Thank you for your reply. I was hoping, by implementing the extend ui command, the update function would look for the zip-file and check the version. This way, I can just download the github-zip to our server when I have updated my master and users could update via pyRevit. Does that make sense? ARGH! I did not mean to close the issue.

kollyboi avatar Jun 18 '20 18:06 kollyboi

Notes for later:

  • [ ] Depends on the future rework of the extension and update api
  • [ ] Update system should be able to detect the source of an extension (as zip) and re-download and update

eirannejad avatar Aug 07 '20 02:08 eirannejad

Closing Issue older than a year. Thanks for pointing it out. If you feel it is still relevant, feel free to reopen the issue

jmcouffin avatar Jun 13 '23 08:06 jmcouffin