Can i use skpm publish to publish plugin from private repository (Github enterprise domain)?
The plugin repository is in enterprise's private domain and I want the plugin to work with plugin update on Sketch.
You will need to host the appcast.xml on a publicly accessible server as well as the zipped plugin.
Skpm cannot do that for you tho so you need to do it manually
Hi @mathieudutour !
I guess posting the zipped plugin so that Sketch can get it is like making it public for anyone who knows the URL... Is there any way to keep the plugin really private but that can still be downloaded/updated from Sketch?
The only way I can think of would be to:
have a server that change the appcast URL when you download the plugin for the first time to add a token at the end of the URL (like https://appcast.com?token=1234)
have a server dynamically return the appcast if the token passed in the URL is valid
the appcast returned by the server should also contain the link to the zip with the token
have the server check for the token before returning the zip
Obviously if someone knows of a token, then they will still be able to download the plugin.
Another way would be to restrict the server to a specific set of IP addresses.
I'll play around to see what I can do. Thanks!
Anyway... how do paid plugins (if any) work, then? To remain private but still have the auto-update working fine?
That's a good question. Some plugins like Runner have an account system so you need to log in the plugin for it to work. Others are link to a separate apps which is the one that is paid.
I don't really have an answer sorry