12-11-2015, 05:46 PM
And is there an API for the online repo?
Local Plugin Repo
|
12-11-2015, 05:46 PM
And is there an API for the online repo?
12-11-2015, 06:31 PM
No, I don't think so. You might want to create an issue for that on the repo
12-11-2015, 08:06 PM
Even easier, Cuberite plugins can use HTTPS to directly check with the GitHub API and download each file separately (no need to extract ZIPs) and even query the last commit date and such metadata from each repo.
12-11-2015, 08:55 PM
I usually add a SourceLocation to my Info.lua files. With that your plugin could get a link to the plugin's repo.
12-11-2015, 09:06 PM
(This post was last modified: 12-11-2015, 09:07 PM by sphinxc0re.)
I thought of that a while ago. It would be like having a package manager: cpm - cuberite package manager
Code: cpm install worldedit What about creating some kind of dependency management using LuaRocks?
12-11-2015, 09:19 PM
I think it should be a plugin, not a standalone app.
Thanks given by: NiLSPACE
12-11-2015, 10:07 PM
What I meant. If users are using zip files, we can't use it, but if the program does a git clone (or submodule) we could just use it. So we could use the program (or webadmin part) to manage ALL plugins.
12-11-2015, 10:29 PM
You would have to force the user to install git for that. Personally I hate dependencies like that. It's much easier for the user if the plugins goes through all plugins and checks at the source location if there is a newer version.
12-11-2015, 11:08 PM
no, you don't need to, because of libgit2. there might be a port for Lua out there
12-11-2015, 11:20 PM
That's kinda OS dependent. People might need to compile it themselves before they can use it in the plugin.
|
« Next Oldest | Next Newest »
|